From dc703571112c3f6dc766a0c0ed51a5ef7c0125a6 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. --- C4/Circulation.pm | 1 + koha-tmpl/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 eca7ddb..f1e8251 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3911,6 +3911,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 cb67007..89a2ee4 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.1.0