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 = _("Can no longer be auto-renewed - number of checkout days exceeded");
20
    var NOT_RENEWABLE_AUTO_TOO_LATE = _("Can no longer be auto-renewed - number of checkout days exceeded");
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 376-381 $(document).ready(function() { Link Here
376
376
377
                            span_style = "display: none";
377
                            span_style = "display: none";
378
                            span_class = "renewals-allowed";
378
                            span_class = "renewals-allowed";
379
                        } else if ( oObj.can_renew_error == "auto_too_much_oweing" ) {
380
                            content += "<span class='renewals-disabled'>"
381
                                    + NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING
382
                                    + "</span>";
383
384
                            span_style = "display: none";
385
                            span_class = "renewals-allowed";
379
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
386
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
380
                            content += "<span class='renewals-disabled'>"
387
                            content += "<span class='renewals-disabled'>"
381
                                    + NOT_RENEWABLE_AUTO_RENEW
388
                                    + NOT_RENEWABLE_AUTO_RENEW
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+3 lines)
Lines 285-290 Using this account is not recommended because some parts of Koha will not functi Link Here
285
                                                        Not allowed <span class="renewals">(overdue)</span>
285
                                                        Not allowed <span class="renewals">(overdue)</span>
286
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
286
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
287
                                                        No longer renewable
287
                                                        No longer renewable
288
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
289
                                                        Automatic renewal failed, you have unpaid fines.
290
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
288
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
291
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
289
                                                        Automatic renewal
292
                                                        Automatic renewal
290
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
293
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 222-227 if ($issues){ Link Here
222
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
222
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
223
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
223
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
224
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
224
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
225
            $issue->{'auto_too_much_oweing'}  = 1 if $renewerror eq 'auto_too_much_oweing';
225
226
226
            if ( $renewerror eq 'too_soon' ) {
227
            if ( $renewerror eq 'too_soon' ) {
227
                $issue->{'too_soon'}         = 1;
228
                $issue->{'too_soon'}         = 1;
228
- 

Return to bug 15705