Letter configuration
In an AFN, the resource-owning institution is the one which sends letters/notifications to a patron, regardless of the patron’s home institution. As such, several of the letters at each institution must be customized to ensure patrons are not confused. Our patrons know they’re requesting an item, but they don’t necessarily know where that item is coming from. We also need to modify the letters exposed to AFN patrons such that they include conditional logic to support the presentation of French language as well. We’ll be providing you code that you can place ABOVE what you’ve got configured in a specified list of letters. The code provided will only handle letters destined for AFN Users, and will automatically detect their preferred language (EN or FR) and will send them the corresponding version of the letter. As you will place this code above what you have already configured for your HOME patrons, this will not impact what your own patrons see.
There is also some configuration that is extremely useful when doing ISO or Email partner sharing. All of that configuration is reflected here.
You can find this configuration as follows:
- Login to IZ Alma
- Click on the gear (Configuration)
- Click on GENERAL
- Under LETTERS, click LETTERS CONFIGURATION
There is a public gitlab repository that contains the AFN related xsl changes. This configuration will link directly to example files and exact code snippets to insert into your existing xsl files. Ensure you’re looking at the AFN_WORK branch. This will show HOW the changes are used within a completed file.
Just a note. We’re not changing any of the letter labels. All AFN related text will be within the letter xsl itself. We’re doing this to minimize impact for each existing letter and allowing home institutions to leverage the labels as they see fit.
There is ONE EXCEPTION to the labels. Switch to the French labels and you’ll need to enter your desired addressFrom email. This will need to be done for ALL letters that we adjust here.
All of the letters with separate documentation pages below should be activated and the labels customized as desired, especially the addressFrom email address. Many of our libraries deactivate the header ("Dear Sir/Madam,") and the signature ("Sincerely"), but all libraries may have their own communication protocols and tendencies.
In addition to the letters in the documentation section that need activating, the following letters do NOT have any XSL changes but should be activated in your instance:
- Borrower Claim Email Letter
- Borrower Overdue Email Letter
- Borrower Receive Email Letter
- Borrower Return Email Letter
- Ful Damaged Email Letter
- Ful Lost Email Letter
- Ful Renew Email Letter
- General Message Email Letter
Letters Documentation
Changelog
November 12, 2025
- Update the Ful Overdue and Lost Notification letter to add a new sentence to (hopefully) limit patron concern. Specific letter changes are shown in the repo.
August 14, 2025
- Pulling in some Omni configurations somehow missed previously. These are not required for general AFN letters, but are required in the Omni system. Adding two components: senderReceiver.xsl and mailReason.xsl.
- Also adding the setting for the email_my_account which populates the "my_account" variable in all letters.
January 22, 2025
- Update Windsor segments in footer.xsl. See "AFN-VERSION 1.12 START ADJUST Windsor contact" segments in the repository. You can search for "LeddyLibrary@uwindsor.ca" to find the two spots to update (English and French footer)
November 12, 2024
- Update the Ful Transit Slip Letter to handle ISO return-anywhere items that belong to another AFN member. These changes are tagged in the repo with "AFN-VERSION 1.5"
November 4, 2024
- Add in a new letter, Hold Shelf Expiry Date Update Letter. This was required to support a new feature rolled out in the November 2024 release.
Sep 30, 2024
- Update TMU segments in footer.xsl. See "AFN-VERSION 1.11 ADD TMU" segments in the repository.
- Add section for Ful Cancel Email Letter. This letter didn't display postal code/etc properly.
- Add section for Ful Outgoing Email Letter. This letter didn't display postal code/etc properly.
- Add section for Ful Resource Request Slip Letter. This was somehow omitted previously.
- Add in letters for email Resource Sharing partners (Lender Checked In Email Letter, Lender Reject Email Letter, Lender Renew Response Email Letter, Lender Ship Email Letter, Lender Will Supply Email Letter, Lender Recall Email Letter). The Checked-In, Ship and Reject letters have some XSL additions that are not in the Ex Libris defaults. All of these emails need to be activated if they are not already.
- Updated Borrowing Activity, Courtesy Notice, Ful Requests Reports Letter, Overdue and Lost Loan, Overdue and Lost Loan Notification, Return Receipt Letter, and Loan Status Notice config pages to properly include French labels.
Feb 28, 2024:
- Activate the Return Receipt Letter for email partners. Email partners will be notified that Omni institutions received their book back. Letter is terminated (doesn’t happen) for all other patrons. So only for email partners.
Jan 15, 2024:
- On Hold Shelf letter improvement
- Clarify information by adding lending institution name, instead of just the Alma configured Library name
- Enhance the pickup location instructions by using a data field that contains institution, library name and circ desk. Helpful for buildings with multiple circ desks or have crafted descriptive names to aid patrons
- Search in the file for AFN-VERSION 1.10 for the changes.
- We’re adjusting the French and English AFN intro paragraph’s
- On Hold Shelf Letter.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Letters/On Hold Shelf Letter/On Hold Shelf Letter.xsl
- On hold letter BEFORE adjustments

