Bugzilla – Attachment 172398 Details for
Bug 38087
Ship a default print template for the welcome notice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38087: Add print template for WELCOME notice at install time
Bug-38087-Add-print-template-for-WELCOME-notice-at.patch (text/plain), 4.18 KB, created by
Laura Escamilla
on 2024-10-04 13:37:47 UTC
(
hide
)
Description:
Bug 38087: Add print template for WELCOME notice at install time
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2024-10-04 13:37:47 UTC
Size:
4.18 KB
patch
obsolete
>From c3401798544c9c9446a2b5488b0c155a248572aa 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> >--- > .../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: > - "<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.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38087
:
172386
|
172398
|
178683
|
178684
|
179199
|
179200
|
179586
|
179587