From 12b216c77d9259afb9544ce828f2fda778897c7a Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 14 Oct 2008 14:36:42 -0600 Subject: [PATCH] Add fine amount to display on circ pages. Signed-off-by: Galen Charlton --- circ/circulation.pl | 4 +++- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 6fc2462f30..65085adb22 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -569,6 +569,7 @@ foreach $flag ( sort keys %$flags ) { $template->param( charges => 'true', chargesmsg => $flags->{'CHARGES'}->{'message'}, + chargesamount => $flags->{'CHARGES'}->{'amount'}, charges_is_blocker => 1 ); } @@ -584,7 +585,8 @@ foreach $flag ( sort keys %$flags ) { $template->param( charges => 'true', flagged => 1, - chargesmsg => $flags->{'CHARGES'}->{'message'} + chargesmsg => $flags->{'CHARGES'}->{'message'}, + chargesamount => $flags->{'CHARGES'}->{'amount'}, ); } if ( $flag eq 'CREDITS' ) { diff --git a/circ/returns.pl b/circ/returns.pl index e8976454ef..66cfd9d4bc 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -456,6 +456,7 @@ if ($borrower) { if ( $flag eq 'CHARGES' ) { $flaginfo{msg} = $flag; $flaginfo{charges} = 1; + $flaginfo{chargeamount} = $flags->{$flag}->{amount}; $flaginfo{borrowernumber} = $borrower->{borrowernumber}; } elsif ( $flag eq 'WAITING' ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 10526e282c..174032c1e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -349,7 +349,7 @@ No patron matched
  • - Fines: Patron has ">Outstanding fines. + Fines: Patron has ">Outstanding fines of $. Checkouts are blocked because fine balance is over the limit. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl index 1c9d79a6bc..b7a00014f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl @@ -327,7 +327,9 @@ function Dopop(link) { ">, () ( - , + + of + , ) -- 2.39.5