The biblio & the items are separated.
The bug was that the item was still in the biblio (thus being added twice : as "biblio" and as "item")
thanks to dana for pointing the bug.
my $item = MARC::Record->new();
$item->append_fields($field);
push @items,$item;
- $record->delete_field($field);
+ $newRecord->delete_field($field);
$nbitems++;
}
print "$i : $nbitems items found\n" if $verbose;