Patch from Galen Charlton <gmc@esilibrary.com> to prevent one bad MARC record from...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Mar 2010 21:08:08 +0000 (21:08 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Mar 2010 21:08:08 +0000 (21:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15686 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/support-scripts/marc_export

index ff2b3c9..0f9c722 100755 (executable)
@@ -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 ));