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. Knowledge Articles
    4. Number of Items and Status display when no items for holding

    Number of Items and Status display when no items for holding

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Problem Symptoms
    2. Cause
    3. Resolution
    4. Additional Information
    • Product: Voyager
    • Product Version: 10.1.0
    • Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local

    Problem Symptoms

    Holdings display shows 0 for "Number of Items" and "No information available" for status

    Cause

    No items are associated with the holdings record.

    Resolution

    Working as designed.

    Additional Information

    To disable display of Number of Items and Status fields when no items available:

    Update displayHoldings.xml

    <holdingsTags label="Number of Items:" notFound="">
        <displayTag field="1010" />
    </holdingsTags>
    <holdingsTags label="Status:" notFound="">
        <displayTag field="1012" />
    </holdingsTags>

    Update display.xsl

    <!-- ###################################################################### -->
    <xsl:template name="BMD1010">
    <xsl:param name="mfhdID"/>
        <xsl:for-each select="$HoldXML/mfhd:mfhdRecord[@mfhdId = $mfhdID]/mfhd:itemCollection">
            <!--<xsl:if test="string-length(item:itemCount)">-->
            <xsl:if test="item:itemCount!=0">
                <xsl:value-of select="item:itemCount"/><br/>
            </xsl:if>
        </xsl:for-each>
    </xsl:template>
    <!-- ###################################################################### -->
    <xsl:template name="BMD1012">
    <xsl:param name="mfhdID"/>
        <xsl:for-each select="$HoldXML/mfhd:mfhdRecord[@mfhdId = $mfhdID]/mfhd:itemCollection/item:itemRecord">
            <!--<xsl:if test="string-length(item:itemData[@name='displayStatus'])">-->
            <xsl:if test="../item:itemCount!=0">
                <xsl:value-of select="item:itemData[@name='displayStatus']"/><br/>
            </xsl:if>
        </xsl:for-each>
    </xsl:template>
    <!-- ###################################################################### -->

    • Article last edited: 17-Jan-2019
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Notices sent for items already discharged
      • Number of records in GDC Record Set limited when using MFHD Global Keyword search via Builder tab
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      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