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 355-360 $(document).ready(function() { Link Here
355
355
356
                            span_style = "display: none";
356
                            span_style = "display: none";
357
                            span_class = "renewals-allowed";
357
                            span_class = "renewals-allowed";
358
                        } else if ( oObj.can_renew_error == "auto_too_much_oweing" ) {
359
                            content += "<span class='renewals-disabled'>"
360
                                    + NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING
361
                                    + "</span>";
362
363
                            span_style = "display: none";
364
                            span_class = "renewals-allowed";
358
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
365
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
359
                            content += "<span class='renewals-disabled'>"
366
                            content += "<span class='renewals-disabled'>"
360
                                    + NOT_RENEWABLE_AUTO_RENEW
367
                                    + NOT_RENEWABLE_AUTO_RENEW
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+3 lines)
Lines 268-273 Using this account is not recommended because some parts of Koha will not functi Link Here
268
                                                        Not allowed <span class="renewals">(overdue)</span>
268
                                                        Not allowed <span class="renewals">(overdue)</span>
269
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
269
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
270
                                                        No longer renewable
270
                                                        No longer renewable
271
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
272
                                                        Automatic renewal failed, you have unpaid fines.
273
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
271
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
274
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
272
                                                        Automatic renewal
275
                                                        Automatic renewal
273
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
276
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 215-220 if ($issues){ Link Here
215
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
215
            $issue->{'auto_renew'}     = 1 if $renewerror eq 'auto_renew';
216
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
216
            $issue->{'auto_too_soon'}  = 1 if $renewerror eq 'auto_too_soon';
217
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
217
            $issue->{'auto_too_late'}  = 1 if $renewerror eq 'auto_too_late';
218
            $issue->{'auto_too_much_oweing'}  = 1 if $renewerror eq 'auto_too_much_oweing';
218
219
219
            if ( $renewerror eq 'too_soon' ) {
220
            if ( $renewerror eq 'too_soon' ) {
220
                $issue->{'too_soon'}         = 1;
221
                $issue->{'too_soon'}         = 1;
221
- 

Return to bug 15705