Logic error. Was using homebranch count as the count of circulating copies.

This commit is contained in:
tonnesen 2002-06-28 15:56:57 +00:00
parent f082f09c61
commit dc51287a19
1 changed files with 4 additions and 9 deletions

View File

@ -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) {