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: Change Text of No-Hits Message

    OPAC: Change Text of No-Hits Message

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



    [This article was copied from the Voyager Wiki.]

    Introduction

    This relates to the "New" Tomcat WebVoyage that is included in Voyager 7.0.1 and forward.

    Out of the box the tomcat version of WebVoyage includes specific text when errors or blocks are received from the server. For example, there is the NOHITS message. You may want to change the text of that message.

    Change NOHITS text

    You will need to edit the pageProperties.xml file found here: 

    /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/en_US/xsl/userTextConfigs/

    Code Example

    Read the comments (designated by the lines with ##) and then carefully examine the last two lines of code below. 

    <!-- ## Override [blockCode] [errorCode] or [requestCode] messages

            ##

            ## The following XML is a place to define what text appears in the interface when we get a <page:message> block

            ## from the server (enable debug in frameWork.xsl to reveal the showXML button in the interface to view XML data)

            ## At this point the following are just overrides to the text that comes back in the XML

            ##

            ## For Example given the following XML block

            ##

            ##  <page:message>

            ##     <page:message blockCode="" errorCode="searchResults.noHits" requestCode="">No hits.<page:message>

            ##  </page:messages>

            ##

            ## we have an errorCode of 'searchResults.noHits'

            ## so we create a <pageMsg> with an errorCode attribute matching what we want to override with a block of text or HTML

            ##

            ##   <pageMsg errorCode="searchResults.noHits">Search resulted in no hits. You may want to check your spelling and try again.</pageMsg>

            ##

            ## Hopefully this makes life a little easier, in the future I would like all pageMessages to be defined here

       -->

       <pageMessages>

          <pageMsg blockCode="PATRONMSG">

             <p class="blockMessage">

             You may not have entered your barcode and name correctly.

             <br/>Retry your request or ask for help at the Circulation or Reference Desk.

             </p>

          </pageMsg>

          <pageMsg blockCode="PATRONSOCMSG">

             <p class="blockMessage">

             You may not have entered your social security number and name correctly.

             <br/>Retry your request or ask for help at the Circulation or Reference Desk.

             </p>

          </pageMsg>

          <pageMsg blockCode="PATRONIIDMSG">

             <p class="blockMessage">

             You may not have entered your institution id and name correctly.

             <br/>Retry your request or ask for help at the Circulation or Reference Desk.

             </p>

          </pageMsg>

          <pageMsg blockCode="PATRONBRIEFMSG">

             <p class="blockMessage">

             The system could not identify you from your ID number alone.

             <br/>Please choose your home library and ID number type on this form and try again,

             <br/>or ask for help at the Circulation or Reference Desk.

             </p>

          </pageMsg>

          <pageMsg errorCode="searchResults.noHits">Search resulted in no hits. You may want to check your spelling and try again.</pageMsg>

       </pageMessages>




    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • OPAC: Change Search Tab Color
      • OPAC: Create External Link Footer Tab
    • 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