Changeset 1523 for MDService2
- Timestamp:
- 09/06/11 21:09:07 (13 years ago)
- Location:
- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java
r1522 r1523 29 29 import eu.clarin.cmdi.mdservice.internal.MDTransformer; 30 30 import eu.clarin.cmdi.mdservice.internal.NoStylesheetException; 31 import eu.clarin.cmdi.mdservice.model.Diagnostic; 31 32 import eu.clarin.cmdi.mdservice.model.Diagnostics; 32 33 import eu.clarin.cmdi.mdservice.proxy.ProxyInterface; … … 253 254 sarr[0] = getQ(); 254 255 params.put("q", sarr); 255 } 256 } 257 if (!params.containsKey("repository")){ 258 String[] sarr = new String[1]; 259 sarr[0] = getRepository(); 260 params.put("repository", sarr); 261 } 256 262 String[] sarr2 = new String[1]; 257 263 sarr2[0] =getFullFormat(); 258 264 params.put("fullformat", sarr2); 259 265 } 260 266 267 261 268 public Map<String,String[]> getParams() { 262 269 return params; … … 352 359 Map<String, String> aMap = new HashMap<String,String>(); 353 360 aMap.put("fullformat","format"); 354 aMap.put("format","fullformat");361 //aMap.put("format","fullformat"); 355 362 aMap.put("columns", "cols"); 356 363 aMap.put("maximumItems","maximumItems"); -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/RepoAction.java
r1522 r1523 75 75 private String sort; 76 76 private int maxdepth; 77 private String format="xml"; // default no transformation77 //private String format="xml"; // default no transformation 78 78 private String options; 79 79 … … 81 81 protected URL base_url ; 82 82 83 83 @Override 84 public String getFullFormat() { 85 return actionkey + "2" + getParam("format"); 86 } 84 87 /** 85 88 * Based on the repository type - we create a typed Proxy, that will do the work. … … 145 148 this.maxdepth = maxdepth; 146 149 } 147 150 /* 148 151 public String getFormat() { 149 152 return format; … … 153 156 this.format = format; 154 157 } 155 158 */ 156 159 public String getOptions() { 157 160 return options;
Note: See TracChangeset
for help on using the changeset viewer.