Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    OPAC: WebVoyage 7 (Tomcat) Sorting Filters in Search Results

    Created By: Jim Robinson
    Created on: 5/14/2019



    [This article was copied from the Voyager Wiki.]

    Description

    Filters on the search results page are listed as loaded, which appears random. Ideally, they would sort as ranked in webvoyage.properties, but the rank is not available in the XML data. This quick fix will sort the filters in the action box of a search results page alphabetically, which is the next best thing.

    Installation Instructions

    Back up then edit ui/*skin*/xsl/contentLayout/cl_resultsTitles.xsl

    Find <xsl:variable name="filtersOFF"> and add <xsl:sort select="page:linkText"/> as shown below:

    <xsl:variable name="filtersOFF">

       <xsl:for-each select="page:element[@nameId='page.searchResults.filtersBlock.filters.link']">

          <xsl:sort select="page:linkText"/> <!- sort filters alphabetically by link text -->

          <li><a href="{page:URL}">add filter: <xsl:value-of select="page:linkText"/></a></li>

       </xsl:for-each>

    </xsl:variable>

    WebVoyage 7 (Tomcat) Sorting Filters

     




    • Was this article helpful?