Changeset 33279 for main

Show
Ignore:
Timestamp:
02.07.2019 14:02:11 (7 weeks ago)
Author:
kjdon
Message:

added a metadata element to service description, 'does_facetsearch' - set to true if does facets. of course, this won't be correct if the collection can do facets, but actually chooses not to... . For now, used to determine whether to display facet info on help page.

Location:
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service
Files:
2 modified

Legend:

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

    r32619 r33279  
    447447              service_metadata_list.appendChild(GSXML.createMetadataElement(ml_doc, "does_paging", "true")); 
    448448            } 
     449            if (does_faceting) { 
     450              service_metadata_list.appendChild(GSXML.createMetadataElement(ml_doc, "does_facetsearch", "true")); 
     451            } 
     452         
    449453          } 
    450454          service.appendChild(doc.importNode(service_metadata_list, true)); 
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractSearch.java

    r32547 r33279  
    237237              service_metadata_list.appendChild(GSXML.createMetadataElement(ml_doc, "does_paging", "true")); 
    238238            } 
     239            if (does_faceting) { 
     240              service_metadata_list.appendChild(GSXML.createMetadataElement(ml_doc, "does_facetsearch", "true")); 
     241            } 
    239242          } 
    240243          tq_service.appendChild(doc.importNode(service_metadata_list, true));