From dc51287a19de85cbcb2993729e4e0514f143ad5e Mon Sep 17 00:00:00 2001 From: tonnesen Date: Fri, 28 Jun 2002 15:56:57 +0000 Subject: [PATCH] Logic error. Was using homebranch count as the count of circulating copies. --- search.pl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/search.pl b/search.pl index 7f57150077..77a02924bb 100755 --- a/search.pl +++ b/search.pl @@ -5,8 +5,7 @@ use strict; use C4::Search; use CGI; use C4::Output; -use C4::Acquisitions; # Only used for branches() routine which should probably - # be elsewhere +use C4::Acquisitions; my $env; my $input = new CGI; @@ -216,15 +215,11 @@ while ($i < $count2){ $stuff[5].=" "; } } else { - my $circcount; - foreach my $branchcode (sort keys %$branchcount) { - $circcount=$branchcount->{$branchcode}; - } - my $shelfcount=$count-$circcount-$lostcount-$mending-$transit; - if ($circcount) { + my $shelfcount=$count-$nacount-$lostcount-$mending-$transit; + if ($nacount) { $stuff[5]="Circ "; if ($count>1) { - $stuff[5].="($circcount) "; + $stuff[5].="($nacount) "; } } if ($shelfcount) { -- 2.39.5