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

    How to Modify the MailReason.xsl to Display Different Greetings for Different User Groups

    Created By: Sandra Morgan
    Created on: 1/31/2019



    Question

    How to configure the Greetings in some Alma letters based on Patron User Groups.

     

    Answer

    You will need to modify the MailReason.xsl letter.

    1. Go to Alma Configuration > General > General Configuration > Customize Letters
    2. Find the MailReason.xsl
    3. Customize (or edit) the letter and save

     

    Example of MailReason.xsl with modified greetings:

     

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

                    version="1.0">

                <xsl:template name="toWhomIsConcerned">

                            <table cellspacing="0"

                                   cellpadding="5"

                                   border="0">

                            <tr>

                                        <td>

                                                    <xsl:for-each select="notification_data">

                                                                <xsl:if test="receivers/receiver/user/user_group = 'STU'">

                                                                            <h3>

                                                                            <h3>Dear Student Dr.&#160;<xsl:value-of select="receivers/receiver/user/last_name"/>

                                                                            </h3>   </h3>

                                                                </xsl:if>

                                                                                        

                                                                <xsl:if test="receivers/receiver/user/user_group = 'RES'">

                                                                            <h3>

                                                                            <h3>Dear Dr. <xsl:value-of select="receivers/receiver/user/last_name"/>

                                                                            </h3>   </h3>

                                                                </xsl:if>

     

                                                                <xsl:if test="receivers/receiver/user/user_group = 'FAC'">

                                                                            <h3>

                                                                            <h3>Dear Dr. <xsl:value-of select="receivers/receiver/user/last_name"/>

                                                                            </h3>   </h3>

                                                                </xsl:if>

                                                                <xsl:if test="receivers/receiver/user/user_group = 'STA'">

                                                                            <h3>

                                                                            <h3>Dear&#160;<xsl:value-of select="receivers/receiver/user/first_name"/>&#160;<xsl:value-of select="receivers/receiver/user/last_name"/>

                                                                            </h3>   </h3>

                                                                </xsl:if>

                                                                <xsl:if test="receivers/receiver/user/user_group = ''">

                                                                            <h3>@@dear@@&#160;<xsl:value-of select="receivers/receiver/user/first_name"/>

                                                                            </h3>

                                                                </xsl:if>

                                                                </xsl:for-each>

                                        </td>

                            </tr>

    </table>

                </xsl:template>

    </xsl:stylesheet>

     

    Additional Information

    Click here for additional information on how to configure ALMA Letters.

     

     




    • Was this article helpful?