From b07af88672edee030945fdd75e0961dbbf192aa6 Mon Sep 17 00:00:00 2001
From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 3 Mar 2010 21:08:08 +0000
Subject: [PATCH] Patch from Galen Charlton <gmc@esilibrary.com> to prevent one
 bad MARC record from spoiling the rest of the export

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15686 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/src/support-scripts/marc_export | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Open-ILS/src/support-scripts/marc_export b/Open-ILS/src/support-scripts/marc_export
index ff2b3c9f42..0f9c722984 100755
--- a/Open-ILS/src/support-scripts/marc_export
+++ b/Open-ILS/src/support-scripts/marc_export
@@ -214,6 +214,7 @@ while ( my $i = <> ) {
 	} otherwise {
 		my $e = shift;
 		warn "\n$e\n";
+        import MARC::File::XML; # reset SAX parser so that one bad record doesn't kill the entire export
 	};
 
 	stats() if (! ($count{bib} % 50 ));
-- 
2.11.0