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

    Configuring Esploro Letters

    Overview

    To configure letters, you must have both of the following roles:
    • Configuration Manager
    • General System Administrator
    Esploro provides a letter system to send highly customizable email messages to users including researchers, students and administrators. Messages include warnings, confirmations, notifications, summary information, and so forth.  Most letters are sent automatically by Esploro at the appropriate stage in a workflow. Below are some examples:
    Letter examples.
    Examples of Letters in Esploro
    For the list of letters in Esploro divided by user, see the following:

    For enabling and disabling letters in Esploro see here.

    For setting retention time periods on Esploro letters see here.

    For customizing the look and feel and the content of letters in Esploro see here.

    To watch a video showing the basics of configuring letters in Esploro, see How to Configure Letters.

    Translatable

    Enabling and Disabling Letters in Esploro

    You can enable/disable letters in Esploro in the Letters Configuration page (Configuration Menu > General > Letters Configuration). Use the Enabled toggle to switch on/off the letter. Esploro does not send disabled letters. Attempting to send a disabled letter may result in an error notification when the letter is triggered. 
    Disabled letter.

    Disabled Letter
    Some notifications may be disabled for specific users or for bulk sets of users. For more information see the information for Patron Letters in Managing Users.

    If you are working in a sandbox environment or a pre-”Go Live” production environment, add the letter administrators’ email addresses to the allowed email list (see Configuring Allowed Emails).

    Setting Time Period of Letter Retention in the System

    By default, letters sent by Esploro are retained indefinitely and are available on the Attachments tab of the Researcher Details (see Adding Researchers).
    Attachments tab for researcher.
    Attachments tab for researcher
    You can add a retention period for letters, in number of days, in the Letters Configuration page (Configuration Menu > General > Letters Configuration). Use the Retention Period field so that the letters are deleted after the defined number of days.
    Retention period.
    Retention period
    The weekly Letters Purge with Retention job deletes all enabled letters, if they were created more than the configured number of days ago. See Scheduled Jobs for more information on jobs in Esploro.
    In the Letters list, you can restore the default retention period for all letters by selecting the Restore letters' retention table.
    Restore retention table.
    Restore letters' retention table

    Customizing Letters

    This section provides an overview of configuring letters in Esploro. For a visual overview of how to configure letters in Esploro, see Configuring Letters in Esploro

    The following can be used to customize letters:

    Configuring Labels to Update the Fields in the Letter

    Each letter contains a set of labels to describe the fields in the letter, such as subject, letter name, etc.

    Configure labels.

    Letter Name

    The labels are provided in multiple languages. 

    To configure the labels associated with letters:
    1. Navigate to Configuration > General > Letters Configuration.
    2. On the row actions menu for the relevant letter select Edit.
    3. Select the Labels button.
      Labels button.
    4. Select Customize from the row actions menu. You can update the following:
      • Enabled — Use this toggle to activate/deactivate the label for usage in the letter.
      • Description — Update the label description that displays on the letter.

        Note that using HTML tags in the Description field is not supported.

      • Translation — If another language is enabled in Esploro and it is selected in the Filter drop down, you can edit the translation.
         

        Translations of labels.

      • Restore — If the line was modified, the Enabled and Description fields are restored to their default.
      • Restore Translation — If another language is enabled in Esploro and its Translation label was modified, the field is restored to the default.
    5. Select Customize All to edit all rows.
    6. Select Restore All to restore all rows to their default.
    7. Select Restore Default Translations to restore all translations.
    8. When done, select Save.
    9. You can view the changes in the letter preview pane.

      Preview letter.

    For labels relevant to outgoing emails, such as Cc and addressFrom, see Configuring Outgoing Emails.

    Customizing Templates to Update the Letter Formatting and Content

    The content in the body of the letter is updated by editing the template. The template (XSL style sheet) is used to format the letter and determine which fields and text appear in the letter. You can configure the template to customize how labels and data appear in the letters. In addition, you can use XSL conditional statements to make decisions about what appears in a letter, and even whether the letter is sent.

    Support is available to assist with issues related to customized XSL stylesheets. However, their troubleshooting effort is within practical limits. If a style sheet is heavily customized, it may require time-consuming analysis to identify a specific error. Such validation cannot be provided by Support for all customized style sheets. The best practice in these situations is for you to eliminate one condition/test/section at a time to determine what causes the problem.
    To customize a letter's template (XSL style sheets):
    1. Navigate to Configuration > General > Letters Configuration.
    2. On the row actions menu for the relevant letter select Edit.
    3. The XSL and XML information appear to the left of the letter.
      XSL Preview.
    4. To the right of the XML/XSL panes is a preview pane of the actual letter output.

      Output Preview.

      Changes in the XSL/XML are immediately reflected in the preview pane.

      Errors that are detected while editing the XSL/XML are marked with a red X on the relevant line. 
       
      XML Error.

      Due to technical limitations, there might be a gap between the error line number reported on the XSL/XML and the line number reported on the Preview pane.

      The editor also marks the XSL segments in color and implements auto-completion. Ctrl+f can be used to find items within the editor.
       
    5. You can use Ctrl+Shift+f to implement Prettyprint (convert and present the XSL source code with line breaks and indentations to make the code easier to read).
    6. You can maximize the XML/XSL windows using the full-screen icon.

      Maximize icon.
    7. Update the labels associated with the letter (see Configuring Labels). Changes to the labels display in the preview pane. 
    8. Select Open in new tab to open the preview in a separate browser tab and edit the HTML using accessibility plugins. 
    9. Select Visual or HTML to toggle between a visual and HTML view. 
    10. Select another language in the Language drop down to view the letter in a different language. The languages that appear depend on the settings configured in Esploro (see Configuring Institution Languages).
    11. Update the Width to visualize the output as it will be displayed in narrow screens or printers. Use px to configure the width in pixels, for example 500px.
    12. Reusable components display in the preview pane (see Reusing Components Across Letters).
    13. Select Save Draft to save your customizations as a draft. Changes done in the draft will not be applied to the real letter. Select Remove Draft to erase the draft and display the last saved XSL. Select Restore to restore the XSL to its original state.

      Draft tools.

      Note that while a draft is active, the Edit Draft and Remove Draft options are available in the row actions menu for the letter.

      Edit draft.

      The draft watermark displays in the preview pane. 

      Draft Icon.
    14. Select Save to apply the changes to the real letter. This removes the draft (if one exists for this letter). Note that after saving, the letter remains in the preview window. To return to the full list of letters, select Cancel.
    15. To send an example by email, add an address to the Send example by email field and select Send

      Send example by email.
       
    16. You can view examples of letters by selecting Letter Examples. In the Letter Examples page you can add examples of letters that were sent by Esploro and upload new examples. See Updating and Previewing Example Letters for Testing.

    If you use a tag to refer to an outside location such as a template or URL (for example, <xsl:include href="http://{$PathToWeb}/html/xsl/head.xsl">) and the outside source changes, refresh the XSL (by re-saving it) for the new information to be included in the letter.

    XSL Code Examples

    The following examples show what you can do with XSL to customize the output of your letters:
    • If the following snippet follows the address line in the esploroSenderReceiver.xsl file, you can ensure that the user’s phone number is included in all the letters that use this template.
      <tr>
      <td><xsl:value-of select="notification_data/user_for_printing/phone"/></td>
      </tr>
    • To remove an element from a letter, find the element to be removed. Add comment indicators on either side of the line, such as, <!--<th>@@description@@</th>-->.
      <th>@@title@@</th>
      <!--<th>@@description@@</th>-->
      <th>@@author@@</th>
      The output table displays without the description column.
    • Use the substring and string-length functions to output the last four digits of a code:

      <b>Last 4 digits of phone:*****
      <xsl:value-of select="substring (notification_data/owner/user_phone_list/user_phone/phone,string-length(notification_data/owner/user_phone_list/user_phone/phone) - 3)"/></b>
    • Use a conditional clause as follows:

      <xsl:if test="notification_data/asset_id !='-1'"> 
      <tr> <td>                                        
               @@assetId@@ <xsl:value-of select="notification_data/asset_id" />                                      </td> </tr>                            
      </xsl:if>

    Using Example Letters for Testing 

    On the Letter Examples tab, you can use the available XML examples to preview letters and test changes. 
    Any identifying information should be removed from these examples.
    How to Access the Letter Examples:
    1. Navigate to Configuration > General > Letters Configuration.

    2. Select Edit in the row actions menu for the relevant letter.
    3. Select the Letter Examples button.
      Letter Examples Button.
    4. There is always one default letter that appears, but you can add more examples as described below.
    Letter Examples.

    The letter that is selected in the Default Preview column is the one that displays in the preview pane when editing a letter. 

    We recommend using the example XML for letters rather than the default XML. You can view the XML examples in the Example column in the Letters tables (see Letter List). 

    How to add existing letters that were generated in your institution:
    1. In the Letter Examples page, select the Add from system letters button. 

      Add from system letters.
    2. The Sent Letters page appears, showing up to 10 of the most recent XMLs from the last 7 days.
    3. Select the letter to add.
      Sent letters page.
    4. The selected letter appears in the Letter Examples page. 
      Letter examples saved.

    The added letter is not marked for default preview unless you select it in the Default Preview column.   

    How to download letters as XML files:
    1. In the Letters Configuration page, for the relevant letter select Edit in the row actions menu.
    2. In the XML pane, select the Download button.
      Download XML file.
    3. Edit the file in an XML editor to make any relevant changes.
    How to add letters that were downloaded as XML files:
    1. In the Letter Examples page select the Upload letter example (XML) button.
      Upload_Letter_Example.
    2. Browse to and select the XM file and select Upload.
    3. The added letter is not marked for default preview unless you select it in the Default Preview column. 

    These examples are subject to the retention policy of the institution. The XML files saved in the system will be retained for seven days and will be removed by the weekly cleanup job. The XML examples added to the XML list from the system are persistent and will not be cleaned by the weekly job. Any identifying information should be removed from these examples.

    Reusing Components Across Letters 

    You can reuse components such as headers and footers across letters. See Reusing Components Across Letters.

    Configuring Outgoing Email

    Esploro sends emails to researchers and library staff.
    Every email has two "from" addresses:
    • From: - Appears in the user's mail reader and determines the reply to address (if no other reply to address is specified).
    • EnvelopeFrom - Used internally by mail relay servers to determine the origin of the message, in the case where the letter is returned as the result of an error. This field appears as From (without the colon :) at the very top of the email packet when you look at the packet source, but does not normally appear in the user's mail reader.
    You can configure each outgoing email's From: address by configuring the letter's addressFrom label. If not configured, Esploro uses the default email address Your.Department@organization.com. The addressFrom label is the From: field in the email's header, which is separate from the SMTP envelope EnvelopeFrom address. Replies to emails go to the email header From: field. The EnvelopeFrom address is configured separately. You can also specify an alias for the addressFrom parameter in the following format alias <actual_email_ID@university.edu>. You can configure the outgoing email EnvelopeFrom using the mail handling integration profile. By default, the EnvelopeFrom is also Esploro@exlibrisgroup.com
     
    Note that if a recipient's email server (generally a server run by your institution) has set up a spam filter, the filter checks whether received emails are actually sent by the domain of the address in EnvelopeFrom. When there is a mismatch, emails may be filtered as spam. To prevent this from happening, EnvelopeFrom should remain <something>@exlibrisgroup.com (unless your institution's anti-spam filters and SPF records are configured properly so that this is not an issue). If you are not worried about emails being filtered as spam, you may want to configure EnvelopeFrom in order to catch bounced emails. Emails caught in an email server's spam filter do not generally result in bounced emails.

    Replies to emails go to the email header From: field.

    The Bcc label is used to send a blind copy of the letter to the relevant institution's email address. It is only available for end user facing letters. You can customize the email addresses (or URL) to which the Contact Us and My Account links are directed by configuring the email_my_account and email_contact_us parameters; see Configuring Other Settings.

    To configure the mail handling integration profile:
    1. On the Integration Profile List page (Configuration Menu > Integration Profiles), select Add Integration Profile. Esploro allows you to define only one mail handling integration profile. If there is already a mail handling integration profile, select Edit in the row actions list to edit the profile.
      Integration Profile Mail Handling 1.png
      Mail Handling Integration Profile Page 1
    2. Enter a unique code and name for the profile.
    3. In the Integration Type field, select Mail Handling.
    4. Select Next. The second page of the wizard appears.
      mail_handler_step_2_ux.png
      Mail Handling Integration Profile Page 2
    5. To continue to use Esploro's mail server:

      1. Select Send directly from Ex Libris (selected by default).

      2. Enter a valid email address for EnvelopeFrom.

    6. To use your institution's mail relay server:

      1. Select Send using institution mail relay. Several additional fields appear.

      2. Enter the institution domain name. After you do this, the domain name appears after the SMTP EnvelopeFrom address field as @<domain name>. The domain name can contain up to 63 lower case alphanumeric characters, dashes -, and periods followed by a period and a two to six character lower case alphabetic top-level domain.

      3. Enter the institution SMTP mail relay host name. The host name can contain lower case alphanumeric characters as well as any of the characters - ! # $ % & ' * + / = ? ^ _ ` { | } or ~ and a period.

      4. Custom SMTP EnvelopeFrom address is selected by default. Enter a username of the address in the unlabeled field below this option. This sets EnvelopeFrom to <username>@<domain name>. The username can contain the same characters as the SMTP mail relay host name.

        If you want, instead, that the EnvelopeFrom of each email outgoing from the institution mail relay be the same as the From: address of that email message, select Use the 'From address' header.

      5. If the mail relay requires a username and password to accept email from Esploro, enter the username and password. These can be any ASCII characters.

      6. If the mail relay requires encryption, select Use encryption.

        Encryption port is set to 587 for you.

    7. Select Save.

    Letter List

    Letters will only be sent if they are activated in the Letters Configuration page (Configuration > General > Letters Configuration).
    All letters are translatable by selecting Edit for the specific letter and then updating the Label/s
    To preview letter examples:
    1. Download the relevant example below.
    2. Upload it from the Letter Examples tab (see Testing Letter Examples and Viewing the Source XML).
    3. Select Preview from the row actions menu.

    Letters for Researchers

    The following table lists the letters available in Esploro for researchers. For the list of researcher opt-in letters, see Configuring Researcher Notices Opt-In Letters

    Esploro Letters for Researchers
    Letter Name Letter Description Examples
    New Research Outputs Added to Profile Letter

    This letter is sent to researchers notifying them of new assets that have been added to their profile.  The letter includes all assets added via Smart Harvesting but also mediated and researcher deposits, i.e. it is a summary. The letter lists up to 10 approved researcher deposits and up to 10 assets added via Smart Harvesting or mediated deposits. All assets must be approved and enabled to display in the researcher profile. For Smart Harvesting and Smart Expansion, the NEW ASSETS ADDED TO RESEARCHER PROFILE NOTIFICATION job must be active.

    The letter is sent by a scheduled job that runs weekly. When you want to start sending the letter, contact Ex Libris implementation or support (if you moved to support). You can also run the job manually (Configuration > General > Research Jobs Configuration).

    This is configured per researcher from Manage Researchers > Edit > Researcher Notifications. You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    Research Assets Added To Profile Letter Example.xml
    Reply_To_Researcher_Letter

    Reply to Researcher Letter.

     
    Research Deposit Action Letter

    It is sent to the researcher to update him/her of a status change to their deposit. For example when they submit a deposit to the repository or when a repository manager has approved their deposit. 

    The following actions trigger this email:

    • Contact researcher (see Adding Staff-Mediated Research Deposits)
    • Mediated deposit approved

      For the following actions, see Adding Output to a Profile.
    • Researcher deposit approved
    • Researcher deposit returned
    • Researcher deposit submitted (deprecated)
    • Researcher deposit re-submitted (deprecated)
    • Researcher deposit declined (deprecated)

    You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    Research Deposit Action Letter Example.xml
    Researcher Approval Notification Letter

    Lists all the assets that were found by Smart Harvesting for the researcher to approve or reject. This is sent when selecting Researcher request approval (Repository > Author Matching Approval Task List).

    Researcher Approval Notification Letter Example.xml
    Researcher Asset Page Send Email Letter

    Letter which is sent manually from the asset form in the Research Portal.

    For information about configuring the From address and the Subject line of the email, see Configuring the Research Portal.

    Researcher Asset Page Send Email Letter Example.xml
    Researcher Assets Usage Statistics Letter

    It is sent to affiliated researchers with outputs that have been either viewed or downloaded in the past month. This is sent after the Research usage statistics email job has completed, or after running the job manually (Configuration > General > Research Jobs Configuration). For more information, see Viewing Scheduled Jobs.

    You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    Researcher Assets Usage Statistics Letter Example.xml
    Researcher Url Identifier Notify Letter

    This letter is sent to affiliated researchers with active profiles to notify them that their URL_identifier has been updated and their webpage URL has changed. This is sent after the URL identifier has been updated (see URL Identifier in Adding Researchers).

    You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    Researcher URL Identifier Notify Letter Example.xml
    Research ORCID Letter

    Notify researchers that their assets synched with ORCID. This is sent after the Update researcher's ORCID job has completed (see Update ORCID Profile in Adding Researchers). 

    You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    See ORCID in Esploro for information on working with ORCID in Esploro.

     
    Reset Password Letter

    Generated when the researcher retrieves their password in the profile.

    Reset Password Example.xml

    Letters for Administrators

    The following table lists the letters available in Esploro for administrators.  

    Esploro Letters for Administrators
    Letter Name Letter Description Examples
    Author Matching Report Letter

    Email sent when the Author Matching job completes. It contains an attachment with the report. The letter is sent to the user configured in the page at Researchers > Author Matching Report / Update Approved Matches.

    Author Matching Report Letter Example.xml
    Research Asset Citations Send Email Letter

    Email sent when choosing to “Export Citations” from a search results page.

    Research Asset Citations Letter Example.xml
    Research Assign To Letter

    Letter sent to an admin once an asset is assigned to them by someone else. This requires the Send E-mail checkbox (Repository > Manage Asset Deposits > Assign to) to be enabled. 

    Assign To Letter Example.xml
    Researcher APC Request Send Email Letter

    This email is generated when errors occur for submitted APC requests.

    The letter is only used when the APC request is turned on (see APC Integration).

    The recipient of the email is the email address that is configured in the Oable APC mapping table in the Email for error messages Integration field.

    The content of the email is the API submission to Oable and the API response that is received from Oable.

    Researcher APC Email Letter Example.xml

    Letters for Students

    The following table lists the letters available in Esploro for students. 

    Esploro Letters for Students
    Letter Name Letter Description Examples
    Researcher ETD Usage Statistics Letter

    It is sent to ETD authors with an output that has been either viewed or downloaded in the past month. This is sent after the Research usage statistics email job has completed, or after running the job manually (Configuration > General > Research Jobs Configuration).For more information, see Viewing Scheduled Jobs.

    You can opt in/out of this letter - see Configuring Researcher Notices Opt-In Letters for details.

    Researcher ETD Usage Statistics Letter Example.xml
    Student Deposit Approval Letter

    Notify student depositor that their deposit was approved.

    Student Deposit Notification Letter Example.xml