Bug 38013 - Some return messages in returns.tt lack specific classes
Summary: Some return messages in returns.tt lack specific classes
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Andrew Fuerste-Henry
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-26 14:29 UTC by Andrew Fuerste-Henry
Modified: 2024-09-27 15:59 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38013: Add classes to messages in returns.tt (2.18 KB, patch)
2024-09-27 14:08 UTC, Andrew Fuerste-Henry
Details | Diff | Splinter Review
Bug 38013: Add classes to messages in returns.tt (2.23 KB, patch)
2024-09-27 15:55 UTC, Brendan Lawlor
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2024-09-26 14:29:18 UTC
Most of the messages that Koha might display on the checkin page have distinct classes. We do not apply a specific class when a checkout had an issue note:

https://github.com/Koha-Community/Koha/blob/b4054dbb1578349cd1b8caa8fac9cbe6e32d20ea/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt#L177

Or when the patron has fines:

https://github.com/Koha-Community/Koha/blob/b4054dbb1578349cd1b8caa8fac9cbe6e32d20ea/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt#L187

We should do so in both cases.
Comment 1 Andrew Fuerste-Henry 2024-09-27 14:08:51 UTC
Created attachment 172116 [details] [review]
Bug 38013: Add classes to messages in returns.tt

To test:
1 - enable FineNotifyAtCheckin
2 - enable AllowCheckoutNotes
3 - check out an item to a patron with fines on their account
4 - check out an item and place a checkout note on it
5 - check each item in, confirm each produces a message with the classes alert, alert-info, and alert-warning
6 - apply patch, restart_all
7 - repeat steps 3 and 4
8 - check items in, confirm messages now include issue-note and patron-fines classes
Comment 2 Brendan Lawlor 2024-09-27 15:55:14 UTC
Created attachment 172136 [details] [review]
Bug 38013: Add classes to messages in returns.tt

To test:
1 - enable FineNotifyAtCheckin
2 - enable AllowCheckoutNotes
3 - check out an item to a patron with fines on their account
4 - check out an item and place a checkout note on it
5 - check each item in, confirm each produces a message with the classes alert, alert-info, and alert-warning
6 - apply patch, restart_all
7 - repeat steps 3 and 4
8 - check items in, confirm messages now include issue-note and patron-fines classes

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 3 Brendan Lawlor 2024-09-27 15:59:06 UTC
testing notes:
To easily create a checkout with fines
Define fine rules
Specify a backdated due date at checkout
Run fines.pl cronjob