From ce3adab2ee2372dc4f24ca09deb5f70aa8d6f402 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 23 Nov 2009 21:40:13 +0100 Subject: [PATCH] bulkmarcimport.pl Bug Fix matching biblios enhanced matching biblios is now also getting biblioitemnumber so that Items management can be performed --- misc/migration_tools/bulkmarcimport.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index e4f7dba707..2e583c87ec 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -354,7 +354,11 @@ RECORD: while ( ) { } } # create biblio, unless we already have it ( either match or isbn ) - unless ($biblionumber) { + if ($biblionumber) { + eval{$biblioitemnumber=GetBiblioData($biblionumber)->{biblioitemnumber};} + } + else + { eval { ( $biblionumber, $biblioitemnumber ) = AddBiblio($record, '', { defer_marc_save => 1 }) }; } if ( $@ ) { -- 2.39.5