Ignore:
Timestamp:
2019-04-17T20:26:03+12:00 (5 years ago)
Author:
ak19
Message:

Getting facet searching working again in tomcat 8, where it had broken due to reserved and unsafe chars in the URL. The fix required using the recent makeURLSafe() and makeURLComponentSafe() methods in facet-scripts.js. This meant that these functions and their helper functions needed to be moved into their own script file, newly introducing utility_scripts.js, rather than remain in document_scripts.js since doc_scripts.js is not included on the query.xsl page which includes facet-scripts.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/query.xsl

    r32719 r33016  
    114114
    115115    <xsl:template name="displayFacets">
     116            <script type="text/javascript" src="interfaces/{$interface_name}/js/utility_scripts.js"><xsl:text> </xsl:text></script>
    116117            <script type="text/javascript" src="interfaces/{$interface_name}/js/facet-scripts.js">
    117118                <xsl:text> </xsl:text>
Note: See TracChangeset for help on using the changeset viewer.