From 9871417d4462a99129cf938c3470c98ae6fae85f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Nov 2014 10:20:00 +0100 Subject: [PATCH] Bug 11201: Display overdues in red On the pending on-site checkout list, the date for overdues are now displayed in red. Test plan: Make sure you have on-site checkouts created today and before. The date for the ones created before today should be displayed in red. Signed-off-by: Nicole Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- C4/Circulation.pm | 1 + .../intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 135b300f90..dc828dac2c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3927,6 +3927,7 @@ sub GetPendingOnSiteCheckouts { items.location, issues.date_due, issues.branchcode, + issues.date_due < NOW() AS is_overdue, biblio.author, biblio.title, borrowers.firstname, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt index cb67007b5a..89a2ee417f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt @@ -52,7 +52,11 @@ $(document).ready(function(){ [% FOREACH item IN pending_onsite_checkouts %] - [% item.date_due | $KohaDates %] + + [% IF item.is_overdue %][% END %] + [% item.date_due | $KohaDates %] + [% IF item.is_overdue %][% END %] + [%item.firstname %] [% item.surname %] -- 2.39.5