Ignore:
Timestamp:
01/02/11 19:30:58 (13 years ago)
Author:
vronk
Message:

changes to columns, terms (unfinished) ; .ui-context-dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java

    r911 r1029  
    5858        private String maximumRecords = "50";
    5959        private String squery = null;
     60        private String options = null;
    6061        private int maxdepth=1;
    6162       
     
    199200        }
    200201       
     202        public String getOptions() {
     203                return options;
     204        }
     205
     206        public void setOptions(String options) {
     207                this.options = options;
     208        }
     209
    201210        public String getStartRecord() {
    202211                return startRecord;
     
    312321                        //  2010-07-11 this is just a hack, because url-encoding the handle acted strange
    313322                        //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 + "')]";                   
    316328                } else {
    317329                        if (query_cql == null){
     
    322334                        if ((startRecord != null) && (maximumRecords != null)) {
    323335                                targetRequest = targetRequest +  "&startRecord=" + getStartRecord() + "&iend=" + getMaximumRecords();
     336                        }
     337                        if ((options != null)) {
     338                                targetRequest = targetRequest +  "&format=xml-" + getOptions();
    324339                        }
    325340                }
Note: See TracChangeset for help on using the changeset viewer.