- On hold letter AFTER adjustments

Jan 12, 2024:
- Laurier contact information change
- Search in the file for AFN-VERSION 1.9 for the changes.
- Files changed:
- footer.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Components Configuration/footer.xsl
- Alternative instructions:
- Configuration > General > Letters: Components Configuration
- - Edit “footer.xsl”
- - Search the file for 01OCUL_WLU, the first two hits will be the French and English contact templates, change them to:
- <xsl:when test="$external_id = '01OCUL_WLU' ">
- <p><xsl:call-template name="afn_fr_contact_us" /> <a href="mailto:libraryhelp@wlu.ca"> libraryhelp@wlu.ca</a> | 548-889-3766</p>
- And
- <xsl:when test="$external_id = '01OCUL_WLU' ">
- <p><xsl:call-template name="afn_en_contact_us" /> <a href="mailto:libraryhelp@wlu.ca"> libraryhelp@wlu.ca</a> | 548-889-3766</p>
Jan 8, 2024:
- Racer End of Life. Email partners – Fines/Fees/Invoice process
- The Fines\Fee process will be used to send email partners an ‘Invoice’ based on their borrowing and payment receipt when you’ve received it.
- Ensure the following letters are activated. While activating, remember to customize your desired labels and addressFrom email address. Eg. Guelph generally deactivates the header (Dear Sir/Madam,) and signature (Sincerely) but every Institution may have their own communication protocols and tendencies.
- Updated labels and XSL for the Fine Fee Payment Receipt Letter and Ful Fines\Fees Notification Letter. Search in the file for AFN-VERSION 1.8 for the changes.
- Other files changed:
- On Hold Shelf Letter.xsl:
- Email partner logic to terminate hold shelf letter since institution is mailing item. A type of home delivery workflow.
- On Hold Shelf Letter.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Letters/On%20Hold%20Shelf%20Letter/On%20Hold%20Shelf%20Letter.xsl
- On Hold Shelf Reminder Letter.xsl
- Email partner logic to terminate hold shelf letter since institution is mailing item. A type of home delivery workflow.
- On Hold Shelf Reminder Letter.xsl : https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Letters/On%20Hold%20Shelf%20Reminder%20Letter/On%20Hold%20Shelf%20Reminder%20Letter.xsl
- Fine Fee Payment Receipt Letter.xsl
- Email partner logic
- Removed the footer call-template and added AFN VERSION 1.8.
- You can probably just use this xsl file unless you’ve made IZ specific changes, but compare and also ensure to change the AFN TODO portion.
- Fine Fee Payment Receipt Letter.xsl https://gitlab.com/ug-library/alma-letter-config/-/blob/f5c52fe1333386fd0d9f740077b55cfb043b8f6d/Letters/Fine%20Fee%20Payment%20Receipt%20Letter/Fine%20Fee%20Payment%20Receipt%20Letter.xsl
- Ful Fines Fees Notification Letter.xsl:
- Email partner logic
- AFN logic for fines/fees (across institutions)
- Removed the footer call-template and added AFN VERSION 1.8.
- Replaced implementation info table with email partner version AND handle AFN statements.
- Ful Fines Fees Notification Letter.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/f5c52fe1333386fd0d9f740077b55cfb043b8f6d/Letters/Ful%20Fines%20Fees%20Notification%20Letter/Ful%20Fines%20Fees%20Notification%20Letter.xsl
- On Hold Shelf Letter.xsl:
Nov 24, 2023:
- Racer End of Life. Email partners
- Ensure the following letters are activated. While activating, remember to customize your desired labels and addressFrom email address. Eg. Guelph generally deactivates the header (Dear Sir/Madam,) and signature (Sincerely) but every Institution may have their own communication protocols and tendencies:
- Borrower Claim Email Letter
- Borrower Overdue Email Letter
- Borrower Receive Email Letter
- Borrower Return Email Letter
- Ful Cancel Email Letter
- Ful Damaged Email Letter
- Ful Lost Email Letter
- Ful Outgoing Email Letter
- Ful Renew Email Letter
- General Message Email Letter
- No xsl templates for these letters have been adjusted. They are all the system defaults
- There are some eg. data xml files located in the AFN_WORK repository: https://gitlab.com/ug-library/alma-letter-config/-/tree/AFN_WORK/Letters
- Ensure the following letters are activated. While activating, remember to customize your desired labels and addressFrom email address. Eg. Guelph generally deactivates the header (Dear Sir/Madam,) and signature (Sincerely) but every Institution may have their own communication protocols and tendencies:
Nov 22, 2023:
- Accessibility improvements
- Updated header.xsl to provide more descriptive logo info. Requires some institution modification
- Increase instructions to match Omni UI by adding institution name. Restructure some html to remove tabular data and use an ordered list
- Search in the file for AFN-VERSION 1.8 for the changes
- Files changed:
- header.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Components%20Configuration/header.xsl
- footer.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Components Configuration/footer.xsl
- Courtesy Letter.xsl: add the 1.8 section above the French and English tables, ‘<table cellspacing="0" cellpadding="5" border="0">’ and then remove the full table element.
- Overdue Notice Letter.xsl add the 1.8 section above the French and English tables, ‘<table cellspacing="0" cellpadding="5" border="0">’ and then remove the full table element.
May 30, 2022:
- Updated footer.xsl to handle onboarding of OCADU and McMaster to the AFN. Include those institutions for footer info (contact info, omni links). These can be applied any time. OCADU & McMaster DO NOT need to be live to apply these changes.
- Search in the file for AFN-VERSION 1.7 for the changes
- Files changed:
- No snippets were individually updated, use the repository files linked above.
May 26, 2022:
- Updated various files for French translation, based on email from UOttawa.
- Search in the files for AFN VERSION 1.6 for the changes.
- Files changed:
- footer.xsl: https://gitlab.com/ug-library/alma-letter-config/-/blob/AFN_WORK/Components Configuration/footer.xsl
- Borrowing Activity Letter.xsl: Letters/Borrowing Activity Letter/Borrowing Activity Letter.xsl · AFN_WORK @ GitLab
- Courtesy Letter.xsl: Letters/Courtesy Letter/Courtesy Letter.xsl · AFN_WORK @ GitLab
- Ful Overdue And Lost Loan Notification Letter: Letters/Ful Overdue And Lost Loan Notification Letter/Ful Overdue And Lost Loan Notification Letter.xsl · AFN_WORK @ GitLab
- Ful Overdue And Lost Loan Letter.xsl: Letters/Ful Overdue and lost loan letter/Ful Overdue And Lost Loan Letter.xsl · AFN_WORK @ GitLab
- Ful Requests Report Letter.xsl: Letters/Ful Requests Report Letter/Ful Requests Report Letter.xsl · AFN_WORK @ GitLab
- Loan Status Notice.xsl: Letters/Loan Status Notice/Loan Status Notice.xsl · AFN_WORK @ GitLab
- On Hold Shelf Letter.xsl: Letters/On Hold Shelf Letter/On Hold Shelf Letter.xsl · AFN_WORK @ GitLab
- On Hold Shelf Reminder Letter.xsl: Letters/On Hold Shelf Reminder Letter/On Hold Shelf Reminder Letter.xsl · AFN_WORK @ GitLab
- Overdue Notice Letter.xsl: Letters/Overdue Notice Letter/Overdue Notice Letter.xsl · AFN_WORK @ GitLab
- No snippets were individually updated, use the repository files linked above.
Oct 07, 2021:
- Updated IZ - footer.xsl please re-apply. The code in the repository was changed (example file and snippet). The transit letter was adjusted to include Institution name instead of the OCUL code that was displaying for AFN requests in the *from* and *owning library* sections. File and snippet show the line when you search on AFN-VERSION 1.4.
- Updated / added IZ - Ful Transit Slip Letter.xsl. New AFN adjusted letter, not included previously. Some institutions have noticed on transit slips that some odd and confusing data exists within the *from* and *owning Library* fields.


