Changeset 15191 for greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/action/QueryAction.java
- Timestamp:
- 2008-04-14T16:20:45+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/action/QueryAction.java
r13270 r15191 107 107 mr_query_message.appendChild(format_request); 108 108 109 logger.info(GSXML.xmlNodeToString(mr_query_message)); 110 109 111 // do the query 110 112 Element mr_query_response = (Element)this.mr.process(mr_query_message); … … 207 209 // check the hits_per_page param - is it a service param?? 208 210 String hits_pp = (String) service_params.get("hitsPerPage"); 209 if (hits_pp != null) { 210 // the service is doing the paging, so we want to display all of the returned docs 211 return (Element)this.doc.importNode(orig_doc_list, true); 212 } 213 214 hits_pp = (String)params.get("hitsPerPage"); 211 if (hits_pp == null) { 212 // the service is doing the paging, so we want to display all of the returned docs(???) 213 // return (Element)this.doc.importNode(orig_doc_list, true); 214 // try hitsPerPage in the globle param 215 hits_pp = (String)params.get("hitsPerPage"); 216 } 217 215 218 int hits = 20; 216 219 if (hits_pp != null && !hits_pp.equals("")) { … … 235 238 // now we need our own doc list 236 239 Element result_list = this.doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER); 237 String start_p = (String)params.get("startPage"); 240 241 String start_p = (String) service_params.get("startPage"); 242 if(start_p == null){ 243 start_p = (String)params.get("startPage"); 244 } 245 238 246 int start = 1; 239 247 if (start_p != null && !start_p.equals("")) {
Note:
See TracChangeset
for help on using the changeset viewer.