- Timestamp:
- 01/02/11 19:30:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java
r911 r1029 58 58 private String maximumRecords = "50"; 59 59 private String squery = null; 60 private String options = null; 60 61 private int maxdepth=1; 61 62 … … 199 200 } 200 201 202 public String getOptions() { 203 return options; 204 } 205 206 public void setOptions(String options) { 207 this.options = options; 208 } 209 201 210 public String getStartRecord() { 202 211 return startRecord; … … 312 321 // 2010-07-11 this is just a hack, because url-encoding the handle acted strange 313 322 //String corrid = getQueryString().replace('_', '/'); 314 String corrid = getQueryString(); 315 targetRequest = "//MdSelfLink[.='" + corrid + "']"; 323 // 2010-12-28 needed for the lucene-index to recognize.. 324 // probably not the best place to handle -> move to repository: sanitize-query? 325 String corrid = getQueryString().replace(":","\\:").toLowerCase(); 326 Admin.notifyUser("Query.toURLParam.corrid=" + corrid); 327 targetRequest = "//MdSelfLink[ft:query(.,'" + corrid + "')]"; 316 328 } else { 317 329 if (query_cql == null){ … … 322 334 if ((startRecord != null) && (maximumRecords != null)) { 323 335 targetRequest = targetRequest + "&startRecord=" + getStartRecord() + "&iend=" + getMaximumRecords(); 336 } 337 if ((options != null)) { 338 targetRequest = targetRequest + "&format=xml-" + getOptions(); 324 339 } 325 340 }
Note: See TracChangeset
for help on using the changeset viewer.