Ignore:
Timestamp:
2008-04-14T16:20:45+12:00 (16 years ago)
Author:
dmn
Message:

updating branch from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/action/QueryAction.java

    r13270 r15191  
    107107    mr_query_message.appendChild(format_request);
    108108
     109    logger.info(GSXML.xmlNodeToString(mr_query_message));
     110
    109111    // do the query
    110112        Element mr_query_response = (Element)this.mr.process(mr_query_message);
     
    207209    // check the hits_per_page param - is it a service param??
    208210    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   
    215218    int hits = 20;
    216219    if (hits_pp != null && !hits_pp.equals("")) {
     
    235238    // now we need our own doc list
    236239    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
    238246    int start = 1;
    239247    if (start_p != null && !start_p.equals("")) {
Note: See TracChangeset for help on using the changeset viewer.