From cb2dc1d75952a77f6fc9026ce5ca411b738d579b Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 16 Feb 2005 22:25:17 +0000 Subject: [PATCH] Adding 'flagged' variable to help control display in the template --- circ/circulation.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 7d3f9c656a..58e4254330 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -329,6 +329,7 @@ sub patrontable { $flags->{$flag}->{'message'}=~s/\n/
/g; if ($flags->{$flag}->{'noissues'}) { $template->param( + flagged => 1, noissues => 'true', ); if ($flag eq 'GNA'){ @@ -356,6 +357,7 @@ sub patrontable { if ($flag eq 'CHARGES') { $template->param( charges => 'true', + flagged => 1, chargesmsg => $flags->{'CHARGES'}->{'message'} ); } @@ -368,6 +370,7 @@ sub patrontable { push @itemswaiting, $iteminformation; } $template->param( + flagged => 1, waiting => 'true', waitingmsg => $flags->{'WAITING'}->{'message'}, itemswaiting => \@itemswaiting, @@ -376,6 +379,7 @@ sub patrontable { if ($flag eq 'ODUES') { $template->param( odues => 'true', + flagged => 1, oduesmsg => $flags->{'ODUES'}->{'message'} ); @@ -394,6 +398,7 @@ sub patrontable { if ($flag eq 'NOTES') { $template->param( notes => 'true', + flagged => 1, notesmsg => $flags->{'NOTES'}->{'message'} ); } -- 2.39.5