View | Details | Raw Unified | Return to bug 15705
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc (+1 lines)
Lines 18-23 Link Here
18
    var NOT_RENEWABLE_TOO_SOON = _("No renewal before %s");
18
    var NOT_RENEWABLE_TOO_SOON = _("No renewal before %s");
19
    var NOT_RENEWABLE_AUTO_TOO_SOON = _("Scheduled for automatic renewal");
19
    var NOT_RENEWABLE_AUTO_TOO_SOON = _("Scheduled for automatic renewal");
20
    var NOT_RENEWABLE_AUTO_TOO_LATE = _("Scheduled for automatic renewal");
20
    var NOT_RENEWABLE_AUTO_TOO_LATE = _("Scheduled for automatic renewal");
21
    var NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING = _("Automatic renewal failed, patron has unpaid fines");
21
    var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal");
22
    var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal");
22
    var RENEWALS_REMAINING = _("%s of %s renewals remaining");
23
    var RENEWALS_REMAINING = _("%s of %s renewals remaining");
23
    var HOLD_IS_SUSPENDED = _("Hold is <strong>suspended</strong>");
24
    var HOLD_IS_SUSPENDED = _("Hold is <strong>suspended</strong>");
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (+7 lines)
Lines 360-365 $(document).ready(function() { Link Here
360
360
361
                            span_style = "display: none";
361
                            span_style = "display: none";
362
                            span_class = "renewals-allowed";
362
                            span_class = "renewals-allowed";
363
                        } else if ( oObj.can_renew_error == "auto_too_much_oweing" ) {
364
                            content += "<span class='renewals-disabled'>"
365
                                    + NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING
366
                                    + "</span>";
367
368
                            span_style = "display: none";
369
                            span_class = "renewals-allowed";
363
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
370
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
364
                            content += "<span class='renewals-disabled'>"
371
                            content += "<span class='renewals-disabled'>"
365
                                    + NOT_RENEWABLE_AUTO_RENEW
372
                                    + NOT_RENEWABLE_AUTO_RENEW
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+3 lines)
Lines 258-263 Using this account is not recommended because some parts of Koha will not functi Link Here
258
                                                        Not renewable
258
                                                        Not renewable
259
                                                    [% ELSIF ( ISSUE.norenew_overdue ) %]
259
                                                    [% ELSIF ( ISSUE.norenew_overdue ) %]
260
                                                        Not allowed <span class="renewals">(overdue)</span>
260
                                                        Not allowed <span class="renewals">(overdue)</span>
261
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
262
                                                        Automatic renewal failed, you have unpaid fines.
263
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
261
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
264
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
262
                                                        Automatic renewal
265
                                                        Automatic renewal
263
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
266
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 211-216 if ($issues){ Link Here
211
            $issue->{'norenew_overdue'} = 1 if $renewerror eq 'overdue';
211
            $issue->{'norenew_overdue'} = 1 if $renewerror eq 'overdue';
212
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
212
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
213
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
213
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
214
            $issue->{'auto_too_much_oweing'}  = 1 if $renewerror eq 'auto_too_much_oweing';
214
215
215
            if ( $renewerror eq 'too_soon' ) {
216
            if ( $renewerror eq 'too_soon' ) {
216
                $issue->{'too_soon'}         = 1;
217
                $issue->{'too_soon'}         = 1;
217
- 

Return to bug 15705