$count{bib}++;
return unless $bib;
+ # Return if the bib is deleted
+ return if $bib->deleted;
if ($format eq 'ARE' or $format eq 'BRE') {
print $outfh OpenSRF::Utils::JSON->perl2JSON($bib);
my %cn_map;
push @{$cn_map{$_->call_number}}, $_ for (@$cp_list);
- for my $cn ( @$cn_list ) {
+ CALLNUMMAP: for my $cn ( @$cn_list ) {
my $cn_map_list = $cn_map{$cn->id};
+
+ # Ignore deleted copies
+ next CALLNUMMAP if $cn->deleted;
COPYMAP: for my $cp ( @$cn_map_list ) {
$count{cp}++;