Bug 31981: Add classes to each NEEDSCONFIRM message in circ/circulation.tt
authorLucas Gass <lucas@bywatersolutions.com>
Thu, 21 Mar 2024 16:37:13 +0000 (16:37 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 6 May 2024 09:18:13 +0000 (11:18 +0200)
commit2c8196cc077501d1b970f1077f94fd3f25b1385a
tree98857f5ea76546df5995000bb14d4a5211dd52c9
parent70eefbdce72e83a5c5af0de2ec3e81c6a59fc225
Bug 31981: Add classes to each NEEDSCONFIRM message in circ/circulation.tt

This patch adds a 'needsconfirm' class and a unique class to each NEEDSCONFIRM message on circ/circulation.tt to make these easier to style individually.

To test:
1. APPLY patch
2. Review the diff to see each of the NEEDSCONFIRMATION messages.
3. Add some CSS to IntranetUserCSS like this:

.needsconfirm { padding: 1em; color: #fff; }

.reserved { background: blue; }
.debt { background: red; }
.reserve_waiting { background: orange; }
.rentalcharge { background: purple; }
.renew_issue { background: limegreen; }

4. Place a hold on an item for Patron A, do not trigger the hold, and check the item out to Patron B.  The message background is blue.
5. Then check the item in, confirm the hold, then check the item out to Patron B.  The message background is orange
6. Check something out that is already checked out to that patron, message background is lime green.
7. Have too much debt and check something out to a patron, message is red.

Note: There are plenty more NEEDSCONFIRMATION messages but I don't think we need to test every single one.
Note: These background colors are more testing purposes only.
Signed-off-by: Donna <donna@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt