Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Voyager

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Voyager
    3. Community Knowledge
    4. OPAC: WebVoyage 7 (Tomcat) Sorting Filters in Search Results

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

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Installation Instructions
    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

     




    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • OPAC: WebVoyage 7 (Tomcat) Numbered Search Results
      • OPAC: WebVoyáge Timeout Counter Display
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      Enhancements
      Language
      English
      Product
      Voyager
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved