From 31554accf64af081375b5a0e9d88ea44da4c4f11 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Fri, 17 Feb 2012 08:56:26 -0500 Subject: [PATCH] Bug 7110 - Renewal messages still displays in OPAC if OpacRenewalAllowed is disabled. To test: Set a patron with fines over the stated limit in OPACFineNoRenewals. With OpacRenewalAllowed set to ALLOW - log into the OPAC and verify the message that renewals are disallowed is displayed - verify that renewals are disallowed in the interface. - remove or pay the fines, verify the message goes away and that OPAC renewals are re-allowed for your patron. With OPACFineNoRenewals set to Don't Allow - verify the message is not shown, even with the patron's fines over the threshold in OPACFineNoRenewals. - remove or pay the fines, verify that renewals are still disallowed --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index ffcd293..7fe10d9 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -100,8 +100,10 @@ $.tablesorter.addParser({ [% IF ( BORROWER_INF.lost ) %]
  • Please note: Your library card has been marked as lost or stolen. If this is an error, please contact the library.
  • [% END %] - [% IF renewal_blocked_fines %] + [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
  • Please note: Since you have more than [% renewal_blocked_fines %] in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.
  • + [% ELSIF ( renewal_blocked_fines ) %] +
  • Please note: You have more than [% renewal_blocked_fines %] in fines.
  • [% END %] [% END %] -- 1.7.2.5