How can I remove redirect based on field value?
- Article Type: General
- Product: Voyager
- Product Version: 7.2.5
Desired Outcome Goal:
To remove redirect link from Call Numbers where call number is "Online" but retain the redirect for other call number values.
Procedure:
Redirects are applicable to a field/subfield, but are not conditional on the subfield value. However, if the call number field for records where call number is "Online" have a unique characteristic (for example, 852 first indicator=7), you can create a separate field display:
1. On the server, navigate to /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/<skin>/xsl/contentLayout/configs
2. Open displayHoldings.xml in a text editor: vi displayHoldings.xml
3. Find the call number field with the redirect:
<holdingsTags label="Call Number:" notFound="No call number available">
<displayTag field="852" indicator1="0" indicator2="X" subfield="khij" redirect="call number" redirectOn="khij">
<subfield value="k" preText="--"/>
<subfield value="h" preText="--"/>
<subfield value="i" preText="--"/>
<subfield value="j" preText="--"/>
</displayTag>
</holdingsTags>
4. Create an additional displayTag for your call numbers with first indicator 7:
<holdingsTags label="Call Number:" notFound="No call number available">
<displayTag field="852" indicator1="0" indicator2="X" subfield="khij" redirect="call number" redirectOn="khij">
<subfield value="k" preText="--"/>
<subfield value="h" preText="--"/>
<subfield value="i" preText="--"/>
<subfield value="j" preText="--"/>
</displayTag>
<!--added new tag for "Online" call numbers 10/24/12 -->
<displayTag field="852" indicator1="7" indicator2="X" subfield="khij" />
</holdingsTags>
5. Save your changes and view record in WebVoyage.
Category: Opac
- Article last edited: 10/8/2013