From 3c5ba020133b7333fb9770b042944ec81471f17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 7 Jun 2012 09:58:29 +0200 Subject: [PATCH] Bug 7818 Fix rebuild_zebra.pl --nosanitize --- misc/migration_tools/rebuild_zebra.pl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index b7269fa..6a2d0f0 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -345,6 +345,7 @@ sub export_marc_records_from_sth { my $marcxml = $record_type eq 'biblio' ? GetXmlBiblio( $record_number ) : GetAuthorityXML( $record_number ); + $marcxml =~ s/<\?xml version="1\.0" encoding="UTF-8"\?>//; if ($record_type eq 'biblio'){ my @items = GetItemsInfo($record_number); if (@items){ -- 1.7.8