From e7bf50600d053238d354ec2989f3fbe542c47aaa Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Apr 2014 15:21:59 -0400 Subject: [PATCH] Bug 9724: ensure hourly loans show time due in SCO MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Due dates in the self checkout module don't display the time items are due, and thus items which are on hourly loans don't display an accurate due date and time. This patch corrects this by adding the "as_due_date => 1" parameter added by Bug 9723. To test, apply the patch for Bug 9723 if necessary. Enable an hourly loan period for an itemtype in your collection. Log into the self-checkout system and check out an item which circulates by the hour. The due date and time should be displayed correctly. Check out an item which does not circulate hourly. The due date should be displayed as a date only. Test in both prog and Bootstrap themes. Followed test plan. Works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index e7a42e7fb3..518fceeb15 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -229,9 +229,9 @@ [% ISSUE.itemcallnumber %] [% IF ( ISSUE.overdue ) %] - [% ISSUE.date_due | $KohaDates %] + [% ISSUE.date_due | $KohaDates as_due_date => 1 %] [% ELSE %] - [% ISSUE.date_due | $KohaDates %] + [% ISSUE.date_due | $KohaDates as_due_date => 1 %] [% END %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt index a5661d58fe..e117f25a60 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -276,7 +276,7 @@ Sorry, this self-checkout station has lost authentication. Please contact the a [% UNLESS ( noitemlinks ) %][% ISSUE.title |html %][% ELSE %][% ISSUE.title |html %][% END %] [% ISSUE.author %] ([% ISSUE.barcode %]) [% ISSUE.itemcallnumber %] - [% IF ( ISSUE.overdue ) %][% ISSUE.date_due | $KohaDates %][% ELSE %][% ISSUE.date_due | $KohaDates %][% END %] + [% IF ( ISSUE.overdue ) %][% ISSUE.date_due | $KohaDates as_due_date => 1 %][% ELSE %][% ISSUE.date_due | $KohaDates as_due_date => 1 %][% END %] -- 2.20.1