From 54e1aa14894a1eb7fe6e2790cb7bd826141f5507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mei=C3=9Fner?= Date: Thu, 11 Aug 2016 11:22:00 +0200 Subject: [PATCH] Bug 14434: Display "On hold" in OPAC for auto renewed items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes the OPAC display "On hold" instead of "Automatic renewal" when a hold is placed. Test plan: 1) Issue an item with automatic renewal. 2) Place a hold on the item. 3) Log in as patron and note that the column "Renew" says "Automatic renewal (x of y renewals remaining)." 4) Apply patch. 5) Refresh OPAC and note that now "On hold" is displayed. 6) Cancel the hold, then log in as patron again and note that now "Automatic renewal (x of y renewals remaining)" is displayed once again. Sponsored-by: Hochschule für Gesundheit (hsg), Germany --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index f2aad35..042ca4f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -258,6 +258,8 @@ Using this account is not recommended because some parts of Koha will not functi Renew [% END %] ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) + [% ELSIF ( ISSUE.on_reserve ) %] + On hold [% ELSIF ( ISSUE.too_many ) %] Not renewable [% ELSIF ( ISSUE.norenew_overdue ) %] -- 1.7.10.4