From ef1ac56857891f7363446aa6163f627e96f51c26 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Mon, 12 Nov 2007 12:13:20 -0600 Subject: [PATCH] handling wrong MARC record better Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- misc/migration_tools/rebuild_zebra.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 1cb9618b15..69e707e262 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -591,7 +591,7 @@ rank:rank-1 # FIXME next unless $record->field($biblionumbertagfield); # check if biblionumber is present, otherwise, add it on the fly if ($biblionumbertagfield eq '001') { - unless ($record->field($biblionumbertagfield)->data()) { + unless ($record->field($biblionumbertagfield) && $record->field($biblionumbertagfield)->data()) { $record_correct=0; my $field; # if the field where biblionumber is already exist, just update it, otherwise create it -- 2.39.5