Bugzilla – Attachment 174541 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.63 KB, created by
Marcel de Rooy
on 2024-11-15 07:46:32 UTC
(
hide
)
Description:
Bug 38315: Add expired class to expired patrons in patron search results
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-11-15 07:46:32 UTC
Size:
1.63 KB
patch
obsolete
>From 9455ef1c7b49f5218585fecccdcaf44d3946492f 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 >Content-Type: text/plain; charset=utf-8 > >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> >--- > 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 87afa1e7c9..9c890eede2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -601,7 +601,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.5
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