Bugzilla – Attachment 178473 Details for
Bug 36109
Port default ODUE notice to Template Toolkit syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36109: Convert sample ODUE notice to TT
Bug-36109-Convert-sample-ODUE-notice-to-TT.patch (text/plain), 3.65 KB, created by
Marcel de Rooy
on 2025-02-21 10:15:53 UTC
(
hide
)
Description:
Bug 36109: Convert sample ODUE notice to TT
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-21 10:15:53 UTC
Size:
3.65 KB
patch
obsolete
>From 4aa3f8a5321e627eb5b37e99457d84482b893728 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 1 Oct 2024 19:15:21 +0100 >Subject: [PATCH] Bug 36109: Convert sample ODUE notice to TT >Content-Type: text/plain; charset=utf-8 > >This is an initial submission to convert the existing <<>> sample notice >to TT. > >We could do more here, like including the due date and making the fines >display more clearly optional. > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../mysql/en/mandatory/sample_notices.yml | 30 +++++++++++-------- > 1 file changed, 18 insertions(+), 12 deletions(-) > >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 30e888c4c7..e6f9d76e53 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -880,26 +880,32 @@ tables: > message_transport_type: email > lang: default > content: >- - "Dear <<borrowers.firstname>> <<borrowers.surname>>," >+ - "[%- USE Price -%]" >+ - "Dear [% borrower.firstname %] [% borrower.surname %]," > - "" >- - "According to our current records, you have items that are overdue.Your library does not charge late fines, but please return or renew them at the branch below as soon as possible." >+ - "According to our current records, you have items that are overdue." >+ - "Please return or renew them at the branch below as soon as possible." > - "" >- - "<<branches.branchname>>" >- - "<<branches.branchaddress1>>" >- - "<<branches.branchaddress2>> <<branches.branchaddress3>>" >- - "Phone: <<branches.branchphone>>" >- - "Fax: <<branches.branchfax>>" >- - "Email: <<branches.branchemail>>" >+ - "[% branch.branchname %]" >+ - "[% branch.branchaddress1 %]" >+ - "[% branch.branchaddress2 %] [% branch.branchaddress3 %]" >+ - "Phone: [% branch.branchphone %]" >+ - "Fax: [% branch.branchfax %]" >+ - "Email: [% branch.branchemail %]" > - "" >- - "If you have registered a password with the library, and you have a renewal available, you may renew online. If an item becomes more than 30 days overdue, you will be unable to use your library card until the item is returned." >+ - "If you have registered a password with the library, and you have a renewal available, you may renew online." >+ - "If an item becomes more than 30 days overdue, you will be unable to use your library card until the item is returned." > - "" >- - "The following item(s) is/are currently overdue:" >+ - "The following [% IF overdues.count > 1 %]items are[% ELSE %]item is[% END %] currently overdue:" > - "" >- - "<item>\"<<biblio.title>>\" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>" >+ - "[% FOREACH overdue IN overdues %]" >+ - "[%- SET item = overdue.item -%]" >+ - "\"[% item.biblio.title %]\" by [% item.biblio.author %], [% item.itemcallnumber %], Barcode: [% item.barcode %], Fine: [% overdue.overdue_fines.total_outstanding | $Price %]" >+ - "[% END %]" > - "" > - "Thank-you for your prompt attention to this matter." > - "" >- - "<<branches.branchname>> Staff" >+ - "[% branch.branchname %] Staff" > - "" > > - module: circulation >-- >2.39.5
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 36109
:
172285
|
172377
|
175673
|
175674
| 178473 |
178474