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. Empty Patron Address Lines in Forms Leave Empty Spaces at Form Top

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

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share

     

    No headers
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Emailing records from GUI
      • Empty Sub-Library Address Lines in Forms Leave Empty Space at Form Top
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Alma Specto
    2. Tags
      1. 18.01
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2026 Ex Libris Knowledge Center
    2. Powered by NiCE Knowledge Management ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved