From 82312383117ec5df678262391ba7a17e94b75336 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. Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain --- 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 33e3b4849b..26b5efc917 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 4dbc4328bc..50a167e907 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -109,7 +109,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} ), ); } -- 2.39.5