- The code in the repository was changed (example file and snippet). The transit letter was adjusted to include Institution name instead of the OCUL code that was displaying for AFN requests in the *from* and *owning library* sections. Replaced the <td> tags for those two fields and also added a couple variables at the top of the file. File and snippet show the line when you search on AFN-VERSION 1.4.
- Added IZ - FulDigitizationDocumentDeliveryNotificationLetter.xsl to evaluate. The code in the repository was added (example file and snippet) for ISO resource sharing support. This is recommended to check. This digital document delivery letter was not part of the AFN expansion project. With ISO testing there MAY be some changes required depending on your local digitization letters. In some ISO testing, the xml data fields download_url_saml, download_url_local and download_url_cas need to be used. At Guelph, we weren’t using these because our idpCode for SAML auth wasn’t in the url (maybe UG has something missing somewhere). We’ve adjusted to use the download url’s and add in the institutions idpCode. This file is NOT AFN related, it only goes to local patrons, however ISO requests change some of the info that required changes. This letter is Guelph specific, don’t use entire letter. Search on AFN-VERSION 1.4, lines 98 – 119. Look for an AFN TODO tag so replace idpCode.
July 16, 2021
- Updated footer.xsl please re-apply. The code in the repository was changed (example file and snippet). Laurentian wanted to remove their twitter handle from the footer. File and snippet show the line when you search on AFN-VERSION 1.3. You can also do a search and replace, replace “/ @LaurentianLib” with “”, there are 2 instances.
June 14, 2021
- Updated footer.xsl please re-apply. The code in the repository was changed (example file and snippet). Ontario Tech changed their contact info, they removed Durham references. You can just change the individual lines If desired, search on AFN-VERSION 1.2, lines 143 and 204 in example file
- Updated IZ – On Hold Shelf Letter. The French version of the letter only showed the pickup location reminder IF a note existed. Moved the closing </xsl:if> tag below the tr of the French systems note. Line 73 of full file, search on AFN-VERSION 1.2
- File example: Letters/On Hold Shelf Letter/On Hold Shelf Letter.xsl · AFN_WORK @ GitLab
- Snippet to insert: AFN On Hold Shelf Letter ($2120632) · Snippets @ GitLab
- Updated IZ – Loan Status Notice. Changed the local institution default to show the message label instead of text that Guelph had used. Line 184 of full file, search on AFN-VERSION 1.2
- File example: Letters/Loan Status Notice/Loan Status Notice.xsl · AFN_WORK @ GitLab
- Snippet to insert: AFN Loan Status Notice ($2131138) · Snippets @ GitLab
- Updated IZ – FUL requests report letter. In config details below it linked to the wrong snippet. Correct link is here, also updated below. Also only Guelph used this letter we think.
- Snippet to insert: AFN Ful Requests Report ($2131230) · Snippets @ GitLab
June 8, 2021
- Updated IZ – footer.xsl (changed ‘there are 2 sections’ to ‘there are 3 sections)
- Updated IZ - footer.xsl please re-apply. The code in the repository was changed (example file and snippet).
- Had to add a missing s on multiple loan related urls Thanks Alex Fletcher!
- Changed contact info for Queen's in 2 places
- Incorrect York email address, thanks Tuan!
- File example: Components Configuration/footer.xsl · AFN_WORK @ GitLab
- Snippet: AFN footer.xsl snippt ($2120105) · Snippets @ GitLab
- Updated IZ – On Hold Shelf Letter. Added some translated French. You can reapply based on full instructions below for IZ – On Hold Shelf Letter, or search the repository file or snippet for AFN-VERSION 1.1 and apply the new text
- File example: Letters/On Hold Shelf Letter/On Hold Shelf Letter.xsl · AFN_WORK @ GitLab
- Snippet to insert: AFN On Hold Shelf Letter ($2120632) · Snippets @ GitLab
- Updated IZ – On Hold Shelf Reminder Letter. Added some translated French. You can reapply based on full instructions below for IZ – On Hold Shelf Reminder Letter, or search the repository file or snippet for AFN-VERSION 1.1 and apply the new text
- Updated IZ – Borrowing Activity Letter. Added some translated French.
- You can reapply based on full instructions below for IZ – Borrowing Activity Letter, or search the repository file or snippet for AFN-VERSION 1.1 and apply the new text
- Updated the French for the letterName and subject:
- We need to globally change the letter name and subject, these are the only labels we’ll change. Toggle the Language filter to ‘French’ on the Labels tab
- Enter ‘Sommaire de vos emprunts à la bibliothèque’ for the translation of the ‘letterName’ and the ‘Subject’ fields.
- Updated IZ – Loan Status Notice. Added some translated French. You can reapply based on full instructions below for IZ – Loan Status Notice, or search the repository file or snippet mentioned in IZ – Loan Status Notice for AFN-VERSION 1.1 and apply the new text
- File example: Letters/Loan Status Notice/Loan Status Notice.xsl · AFN_WORK @ GitLab
- Snippet to insert: AFN Loan Status Notice ($2131138) · Snippets @ GitLab