Changeset 29731

Show
Ignore:
Timestamp:
12.02.2015 10:37:43 (5 years ago)
Author:
kjdon
Message:

need to add the metadata for the form searches so that the action knows if it does paging or not. I think this will currently add it for raw search too. Don't know what raw search is. may need to remove it for that??

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractGS2FieldSearch.java

    r29558 r29731  
    8585    // default level for collection db 
    8686    protected String default_db_level = null; 
     87        // metadata for service, such as does_paging = true 
     88        protected Element service_metadata_list = null; 
    8789    // which search services will we offer?? 
    8890    protected boolean plain_search = false; 
     
    422424            } 
    423425        } 
     426        if (subset == null || subset.equals(GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER)) { 
     427          if (service_metadata_list == null) { 
     428            Document ml_doc = XMLConverter.newDOM(); 
     429            service_metadata_list = ml_doc.createElement(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER); 
     430            if (does_paging) { 
     431              service_metadata_list.appendChild(GSXML.createMetadataElement(ml_doc, "does_paging", "true")); 
     432            } 
     433          } 
     434          service.appendChild(doc.importNode(service_metadata_list, true)); 
     435        } 
    424436        return service; 
    425437