Ignore:
Timestamp:
2019-07-11T17:23:18+12:00 (5 years ago)
Author:
ak19
Message:

Getting faceted searching working with the map shapes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/facet-scripts.js

    r33286 r33322  
    5050   
    5151    countsString += "&";
    52     console.log("STRING IS " + countsString);
     52    //console.log("STRING IS " + countsString);
    5353   
    5454    $.ajax(gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/search/" + gs.cgiParams.s + "?" + searchString + countsString + "excerptid=resultsArea")
    5555        .done(function(response)
    56         {
     56            {
    5757            $("#resultsArea").html("");
    5858            $("#resultsArea").html(response.substring(response.indexOf(">") + 1, response.lastIndexOf("<")));
     
    6363                    favouritesCheckout(); // called to add back in favourites icons (if favouritebasket active)
    6464            }
     65              if(typeof mapEnabled !== 'undefined') {                 
     66                 
     67                  facetedMapSearch(gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/search/" + gs.cgiParams.s + "?" + searchString + countsString);
     68                 
     69              }
    6570        });
    6671}
Note: See TracChangeset for help on using the changeset viewer.