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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc (+1 lines)
Lines 19-24 Link Here
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_TOO_MUCH_OWEING = _("Automatic renewal failed, patron has unpaid fines");
22
    var NOT_RENEWABLE_AUTO_ACCOUNT_EXPIRED = _("Automatic renewal failed, account expired");
22
    var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal");
23
    var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal");
23
    var RENEWALS_REMAINING = _("%s of %s renewals remaining");
24
    var RENEWALS_REMAINING = _("%s of %s renewals remaining");
24
    var HOLD_IS_SUSPENDED = _("Hold is <strong>suspended</strong>");
25
    var HOLD_IS_SUSPENDED = _("Hold is <strong>suspended</strong>");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-1 / +13 lines)
Lines 90-96 Link Here
90
                                    </form>
90
                                    </form>
91
                                [% END %]
91
                                [% END %]
92
92
93
                            [% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" %]
93
                            [% ELSIF error == "auto_account_expired" %]
94
95
                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been scheduled for automatic renewal and cannot be renewed because the patron's account is expired</p>
96
97
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
98
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
99
                                        <input type="hidden" name="barcode" value="[% item.barcode %]"/>
100
                                        <input type="hidden" name="override_limit" value="1" />
101
                                        <input type="submit" class="approve" value="Override and renew" />
102
                                    </form>
103
                                [% END %]
104
105
                            [% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" or error == "auto_account_expired" %]
94
106
95
                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been scheduled for automatic renewal. </p>
107
                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been scheduled for automatic renewal. </p>
96
108
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (+7 lines)
Lines 383-388 $(document).ready(function() { Link Here
383
383
384
                            span_style = "display: none";
384
                            span_style = "display: none";
385
                            span_class = "renewals-allowed";
385
                            span_class = "renewals-allowed";
386
                        } else if ( oObj.can_renew_error == "auto_account_expired" ) {
387
                            content += "<span class='renewals-disabled'>"
388
                                    + NOT_RENEWABLE_AUTO_ACCOUNT_EXPIRED
389
                                    + "</span>";
390
391
                            span_style = "display: none";
392
                            span_class = "renewals-allowed";
386
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
393
                        } else if ( oObj.can_renew_error == "auto_renew" ) {
387
                            content += "<span class='renewals-disabled'>"
394
                            content += "<span class='renewals-disabled'>"
388
                                    + NOT_RENEWABLE_AUTO_RENEW
395
                                    + NOT_RENEWABLE_AUTO_RENEW
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-1 / +3 lines)
Lines 297-302 Using this account is not recommended because some parts of Koha will not functi Link Here
297
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
297
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
298
                                                        Automatic renewal failed, you have unpaid fines.
298
                                                        Automatic renewal failed, you have unpaid fines.
299
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
299
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
300
                                                    [% ELSIF ISSUE.auto_account_expired %]
301
                                                        Automatic renewal failed, your account is expired.
302
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
300
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
303
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
301
                                                        Automatic renewal
304
                                                        Automatic renewal
302
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
305
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
303
- 

Return to bug 19444