From f2ef101936745d2a5c5523f0b55092da7750b9d8 Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 28 Sep 2004 15:25:29 +0000 Subject: [PATCH] Bugfix for the the problem of duplicate items : the record contains biblio & items. 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. --- misc/bulkmarcimport.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/bulkmarcimport.pl b/misc/bulkmarcimport.pl index 0cc71a29ff..c1410cea53 100755 --- a/misc/bulkmarcimport.pl +++ b/misc/bulkmarcimport.pl @@ -124,7 +124,7 @@ while ( my $record = $batch->next() ) { 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; -- 2.11.0