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: Enhancing the New Search Box in the Quick Search Bar

    OPAC: Enhancing the New Search Box in the Quick Search Bar

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    Created By: Denise Dunham
    Created on: 5/14/2019



    [This article was copied from the Voyager Wiki.]

    Introduction

    This relates to the "New" Tomcat WebVoyage user interface that is included in Voyager 7.0.1 and forward.
    This code was developed by Denise Dunham and she gets full credit for it.
    We have found that the "New Search" box in the WebVoyage Quick Search bar is much more useful when the type of search can be selected from among a set of search types (see following screenshot). 
    This code allows you to do that. 

    Change the code in the buildQuickSearch stanza of your header.xsl file to the following.

    Remember to back up your known good file and test your changes carefully.

    <xsl:template name="quickSearchBar">

     

       <xsl:for-each select="/page:page/page:searchQuick">

          <div id="quickSearchBar" title="{$headerText/quickSearchBar}">

             <form action="{page:element[@nameId='page.searchQuick.go.button']/page:buttonAction}" method="get">

                <span id="quickSearchArg" title="{/page:page//page:element[@nameId='searchArg']/page:label}">

                   <xsl:call-template name="buildFormInput">

                      <xsl:with-param name="eleName"  select="'searchArg'"/>

                      <xsl:with-param name="size"  select="'36'"/>

                   </xsl:call-template>

                </span> in

                <!-- LG -->

    <!-- search indexes from denise dunham -->

                <select id="searchCode" name="searchCode" title="Select the index to search.">

                    <option value="GKEY^*" selected="">Keyword(s) Anywhere</option>

                    <option value="TALL">Title (omit leading articles)</option>

                    <option value="TKEY^*">Title Keyword(s)</option>

                    <option value="JALL">Journal Title (omit leading articles)</option>

                    <option value="JKEY^*">Journal Title Keyword(s)</option>

                    <option value="NAME+">Author (last name, first name)</option>

                    <option value="NKEY^*">Author Keyword(s)</option>

                    <option value="SUBJ">Subject Heading</option>

                    <option value="CMD*">Boolean (and/or/not)</option>

                    <option value="CALL">Call Number</option>

                </select>

                <span id="searchButton" title="{//page:element[@nameId='page.searchQuick.go.button']/page:buttonMessage}">

                   <input type="submit"

                          alt="{//page:element[@nameId='page.searchQuick.go.button']/page:buttonMessage}"

                          value="{//page:element[@nameId='page.searchQuick.go.button']/page:buttonText}"

                          id="quickSearchButton"/>

                </span>

     

                <span id="searchHistory" title="{//page:element[@nameId='page.searchQuick.searchHistory.link']/page:linkText}">

                   <span id="searchHistoryIcon">&#160;</span>

                   <xsl:call-template name="buildLinkType">

                      <xsl:with-param name="eleName"  select="'page.searchQuick.searchHistory.link'"/>

                   </xsl:call-template>

                </span>

                 

    <!-- note you need to comment out the "searchCode" line below -->

              <!--  <input type="hidden" name="searchCode" value="{page:element[@nameId='searchCode']/page:label}"/> -->

                <input type="hidden" name="searchType" value="{page:element[@nameId='searchType']/page:label}"/>

                <input type="hidden" name="recCount" value="{page:element[@nameId='recCount']/page:label}"/>

             </form>

          </div>

       </xsl:for-each>

    </xsl:template>




    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • OPAC: Display Icons Based on Location
      • OPAC: Error Log File Locations
    • 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