From 1f15a6a1cdf8a33d6a8fdc0514be44d9edd32746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mei=C3=9Fner?= <h.meissner.82@web.de> Date: Thu, 11 Aug 2016 11:22:00 +0200 Subject: [PATCH] [SIGNED-OFF]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 Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised --- 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 <input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% ISSUE.itemnumber %]&borrowernumber=[% ISSUE.borrowernumber %]">Renew</a> [% END %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span> + [% ELSIF ( ISSUE.on_reserve ) %] + On hold [% ELSIF ( ISSUE.too_many ) %] Not renewable [% ELSIF ( ISSUE.norenew_overdue ) %] -- 1.7.10.4