Sorry, you cannot place holds because your library card has expired.
Please contact your librarian if you wish to renew your card.
+ [% END %]
+
[% ELSE %]
[% IF ( none_available ) %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -57,7 +57,25 @@
[% IF ( BORROWER_INF.warnexpired ) %]
- Please note: Your card has expired. Please contact the library for more information.
+ Please note: Your account has expired as of [% BORROWER_INF.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.
+
+ [% END %]
+
+ [% IF ( RENEW_ERROR ) %]
+
+ Please note:
+
+ Your account renewal failed because of the following:
+ [% FOREACH error IN RENEW_ERROR.split('\|') %]
+ [% IF error == 'card_expired' %]
+ Your account has expired. Please contact the library for more information.
+ [% ELSIF error == 'too_many' %]
+ You have renewed this item the maximum number of times allowed.
+ [% ELSIF error == 'on_reserve' %]
+ This item is on hold for another patron.
+ [% END %]
+ [% END %]
+
[% END %]
@@ -112,7 +130,7 @@
Barcode
[% END %]
Call No.
- [% IF ( OpacRenewalAllowed ) %]
+ [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
Renew
[% END %]
[% IF ( OPACFinesTab ) %]
@@ -198,7 +216,7 @@
Call number:
[% ISSUE.itemcallnumber %]
- [% IF ( OpacRenewalAllowed ) %]
+ [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]