From 92fe8091937242ced94c5e565a1b428ae253bda4 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Wed, 18 Dec 2024 15:25:25 -0500 Subject: [PATCH] Bug 36256: Port default MEMBERSHIP_EXPIRY notice to Template Toolkit syntax This patch changes the sample MEMBERSHIP_EXPIRY email notice to Template Toolkit syntax. To test: 1. Apply patch and reset_all 2. Go to Tools > Notices and slips 3. Check the MEMBERSHIP_EXPIRY email notice, make sure everything looks good (TT syntax, grammar and spelling OK) 4. Add a value in MembershipExpiryDaysNotice 5. Change a patron's account so that it expires in the number of days in MembershipExpiryDaysNotice 6. Add an email address in the patron's account 7. Run /misc/cronjobs/membership_expiry.pl -c 8. Go to the patron's notices and check that the text of the notice was generated correctly and that the grammar and spelling are OK --- installer/data/mysql/en/mandatory/sample_notices.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index e054a5a0fa..8f01192436 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1461,17 +1461,15 @@ tables: message_transport_type: email lang: default content: - - "Dear <> <> <>," + - "Dear [% borrower.firstname %] [% borrower.surname %]," - "" - "Your library card will expire soon, on:" - "" - - "<>" + - "[% borrower.dateexpiry %]" - "" - "Thank you," - "" - - "Librarian" - - "" - - "<>" + - "[% branch.branchname %]" - module: members code: MEMBERSHIP_RENEWED -- 2.34.1