Bug 11577: OPAC bootstrap theme changes
This patch makes opac-user.pl and the bootstrap version of opac-user.tt handle the new renewal errors "auto_renew" and "auto_too_soon". To test: 1) Set global syspref "opacthemes" to bootstrap. 2) Set global syspref "OpacRenewalAllowed" to Allow. 3) Test the same things as in previous patch, this time for the OPAC summary page. Sponsored-by: Hochschule für Gesundheit (hsg), Germany Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
0270b8d3b6
commit
17821c58cc
|
|
@ -230,6 +230,9 @@
|
|||
<span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
|
||||
[% ELSIF ( ISSUE.too_many ) %]
|
||||
Not renewable
|
||||
[% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
|
||||
Automatic renewal
|
||||
<span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
|
||||
[% ELSIF ( ISSUE.too_soon ) %]
|
||||
No renewal before [% ISSUE.soonestrenewdate %]
|
||||
<span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
|
||||
|
|
|
|||
|
|
@ -194,8 +194,10 @@ if ($issues){
|
|||
$issue->{'renewed'} = $renewed{ $issue->{'itemnumber'} };
|
||||
|
||||
if ($renewerror) {
|
||||
$issue->{'too_many'} = 1 if $renewerror eq 'too_many';
|
||||
$issue->{'on_reserve'} = 1 if $renewerror eq 'on_reserve';
|
||||
$issue->{'too_many'} = 1 if $renewerror eq 'too_many';
|
||||
$issue->{'on_reserve'} = 1 if $renewerror eq 'on_reserve';
|
||||
$issue->{'auto_renew'} = 1 if $renewerror eq 'auto_renew';
|
||||
$issue->{'auto_too_soon'} = 1 if $renewerror eq 'auto_too_soon';
|
||||
|
||||
if ( $renewerror eq 'too_soon' ) {
|
||||
$issue->{'too_soon'} = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue