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

    Customize format of z30-item-sequence in missing-items-report

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

    Problem Symptoms:
    * need to customize printout missing-items-report (from service Missing Items Report (p-ret-item-02))
    * need value ./z30-item-sequence without decimal point and zero
    * printout currently has:
    1.0 or 2.0 or 3.0
    * needed is this:
    1 or 2 or 3

    In xxx01/form_hrv/global.trn, the following translate mechanism is configured for the z30-item-sequence:

    z30-item-sequence ITEM-SEQ S

    * None of the available translate mechanisms (see document attached to KB Item 8192-7447) produces 1 or 2 or 3.
    * Solve problem via XSL:

    1. Modify print template as follows:


    <xsl:template name="section-02">
    <xsl:param name="header"/>
    <xsl:if test="$header!=''">
    <xsl:call-template name="start-grid"/>
    <xsl:call-template name="table-start-row"/>
    <xsl:call-template name="display-grid-gen">
    <xsl:with-param name="label" select="'Inventory'"/>
    <xsl:with-param name="value" select="./inventory"/>
    <xsl:with-param name="header" select="$header"/>
    <xsl:call-template name="display-grid-gen">
    <xsl:with-param name="label" select="'Doc Number'"/>
    <xsl:with-param name="value" select="./z30-doc-number"/>
    <xsl:with-param name="header" select="$header"/>
    <xsl:call-template name="display-grid-gen">
    <xsl:with-param name="label" select="'Item Sequence'"/>
    <xsl:with-param name="value" select="substring-before(z30-item-sequence,'.')"/> << change like this
    <xsl:with-param name="header" select="$header"/>

    2. After making the change, create new print template package via util i/6.

    Category: Printing (500)

    • Article last edited: 10/8/2013