From c3401798544c9c9446a2b5488b0c155a248572aa Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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 --- .../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 ec0e2386da..6e1af7f515 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1490,6 +1490,62 @@ tables: - "
" - "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 %]" + - "
" + - "
" + - "
" + - "

" + - " [% borrower.firstname %] [% borrower.surname %]
" + - " [% borrower.address %]
" + - " [% borrower.city %] [% borrower.zipcode %]
" + - " [% borrower.country %]
" + - "

" + - "
" + - "
" + - "

" + - " [% branch.branchname %]
" + - " [% branch.branchaddress1 %]
" + - " [% branch.branchaddress2 %]
" + - "

" + - "
" + - "
" + - "
" + - "

" + - " [% today %]" + - "

" + - "
" + - "
" + - "
" + - "

Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]

" + - "
" + - "
" + - "
" + - "
" + - "

" + - " Thank you for joining [% IF Koha.Preference('LibraryName') %][% Koha.Preference('LibraryName') %][% ELSE %]the library[% END %]
" + - "

" + - "

" + - " You can search for all our materials in our catalog.
" + - "

" + - "

" + - " Your library card number is [% borrower.cardnumber %]
" + - "

" + - "

" + - " If you have any problems or questions regarding your account, please contact the library.
" + - "

" + - "
" + - "
" + - "
" + - module: members code: 2FA_OTP_TOKEN branchcode: "" -- 2.39.2