Bugzilla – Attachment 11555 Details for
Bug 8408
Odd OPAC message when OPAC Renewals are disabled and OPACFineNoRenewals is set to blank
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8408 - Followup - Fix broken messages.
Bug-8408---Followup---Fix-broken-messages.patch (text/plain), 2.91 KB, created by
Jared Camins-Esakov
on 2012-08-11 18:08:36 UTC
(
hide
)
Description:
Bug 8408 - Followup - Fix broken messages.
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-08-11 18:08:36 UTC
Size:
2.91 KB
patch
obsolete
>From 4463c52fc1a7bab240715a1de55eaafe444675ab Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 3 Aug 2012 07:53:33 -0400 >Subject: [PATCH] Bug 8408 - Followup - Fix broken messages. >Content-Type: text/plain; charset="UTF-8" > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 4 ++-- > opac/opac-user.pl | 3 ++- > 2 files changed, 4 insertions(+), 3 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 26b5efc..2ec1e6e 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt >@@ -101,9 +101,9 @@ $.tablesorter.addParser({ > <span id="lost"><li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please contact the library.</li></span> > [% END %] > [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %] >- <span id="renewal_blocked_fines"><li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">more than <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines %]</span></a> in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li></span> >+ <span id="renewal_blocked_fines"><li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">[% IF renewal_blocked_fines != "0.00" %] more than <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines %]</span> in [% END %] fines</a>, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li></span> > [% ELSIF ( renewal_blocked_fines ) %] >- <span id="renewal_blocked_fines"><li><strong>Please note: </strong> You currently owe <a href="/cgi-bin/koha/opac-account.pl"><span id="renewal_blocked_fines_amount">[% renewal_blocked_fines %] in fines.</span></a></li></span> >+ <span id="renewal_blocked_fines"><li><strong>Please note: </strong> You currently owe <a href="/cgi-bin/koha/opac-account.pl"><span id="renewal_blocked_fines_amount">[% renewal_blocked_fines_amountoutstanding %] in fines.</span></a></li></span> > [% END %] > </ul></div> > [% END %] >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index 50a167e..eee3d38 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -109,7 +109,8 @@ if ( $borr->{amountoutstanding} > $no_renewal_amt ) { > $borr->{'flagged'} = 1; > $canrenew = 0; > $template->param( >- renewal_blocked_fines => sprintf( '%.02f', $borr->{amountoutstanding} ), >+ renewal_blocked_fines => sprintf( '%.02f', $no_renewal_amt ), >+ renewal_blocked_fines_amountoutstanding => sprintf( '%.02f', $borr->{amountoutstanding} ), > ); > } > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8408
:
10750
|
11200
|
11323
|
11324
| 11555 |
11556