From b5e723acab33230ce79d7558d001ec7959ee1625 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 10 Jul 2012 10:57:46 -0400 Subject: [PATCH] Bug 8408 - Odd OPAC message when OPAC Renewals are disabled and OPACFineNoRenewals is set to blank If OpacRenewalAllowed is set to "Don't allow" and OPACFineNoRenewals is set to blank ( i.e. disabled ). A user who owes any fines, when logged in to the OPAC will receive the following message: Please note: You have more than 0.00 in fines. This is a rather odd message, and is not very sensible. The message should either be modified or removed altogether. This patch modifies the message to the following: Please note: You currently owe $fines in fines where $fines in the formatted amount the borrower currently owes in fines. --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 2 +- opac/opac-user.pl | 2 +- 2 files changed, 2 insertions(+), 2 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 99ceccb..c51085b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -103,7 +103,7 @@ $.tablesorter.addParser({ [% 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.
  • +
  • Please note: You currently owe [% renewal_blocked_fines %] in fines.
  • [% END %] [% END %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 50cb5af..da5cae6 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -106,7 +106,7 @@ if ( $borr->{amountoutstanding} > $no_renewal_amt ) { $borr->{'flagged'} = 1; $canrenew = 0; $template->param( - renewal_blocked_fines => sprintf( '%.02f', $no_renewal_amt ), + renewal_blocked_fines => sprintf( '%.02f', $borr->{amountoutstanding} ), ); } -- 1.7.2.5