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 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 261-266 Using this account is not recommended because some parts of Koha will not functi Link Here
261
                                                        Not allowed <span class="renewals">(overdue)</span>
261
                                                        Not allowed <span class="renewals">(overdue)</span>
262
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
262
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
263
                                                        No longer renewable
263
                                                        No longer renewable
264
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
265
                                                        Automatic renewal failed, you have unpaid fines.
266
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
264
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
267
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
265
                                                        Automatic renewal
268
                                                        Automatic renewal
266
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
269
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 213-218 if ($issues){ Link Here
213
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
213
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
214
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
214
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
215
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
215
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
216
            $issue->{'auto_too_much_oweing'}  = 1 if $renewerror eq 'auto_too_much_oweing';
216
217
217
            if ( $renewerror eq 'too_soon' ) {
218
            if ( $renewerror eq 'too_soon' ) {
218
                $issue->{'too_soon'}         = 1;
219
                $issue->{'too_soon'}         = 1;
219
- 

Return to bug 15705