From 7ede3a464f0d0a5c0332ff8dbf2d60a7b5e689c7 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 (cherry picked from commit 8211aad8c7ad772685b5e3624b3b55b738fe18a2) Signed-off-by: Martin Renvoize (cherry picked from commit f4a02e66d3d7485109116f6a9b9f9c33218a4d4a) Signed-off-by: Lucas Gass --- 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 2509581e7b..b203c5753b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -612,7 +612,7 @@ No patron matched [% message | html %] [% IF ( issue ) %]
-

Checked out: [% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). 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.39.5