@@ -, +, @@
remaining renewals is displayed.
---
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 9 +++++++--
opac/opac-user.pl | 8 ++++++--
2 files changed, 13 insertions(+), 4 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -206,14 +206,19 @@
[% END %]
([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)
[% ELSE %]
- Not renewable
- [% IF ( ISSUE.too_many ) %]
+ [% IF ( ISSUE.too_many ) %]
+ Not renewable
+ ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)
+ [% ELSE %]
+ [% IF ( ISSUE.too_soon ) %]
+ Not renewable yet
([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)
[% ELSE %]
[% IF ( ISSUE.on_reserve ) %]
(On hold)
[% END %]
[% END %]
+ [% END %]
[% END %]
[% END %]
--- a/opac/opac-user.pl
+++ a/opac/opac-user.pl
@@ -182,8 +182,12 @@ if ($issues){
if($status && C4::Context->preference("OpacRenewalAllowed")){
$issue->{'status'} = $status;
}
- $issue->{'too_many'} = 1 if $renewerror and $renewerror eq 'too_many';
- $issue->{'on_reserve'} = 1 if $renewerror and $renewerror eq 'on_reserve';
+
+ if ( $renewerror ) {
+ $issue->{'too_many'} = 1 if $renewerror eq 'too_many';
+ $issue->{'too_soon'} = 1 if $renewerror eq 'too_soon';
+ $issue->{'on_reserve'} = 1 if $renewerror eq 'on_reserve';
+ }
if ( $issue->{'overdue'} ) {
push @overdues, $issue;
--