From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 3 Mar 2010 21:08:08 +0000 (+0000)
Subject: Patch from Galen Charlton <gmc@esilibrary.com> to prevent one bad MARC record from... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b07af88672edee030945fdd75e0961dbbf192aa6;p=evergreen%2Ftadl.git

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
---

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 ));