@@ -, +, @@ page - one with automatic renewal and no value for "No renewal before" - another with automatic renewal and a value for "No renewal before" Home > Circulation > Renew scheduled for automatic renewal and that one of the renewals is also premature. should be given the option to override. --- circ/renew.pl | 2 +- .../intranet-tmpl/prog/en/modules/circ/renew.tt | 24 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) --- a/circ/renew.pl +++ a/circ/renew.pl @@ -76,7 +76,7 @@ if ($barcode) { } } - if ( $error && ($error eq 'too_soon') ) { + if ( $error && ($error eq 'too_soon' or $error eq 'auto_too_soon') ) { $soonest_renew_date = C4::Circulation::GetSoonestRenewDate( $borrower->borrowernumber(), $item->itemnumber(), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt @@ -66,6 +66,30 @@ [% END %] + [% ELSIF error == "auto_too_soon" %] + +

[% item.biblio.title | $EncodeUTF8 %] [% item.biblioitem.subtitle | $EncodeUTF8 %] ( [% item.barcode %] ) has been scheduled for automatic renewal and cannot be renewed before [% soonestrenewdate | $KohaDates %].

+ + [% IF Koha.Preference('AllowRenewalLimitOverride') %] +
+ + + +
+ [% END %] + + [% ELSIF error == "auto_renew" %] + +

[% item.biblio.title | $EncodeUTF8 %] [% item.biblioitem.subtitle | $EncodeUTF8 %] ( [% item.barcode %] ) has been scheduled for automatic renewal.

+ + [% IF Koha.Preference('AllowRenewalLimitOverride') %] +
+ + + +
+ [% END %] + [% ELSIF error == "on_reserve" %]

This item is on hold for another patron.

--