From bc9298be6d0b012b5b5874aa213d8431215ccf1f Mon Sep 17 00:00:00 2001 From: Martin Renvoize <martin.renvoize@ptfs-europe.com> Date: Fri, 4 Oct 2024 12:45:07 +0100 Subject: [PATCH] Bug 38087: Add print template for WELCOME notice at install time This patch adds a default print template for the welcome notice. It will be installed at install time but will not be added at upgrade time. It will also be available as the default under the notice templates tool. Test plan 1) Apply the patch 2) Under 'Tools > Notices and Slips' select the 'WELCOME' notice to edit 3) Click 'View default' under the 'Print' message transport type 4) Note the new default template is shown 5) Use 'Copy to template' to apply it to the notice 6) Use a user (Henry perhaps under sandboxes) without an email address to test the template by 6a) Under 'more' click 'Send welcome notice' 7) Preview the pending print notice under the patrons notices tab by clicking the notice title. 8) Confirm the notice looks reasonable and sign off Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> --- .../mysql/en/mandatory/sample_notices.yml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index e9bd14d3..8ef7be69 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1588,6 +1588,62 @@ tables: - "<br>" - "If you have any problems or questions regarding your account, please contact the library." + - module: members + code: WELCOME + branchcode: "" + name: "Welcome notice " + is_html: 1 + title: "[% USE Koha %][% IF Koha.Preference('LibraryName') %]Welcome to [% Koha.Preference('LibraryName') %][% ELSE %]Welcome to the library[% END %]" + message_transport_type: print + lang: default + content: + - "[% USE Koha %]" + - "<div class=\"container mt-5\">" + - "<div class=\"row\">" + - " <div class=\"col-6\">" + - " <p>" + - " <strong>[% borrower.firstname %] [% borrower.surname %]</strong><br>" + - " [% borrower.address %]<br>" + - " [% borrower.city %] [% borrower.zipcode %]<br>" + - " [% borrower.country %]<br>" + - " </p>" + - " </div>" + - " <div class=\"col-6 text-end\">" + - " <p>" + - " <strong>[% branch.branchname %]</strong><br>" + - " [% branch.branchaddress1 %]<br>" + - " [% branch.branchaddress2 %]<br>" + - " </p>" + - " </div>" + - " <div class=\"row mb-4\">" + - " <div class=\"col-12\">" + - " <p class=\"text-end\">" + - " <strong>[% today %]</strong>" + - " </p>" + - " </div>" + - " <div class=\"row mb-4\">" + - " <div class=\"col-12\">" + - " <p>Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]</p>" + - " </div>" + - " </div>" + - " <div class=\"row mb-4\">" + - " <div class=\"col-12\">" + - " <p>" + - " Thank you for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]<br>" + - " </p>" + - " <p>" + - " You can search for all our materials in our <a href='[% Koha.Preference('OPACBaseURL') %]'>catalog</a>.<br>" + - " </p>" + - " <p>" + - " Your library card number is [% borrower.cardnumber %]<br>" + - " </p>" + - " <p>" + - " If you have any problems or questions regarding your account, please contact the library.<br>" + - " </p>" + - " </div>" + - " </div>" + - "</div>" + - module: members code: 2FA_OTP_TOKEN branchcode: "" -- 2.30.2