Ignore:
Timestamp:
10/05/10 10:38:17 (14 years ago)
Author:
gaba
Message:

submiting collections only (withouth any query)

File:
1 edited

Legend:

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

    r745 r748  
    113113       
    114114        public String getStatus() {
    115                 if (type.equals(Query.RECORDSET) && query_cql== null) {
     115                if (type.equals(Query.RECORDSET) && query_cql== null && (query_string != "")) {
    116116                        return Query.PARSEERROR;
    117117                } else {
     
    145145                } else if (squery != null) {
    146146                        query_string = squery;
     147                } else if (queryString != null){
     148                        query_string = queryString;
    147149                } else {
    148                         query_string = queryString;
     150                        query_string = "";
    149151                }
    150152                Admin.notifyUser("QUERY.QUERYSTRING:" + query_string);
    151                 if (type.equals(RECORDSET)) {   
     153                if (type.equals(RECORDSET) && (query_string.length() > 0)) {   
    152154                        parse();
    153155                        //preprocess();
     
    302304                        targetRequest = "//MdSelfLink[.='" + corrid + "']";                     
    303305                } else {
    304                         targetRequest = toXPath() + "&collection=" + getCollection();
     306                        if (query_cql == null){
     307                                targetRequest =  "//*" + "&collection=" + getCollection();
     308                        } else {
     309                                targetRequest = toXPath() + "&collection=" + getCollection();   
     310                        }
    305311                        if ((startRecord != null) && (maximumRecords != null)) {
    306312                                targetRequest = targetRequest +  "&startRecord=" + getStartRecord() + "&iend=" + getMaximumRecords();
     
    376382         */
    377383        public String toXPath() {       
    378                  return MDTransformer.getMDTransformer().transformXML(toXCQL(), "XCQL2XPATH");
     384                return MDTransformer.getMDTransformer().transformXML(toXCQL(), "XCQL2XPATH");
    379385        }
    380386
Note: See TracChangeset for help on using the changeset viewer.