Bugzilla – Attachment 173808 Details for
Bug 38315
Add a class to expired patrons in patron search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38315: Add expired class to expired patrons in patron search results
Bug-38315-Add-expired-class-to-expired-patrons-in-.patch (text/plain), 1.49 KB, created by
Lucas Gass (lukeg)
on 2024-10-31 14:55:59 UTC
(
hide
)
Description:
Bug 38315: Add expired class to expired patrons in patron search results
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-10-31 14:55:59 UTC
Size:
1.49 KB
patch
obsolete
>From 6cfc3c13a3a3818ca6cbee2394cb18b6298cc49a Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 31 Oct 2024 14:53:49 +0000 >Subject: [PATCH] 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. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index d2eef529c7c..ef725864e20 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -603,7 +603,7 @@ > "searchable": true, > "orderable": true, > "render": function( data, type, row, meta ) { >- return data ? escape_str($date(data)) : ""; >+ return "<span class=\"dateexpiry" + (new Date(data) < new Date() ? ' expired' : '') + "\">" + (data ? escape_str($date(data)) : '') + "</span>"; > } > } > [% CASE 'borrowernotes' %] >-- >2.39.2
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 38315
:
173808
|
173837
|
174541