Bug 38315

Summary: Add a class to expired patrons in patron search
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: PatronsAssignee: Lucas Gass (lukeg) <lucas>
Status: RESOLVED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: trivial    
Priority: P5 - low CC: david, gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This updates patron search results in the staff interface to use the "dateexpiry" class to highlight expired patron accounts for the "Expires on" column (the date is now red and in italics).
Version(s) released in:
24.11.00
Circulation function:
Attachments: Bug 38315: Add expired class to expired patrons in patron search results
Bug 38315: Add expired class to expired patrons in patron search results
Bug 38315: Add expired class to expired patrons in patron search results

Description Lucas Gass (lukeg) 2024-10-31 14:53:05 UTC
Some libraries would like the ability to customize the patron search results to make expired patrons stand out better. 

We already have CSS for an 'expired' class in the staff global CSS.
Comment 1 Lucas Gass (lukeg) 2024-10-31 14:55:59 UTC
Created attachment 173808 [details] [review]
Bug 38315: Add expired class to expired patrons in patron search results

To test:
0. APPLY PATCH
1. Have some expired patrons
2. Do a search that will return some expired patrons and some not expired.
3. Look at the 'Expires on' column.
4. The expired patrons should have an expired class set and the date should be red/italic.
Comment 2 David Nind 2024-10-31 21:32:15 UTC
Created attachment 173837 [details] [review]
Bug 38315: Add expired class to expired patrons in patron search results

To test:
0. APPLY PATCH
1. Have some expired patrons
2. Do a search that will return some expired patrons and some not expired.
3. Look at the 'Expires on' column.
4. The expired patrons should have an expired class set and the date should be red/italic.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Marcel de Rooy 2024-11-15 07:46:32 UTC
Created attachment 174541 [details] [review]
Bug 38315: Add expired class to expired patrons in patron search results

To test:
0. APPLY PATCH
1. Have some expired patrons
2. Do a search that will return some expired patrons and some not expired.
3. Look at the 'Expires on' column.
4. The expired patrons should have an expired class set and the date should be red/italic.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Katrin Fischer 2024-11-19 15:36:46 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 5 Lucas Gass (lukeg) 2024-12-05 22:36:03 UTC
Enhancement, no backport for 24.05.x