Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    Change p-acq-11 (acq-claim-o-report) Sort

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

    Description:
    It looks like p_acq_11 has its sort hard-coded on order number. This is not particularly useful. Is there a way to sort by title?

    Resolution:
    When I printed acq-claim-o-report, it sorted by z68-doc-number.

    You can sort by any field in the XML/XSL file by inserting the following line:
    <xsl:sort select="YOUR-FIELD"/>
    in the XSL file. For example:
    <xsl:sort select="order-number"/>
    will result in sorting by order number.

    Using the example above, the following excerpt shows where it should be placed:
    <!--section-02 (GRID)-->
    <xsl:for-each select="//section-02">
    <xsl:sort select="order-number"/>
    <xsl:if test="position() = 1">
    <xsl:call-template name="section-02">
    <xsl:with-param name="header" select="'header'"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:call-template name="section-02"/>
    </xsl:for-each>


    • Article last edited: 10/8/2013
    //doorbell.io feedback widged