Bugzilla – Attachment 33185 Details for
Bug 11201
List pending in-house checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11201: Display overdues in red
Bug-11201-Display-overdues-in-red.patch (text/plain), 2.07 KB, created by
Jonathan Druart
on 2014-11-04 09:23:34 UTC
(
hide
)
Description:
Bug 11201: Display overdues in red
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-11-04 09:23:34 UTC
Size:
2.07 KB
patch
obsolete
>From 7b2a02202ffb4df1cd95f97714839f4b19cb624a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >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 fbf4273..dc242aa 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3804,6 +3804,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(){ > <tbody> > [% FOREACH item IN pending_onsite_checkouts %] > <tr> >- <td><span title="[% item.date_due %]">[% item.date_due | $KohaDates %]</span></td> >+ <td> >+ [% IF item.is_overdue %]<span class="overdue">[% END %] >+ <span title="[% item.date_due %]">[% item.date_due | $KohaDates %]</span> >+ [% IF item.is_overdue %]</span>[% END %] >+ </td> > <td> > <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]">[%item.firstname %] [% item.surname %]</a> > </td> >-- >2.1.0
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 11201
:
22718
|
31391
|
31392
|
31666
|
33185
|
36278
|
36471
|
36475
|
36646
|
36663
|
36914
|
36915
|
36916
|
36917