Changeset 32502 for main

Show
Ignore:
Timestamp:
09.10.2018 12:03:23 (8 months ago)
Author:
kjdon
Message:

can't assume TextQuery? is previous service as it may have been eg AdvancedFieldQuery?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r32158 r32502  
    5656    } 
    5757     
    58     var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?ed=1&hl=" + hl + "&p.s=TextQuery&ilt=" + template.replace(" ", "%20"); 
     58    var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?ed=1&hl=" + hl + "&ilt=" + template.replace(" ", "%20"); 
     59    if (gs.cgiParams.p_s && gs.cgiParams.p_s.length > 0) { 
     60    url += "&p.s=" + gs.cgiParams.p_s; 
     61    } 
     62     
     63     
    5964     
    6065    $.ajax(url) 
     
    103108    var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?ilt=" + template.replace(" ", "%20"); 
    104109 
    105     if(gs.documentMetadata.docType == "paged") 
     110       if(gs.documentMetadata.docType == "paged") 
    106111    { 
    107112        url += "&dt=hierarchy";