From 24af64001504a79fdbae33dc4e5ef0f6829cc11d Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 6 Nov 2007 14:28:32 -0600 Subject: [PATCH] Rest of the fix for 1402 Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- circ/circulation.pl | 5 ++++- .../intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 07aa649744..88e86e0e39 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -89,6 +89,9 @@ my $branches = GetBranches(); my $printers = GetPrinters(); +my @failedrenews = $query->param('failedrenew'); +my @renew_failed; +for (@failedrenews) { $renew_failed[$_] = 1; } my $findborrower = $query->param('findborrower'); $findborrower =~ s|,| |g; @@ -414,7 +417,7 @@ if ($borrower) { $datedue =~ s/-//g; $it->{'od'} = ($datedue < $todaysdate) ? 1 : 0 ; ($it->{'author'} eq '') and $it->{'author'} = ' '; - + $it->{'renew_failed'} = $renew_failed[$it->{'itemnumber'}]; # ADDED BY JF: NEW ITEMTYPE COUNT DISPLAY $issued_itemtypes_count->{ $it->{'itemtype'} }++; 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 8b2859a3e4..537442d0d0 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -652,6 +652,9 @@ No patron matched " checked="checked" style="display: none;" /> ">Check In + + Renewal Failed + @@ -689,6 +692,10 @@ No patron matched " checked="checked" style="display: none;" /> ">Check In + + Renewal Failed + + -- 2.39.5