Bug 7413: OPAC prog theme changes
This patch makes the prog version of opac-user.tt handle the new renewal error "too_soon". To test: 1) Set global syspref "opacthemes" to prog. 2) Test the same things as in previous patch. Sponsored-by: Hochschule für Gesundheit (hsg), Germany Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
acf862ba62
commit
f71aa0768c
1 changed files with 15 additions and 4 deletions
|
@ -189,10 +189,21 @@ var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended
|
||||||
[% IF ( show_barcode ) %]<td class="barcode">[% ISSUE.barcode %]</td>[% END %]
|
[% IF ( show_barcode ) %]<td class="barcode">[% ISSUE.barcode %]</td>[% END %]
|
||||||
<td class="call_no">[% ISSUE.itemcallnumber %]</td>
|
<td class="call_no">[% ISSUE.itemcallnumber %]</td>
|
||||||
[% IF ( OpacRenewalAllowed ) %]
|
[% IF ( OpacRenewalAllowed ) %]
|
||||||
<td class="renew">[% IF ( ISSUE.status ) %][% IF ( canrenew ) %]<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>
|
<td class="renew">
|
||||||
[% ELSE %]
|
[% IF ( ISSUE.status ) %]
|
||||||
Not renewable[% IF ( ISSUE.too_many ) %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>[% ELSE %][% IF ( ISSUE.on_reserve ) %] <span class="renewals">(On hold)</span>[% END %][% END %]
|
[% IF ( canrenew ) %]
|
||||||
[% END %]</td>
|
<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.too_many ) %]
|
||||||
|
Not renewable
|
||||||
|
[% 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 %]
|
[% END %]
|
||||||
[% IF ( OPACFinesTab ) %]
|
[% IF ( OPACFinesTab ) %]
|
||||||
<td class="fines">[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
|
<td class="fines">[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
|
||||||
|
|
Loading…
Reference in a new issue