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

    How to conditionally add supplier code to ill-patron-letter-i.xsl

    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Description:
    On the information slip printed by clicking print button in borrowing list (ill-patron-letter-i-00), the Request Status shows Sent to Supplier. Is it possible for this line to show the supplier code?

    Example:
    Request Status Sent to supplier: USMIL

    Resolution:
    Yes, change the following code in ill-patron-letter-i.xsl from:

    <xsl:call-template name="display-gen">
    <xsl:with-param name="label" select="'Request Status'"/>
    <xsl:with-param name="value" select="./z410-status"/>
    </xsl:call-template>

    to:

    <xsl:choose>
    <xsl:when test="./z410-status = 'Sent to supplier'">
    <xsl:call-template name="display-gen">
    <xsl:with-param name="label" select="'Request Status'"/>
    <xsl:with-param name="value" select="concat(//z410-status, ':', //z411-partner-code)"/>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="display-gen">
    <xsl:with-param name="label" select="'Request Status'"/>
    <xsl:with-param name="value" select="./z410-status"/>
    </xsl:call-template>
    </xsl:otherwise>
    </xsl:choose>


    • Article last edited: 10/8/2013