From 8211aad8c7ad772685b5e3624b3b55b738fe18a2 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 6 Feb 2019 12:27:53 +0000 Subject: [PATCH] Bug 17236: Add minute and hours to last checked out item on circulation for hourly loans MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is a simple fix using the right TT filter: [% issue.date_due | $KohaDates as_due_date => 1 %] The time part of the due date will only display if it's an hourly loan (!=23:59) To test: - Check out 2 items - One with a loan period in days - One with a loan period in hours - Verify the the due date only shows the date part - Apply patch - Return items and repeat - Verify that now the time part will show for the hourly loan Signed-off-by: Owen Leonard Signed-off-by: Mikaƫl Olangcay Brisebois Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index d1cec351f8..5490ea64f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -613,7 +613,7 @@ No patron matched [% message | html %] [% IF ( issue ) %]
-

Checked out: [% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates %]

+

Checked out: [% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates as_due_date => 1 %]

[% END %] -- 2.11.4.GIT