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

(-)a/circ/renew.pl (-1 / +1 lines)
Lines 76-82 if ($barcode) { Link Here
76
                    }
76
                    }
77
                }
77
                }
78
78
79
                if ( $error && ($error eq 'too_soon') ) {
79
                if ( $error && ($error eq 'too_soon' or $error eq 'auto_too_soon') ) {
80
                    $soonest_renew_date = C4::Circulation::GetSoonestRenewDate(
80
                    $soonest_renew_date = C4::Circulation::GetSoonestRenewDate(
81
                        $borrower->borrowernumber(),
81
                        $borrower->borrowernumber(),
82
                        $item->itemnumber(),
82
                        $item->itemnumber(),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-1 / +24 lines)
Lines 66-71 Link Here
66
                                    </form>
66
                                    </form>
67
                                [% END %]
67
                                [% END %]
68
68
69
                            [% ELSIF error == "auto_too_soon" %]
70
71
                                <p>[% item.biblio.title | $EncodeUTF8 %] [% item.biblioitem.subtitle | $EncodeUTF8 %] ( [% item.barcode %] ) has been scheduled for automatic renewal and cannot be renewed before [% soonestrenewdate | $KohaDates %]. </p>
72
73
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
74
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
75
                                        <input type="hidden" name="barcode" value="[% item.barcode %]"/>
76
                                        <input type="hidden" name="override_limit" value="1" />
77
                                        <input type="submit" class="approve" value="Override and renew" />
78
                                    </form>
79
                                [% END %]
80
81
                            [% ELSIF error == "auto_renew" %]
82
83
                                <p>[% item.biblio.title | $EncodeUTF8 %] [% item.biblioitem.subtitle | $EncodeUTF8 %] ( [% item.barcode %] ) has been scheduled for automatic renewal. </p>
84
85
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
86
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
87
                                        <input type="hidden" name="barcode" value="[% item.barcode %]"/>
88
                                        <input type="hidden" name="override_limit" value="1" />
89
                                        <input type="submit" class="approve" value="Override limit and renew" />
90
                                    </form>
91
                                [% END %]
92
69
                            [% ELSIF error == "on_reserve" %]
93
                            [% ELSIF error == "on_reserve" %]
70
94
71
                                <p>This item is on hold for another patron.</p>
95
                                <p>This item is on hold for another patron.</p>
72
- 

Return to bug 11577