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

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

    • 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