Bug 14434: Display "Not renewable (on hold)" in OPAC
This patch makes the OPAC display "Not renewable (on hold)" when
a hold is placed.
Test plan:
1) Do not apply patch.
2) Issue an item with automatic renewal.
3) Issue an item with manual renewal.
4) Place a hold on both items.
5) Log in as patron and note that the column "Renew" says "Automatic
renewal (x of y renewals remaining)" for the auto renewed item
and "(On hold) for the other item.
6) Apply patch.
7) Refresh OPAC and note that now "Not renewable (on hold)" is displayed
for both items.
8) Cancel the holds, then log in as patron again and confirm that the
correct renewal conditions are displayed.
Sponsored-by: Hochschule für Gesundheit (hsg), Germany
Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 77b03f1e8b)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
1147fe4c0f
commit
930b32bc47
|
|
@ -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 ) %]
|
||||
Not renewable <span class="renewals">(on hold)</span>
|
||||
[% ELSIF ( ISSUE.too_many ) %]
|
||||
Not renewable
|
||||
[% ELSIF ( ISSUE.norenew_overdue ) %]
|
||||
|
|
@ -268,8 +270,6 @@ Using this account is not recommended because some parts of Koha will not functi
|
|||
[% ELSIF ( ISSUE.too_soon ) %]
|
||||
No renewal before [% ISSUE.soonestrenewdate %]
|
||||
<span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
|
||||
[% ELSIF ( ISSUE.on_reserve ) %]
|
||||
<span class="renewals">(On hold)</span>
|
||||
[% END %]
|
||||
</td>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue