From c3e0cf6b428541e1717e098aae5f5b8072409e33 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Fri, 12 Oct 2007 03:05:33 -0500 Subject: [PATCH] #1255 : flagged patron can't renew Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/opac-user.tmpl | 4 +++- opac/opac-user.pl | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/opac-user.tmpl index 1c7f1e5bbe..ac6549f3c7 100644 --- a/koha-tmpl/opac-tmpl/prog/en/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/opac-user.tmpl @@ -108,7 +108,7 @@ Title Call No. Due - Renew + Renew Fines @@ -136,6 +136,7 @@ + &borrowernumber=">Renew @@ -143,6 +144,7 @@ Not renewable + YesNo diff --git a/opac/opac-user.pl b/opac/opac-user.pl index a6f385fde2..78bdd71aa7 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -55,7 +55,8 @@ $borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} ); if ( $borr->{'debarred'} || $borr->{'gonenoaddress'} || $borr->{'lost'} ) { $borr->{'flagged'} = 1; } - +# $make flagged available everywhere in the template +my $patron_flagged = $borr->{'flagged'}; if ( $borr->{'amountoutstanding'} > 5 ) { $borr->{'amountoverfive'} = 1; } @@ -72,8 +73,10 @@ $borr->{'amountoutstanding'} = sprintf "%.02f", $borr->{'amountoutstanding'}; my @bordat; $bordat[0] = $borr; -$template->param( BORROWER_INFO => \@bordat ); -$template->param( borrowernumber => $borrowernumber ); +$template->param( BORROWER_INFO => \@bordat, + borrowernumber => $borrowernumber, + patron_flagged => $patron_flagged, + ); #get issued items .... my ($countissues,$issues) = GetPendingIssues($borrowernumber); -- 2.39.5