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

    Empty Patron Address Lines in Forms Leave Empty Spaces at Form Top

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

    Description:
    If the empty patron address lines are set up to print even when they're empty, the top of your letters may have many extra, empty lines. They can be removed by putting a condition in the patron address section that only lets patron address lines print if they have content.

    Resolution:
    This example is from plain-funcs-address.xsl. The same change or a similar one can be used in funcs-address.xsl's patron-address template. Replace the entire patron-address template with the template below, making appropriate local changes, if necessary.

    <xsl:template name="patron-address">
    <xsl:value-of select="//z302-address-0"/>
    <xsl:call-template name="new-line"/>
    <xsl:if test="z302-address-1!=''">
    <xsl:value-of select="//z302-address-1"/>
    <xsl:call-template name="new-line"/>
    </xsl:if>
    <xsl:if test="z302-address-2!=''">
    <xsl:value-of select="//z302-address-2"/>
    <xsl:call-template name="new-line"/>
    </xsl:if>
    <xsl:if test="z302-address-3!=''">
    <xsl:value-of select="//z302-address-3"/>
    <xsl:call-template name="new-line"/>
    </xsl:if>
    <xsl:if test="z302-address-4!=''">
    <xsl:value-of select="//z302-address-4"/>
    <xsl:value-of select="//z302-zip"/>
    </xsl:if>
    <xsl:if test="z302-email-address!=''">
    <xsl:call-template name="new-line"/>
    <xsl:value-of select="//z302-email-address"/>
    </xsl:if>
    <xsl:call-template name="new-line"/>
    <xsl:call-template name="display-gen">
    <xsl:with-param name="label" select="'Patron ID'"/>
    <xsl:with-param name="value" select="//z302-id"/>
    </xsl:call-template>
    <xsl:call-template name="display-gen">
    <xsl:with-param name="label" select="'Patron Barcode'"/>
    <xsl:with-param name="value" select="//z308-key-data"/>
    </xsl:call-template>
    </xsl:template>


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