Bug 38013 - Some checkin messages on checkins page lack specific CSS classes
Summary: Some checkin messages on checkins page lack specific CSS classes
Status: RESOLVED FIXED
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: Martin Renvoize (ashimema)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-26 14:29 UTC by Andrew Fuerste-Henry
Modified: 2024-11-20 23:35 UTC (History)
5 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:
24.11.00
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
Bug 38013: Add classes to messages in returns.tt (2.29 KB, patch)
2024-10-28 11:51 UTC, Martin Renvoize (ashimema)
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
Comment 4 Martin Renvoize (ashimema) 2024-10-28 11:51:14 UTC
Created attachment 173526 [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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Katrin Fischer 2024-10-29 07:54:22 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 6 Lucas Gass (lukeg) 2024-11-20 23:35:48 UTC
Merge conflicts with 24.05.x, no backport.