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

    How to include the patron name with the salutation in circulation letters to the Patron

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

    Desired Outcome Goal:
    To include the patron name with the salutation in circulation letters to the patron.

    Procedure:
    1. Make a backup copy of funcs-misc.xsl (in the form directory, for example: ./xxx01/form_eng)

    2. Find these 8 lines of code in funcs-misc.xsl and delete them:
    <xsl:template name="choose-salutation-title">
    <xsl:choose>
    <xsl:when test="./z302-salutation-title != ''">
    <xsl:value-of select="./z302-salutation-title"/>
    </xsl:when>
    <xsl:otherwise><br/><br/>Dear Sir/Madam,<br/><br/></xsl:otherwise>
    </xsl:choose>
    </xsl:template>


    3. In their place put the following:

    <xsl:template name="choose-salutation-title">
    <xsl:choose>
    <xsl:when test="./z302-salutation-title != '' and /z302-address-0 != ''">
    <xsl:call-template name="generic-line">
    <xsl:with-param name="line" select='concat("Dear", //z302-salutation-title, " ", //z302-address-0, ",")'/>
    </xsl:call-template>
    </xsl:when>
    <xsl:when test="./z302-salutation-title = '' and /z302-address-0 != ''">
    <xsl:call-template name="generic-line">
    <xsl:with-param name="line" select='concat("Dear", " ", //z302-address-0, ",")'/>
    </xsl:call-template>
    </xsl:when>
    <xsl:when test="/z302-address-0 = ''">
    <xsl:call-template name="generic-line">
    <xsl:with-param name="line" select="'Dear Sir/Madam,'"/>
    </xsl:call-template>
    </xsl:when>
    </xsl:choose>
    </xsl:template>

    4. Save funcs-misc.xsl and run util I/6. (All l of the GUI clients should be closed, so that when circulation is opened, it will automatically download the changed funcs-misc.xsl)

    Additional Information

    One site tried this (Case 00112100) and noted:

    It turns out that funcs-misc.xsl caused all kinds of errors. I went back to funcs.xsl on the hold-request-letter-01.
    Eliminated salutation altogether.
    The letter looks ok.
    Some day we would like to get names and proper salutations set up, but no salutation is better than a bad salutation.

    Category: Circulation

    Subject: Printing


    • Article last edited: 11/1/2014