Changeset 14946 for greenstone3/trunk/src
- Timestamp:
- 2008-01-24T10:04:41+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/action/QueryAction.java
r13270 r14946 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) {211 //if (hits_pp != null) { 210 212 // 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");213 // return (Element)this.doc.importNode(orig_doc_list, true); 214 //} 215 216 //String hits_pp = (String)params.get("hitsPerPage"); 215 217 int hits = 20; 216 218 if (hits_pp != null && !hits_pp.equals("")) { … … 235 237 // now we need our own doc list 236 238 Element result_list = this.doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER); 237 String start_p = (String)params.get("startPage"); 239 240 String start_p = (String) service_params.get("startPage"); 241 if(start_p == null){ 242 start_p = (String)params.get("startPage"); 243 } 244 238 245 int start = 1; 239 246 if (start_p != null && !start_p.equals("")) {
Note:
See TracChangeset
for help on using the changeset viewer.