From 89b9e8f8c107508829cdd182ed7752c7ba4d4a87 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 31 Oct 2007 13:37:55 -0500 Subject: [PATCH] skip empty records (new GetMarcRecord behaviour that returns empty string and not empty MARC::Record) Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- misc/migration_tools/rebuild_zebra.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 4bd6738675..24f8d0769a 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -574,8 +574,9 @@ rank:rank-1 }; if($@){ print " There was some pb getting biblio : #".$biblionumber."\n"; - next; + next; } + next unless $record; # warn $record->as_formatted; # die if $record->subfield('090','9') eq 11; # print $record; -- 2.39.5