[% USE Koha %] [% USE KohaDates %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Renew [% title | html %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %]
[% IF Koha.Preference('CircSidebar') %]
[% ELSE %]
[% END %] [% IF error %]

Cannot renew:

[% IF error == "no_item" %]

No item matches this barcode

[% ELSIF error == "no_checkout" %]

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) is not checked out to a patron.

[% ELSIF error == "too_many" %]

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) has been renewed the maximum number of times by [% borrower.firstname | html %] [% borrower.surname | html %] ( [% borrower.cardnumber | html %] )

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

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) cannot be renewed before [% soonestrenewdate | $KohaDates %].

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

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

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

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal and cannot be renewed anymore since [% latestautorenewdate | $KohaDates %].

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

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal and cannot be renewed because the patron's account is expired

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

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

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

This item is on hold for another patron.

[% ELSIF error == "patron_restricted" %]

[% borrower.firstname | html %] [% borrower.surname | html %] ( [% borrower.cardnumber | html %] ) is currently restricted.

[% ELSIF error == "item_denied_renewal" %]

Item is not allowed renewal.

[% ELSIF error == "onsite_checkout" %]

Item cannot be renewed because it's an onsite checkout

[% ELSE %] [% error | html %] [% END %]
[% END %] [% IF date_due %]

Item renewed:

[% item.biblio.title | html %] [% item.biblioitem.subtitle | html %] ( [% item.barcode | html %] ) renewed for [% borrower.firstname | html %] [% borrower.surname | html %] ( [% borrower.cardnumber | html %] ) now due on [% date_due | $KohaDates %]

[% END %] [% UNLESS error %]
Renew
[% END %] [% IF Koha.Preference('CircSidebar') %]
[% END %]
[% MACRO jsinclude BLOCK %] [% IF error %] [% END %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]