Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Number of Items and Status display when no items for holding

    • 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
    • Was this article helpful?