Bugzilla – Attachment 181185 Details for
Bug 36110
Port default OVERDUES_SLIP to Template Toolkit syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36110: Adjust OVERDUES_SLIP to use Template Toolkit
Bug-36110-Adjust-OVERDUESSLIP-to-use-Template-Tool.patch (text/plain), 2.95 KB, created by
Lucas Gass (lukeg)
on 2025-04-18 15:15:55 UTC
(
hide
)
Description:
Bug 36110: Adjust OVERDUES_SLIP to use Template Toolkit
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-04-18 15:15:55 UTC
Size:
2.95 KB
patch
obsolete
>From 1be21d48cb1567140ddfaeb55ba8febafec2d5f4 Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >Date: Wed, 18 Dec 2024 09:55:56 -0500 >Subject: [PATCH] Bug 36110: Adjust OVERDUES_SLIP to use Template Toolkit >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1. Apply patch >2. reset_all (or start your testing environment in the first place) >3. Set system preferences finesMode to Calculate and charge >4. Edit default circulation rule so that fines will be calculated: > Unit - Days > Fine amount - 0.50 > Fine charging interval - 1 > When to charge - Start of interval >5. Check 2 items out to a patron with a custom due date of a few days in > the past >6. On the patron's account page, click Print > Print overdues >--> Look at the print preview of the slip, and confirm that the item > information is displayed and formatted correctly >7. In another tab, edit the 2 items to add a call number (if they don't > already have one) >8. Print overdues again >--> Confirm the slip still looks good >9. Run the fines cronjob to generate some overdue fines > ktd --shell > misc/cronjobs/fines.pl -v -c >10. Print overdues again >--> Confirm the fines are included and slip still looks good >11. Check in one of the overdue items >12. Print overdues again >--> Confirm slip now says "item is" instead of "items are" > >Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../data/mysql/en/mandatory/sample_notices.yml | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 86aa88626a6..8685d85112c 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -917,10 +917,20 @@ tables: > message_transport_type: print > lang: default > content: >- - "The following item(s) is/are currently overdue:" >- - "" >- - "<item>\"<<biblio.title>>\" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>" >- - "" >+ - "[%- USE Price -%]" >+ - "The following [% IF overdues > 1 %]items are[% ELSE %]item is[% END %] currently overdue:" >+ - "" >+ - "[% FOREACH odue IN overdues %]" >+ - "[% odue.item.biblio.title %]" >+ - "by [% odue.item.biblio.author %]" >+ - "[%- IF odue.item.itemcallnumber %]" >+ - "[% odue.item.itemcallnumber %]" >+ - "[%- END %]" >+ - "Barcode: [% odue.item.barcode %]" >+ - "[%- IF odue.overdue_fines.total_outstanding > 0 %]" >+ - "Fine: [% odue.overdue_fines.total_outstanding | $Price %]" >+ - "[%- END %]" >+ - "[% END %]" > > - module: circulation > code: PREDUE >-- >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 36110
:
175657
|
180573
|
180978
|
180979
| 181185 |
181186