Changeset 32110 for main/trunk
- Timestamp:
- 2018-01-24T20:46:30+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/facet-scripts.js
r30771 r32110 28 28 for(var i = 0; i < counts.length; i++) 29 29 { 30 countsStringBuffer += "\"" + encodeURI(counts[i]) + "\""; 30 // escape any apostrophes in facet query terms 31 // (ext/solr's Greenstone3SearchHandler does the other half of handling them) 32 countsStringBuffer += "\"" + encodeURI(counts[i]).replace(/'/g, "%2527") + "\""; 31 33 if(i < counts.length - 1) 32 34 { … … 39 41 40 42 console.log("STRING IS " + countsString) 41 43 42 44 $.ajax(gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/search/" + gs.cgiParams.s + "?" + searchString + countsString + "excerptid=resultsArea") 43 45 .done(function(response)
Note:
See TracChangeset
for help on using the changeset viewer.