From 83021c9219a1d0cd2e505317ca5265fa2e67d9da Mon Sep 17 00:00:00 2001 From: btoumi Date: Wed, 24 May 2006 13:14:04 +0000 Subject: [PATCH] bug fixing : modify variable name and delete condition useless now --- reports/catalogue_stats.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index a40d5c893e..c9de058a1c 100755 --- a/reports/catalogue_stats.pl +++ b/reports/catalogue_stats.pl @@ -267,7 +267,7 @@ if ($do_it) { # CGIToPublicationYear => $CGIpublicationyear, # CGIPublisher => $CGIpublisher, CGIBranch => $CGIbranch, - CGILocation => $CGIholdingbranch, + CGILocation => $CGIlocation, CGIextChoice => $CGIextChoice, CGIsepChoice => $CGIsepChoice ); @@ -506,11 +506,7 @@ sub calculate { } if (@$filters[11]){ @$filters[11]=~ s/\*/%/g; - if ($cond){ - $strcalc .= " AND items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] ); - } else { - $strcalc .= " WHERE items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] ); - } + $strcalc .= " AND items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] ); } $strcalc .= " group by $linefield, $colfield order by $linefield,$colfield"; -- 2.39.2