Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Print Title for Every Item in the Output for General Retrieval Form

    Print Title for Every Item in the Output for General Retrieval Form

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Description:
    We wish to print a list of items which has Item Process Status = “WO”, dated 20101006, using the p_ret_adm_01 service.
    However, in the output, items belonging to the same Title are grouped together and that the Title IS NOT repeated for items with the same Title.
    Viewing the XML from the Print History, shows that items where the Title does not display do have a z13-title (in section-02), but the field is empty there, too.
    We need to see the Title for every item. Is there something at the backend such as “*.trn” file that can achieve this? How can we print the title in every line?

    Resolution:
    Add the following lines to the general retrieval form (see complete file attached).

    AFTER: <xsl:include href="funcs.xsl"/>

    <!-- SI-16384-216692 Declare Variables -->
    <xsl:variable name="curr_doc" />
    <xsl:variable name="last_title" />
    <!-- END SI-16384-216692 Declare Variables -->

    AFTER: <!--SECTION-02 (GRID)-->. . . . <xsl:call-template name="display-grid-gen"> . . . </xsl:call-template>

    <!-- SI-16384-216692 Find Non-Empty Title with Same Doc Num -->
    <xsl:variable name="curr_doc" select="./z30-doc-number" />
    <xsl:variable name="last_title">
    <xsl:choose>
    <xsl:when test="string-length(./z13-title) &gt; 0"><xsl:value-of select="./z13-title"/></xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="preceding-sibling::section-02[z30-doc-number = $curr_doc]/z13-title" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <!-- END SI-16384-216692 Find Non-Empty Title with Same Doc Num -->

    AFTER: <xsl:call-template name="display-grid-gen"><xsl:with-param name="label" select="'Title'"/>

    <!-- SI-16384-216692 Use Title Variable -->
    <xsl:with-param name="value" select="$last_title"/>
    <!-- END SI-16384-216692 Use Title Variable -->

    Also, REMOVE: <xsl:with-param name="value" select="./z13-title"/>


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Print templates not transferring to GUI/PC -- ^M line feed characters
      • Print to ADM Library needed for shared databases
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    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