From: dbs Date: Tue, 9 Mar 2010 12:21:15 +0000 (+0000) Subject: Backport r15686: Patch from Galen Charlton to prevent one bad... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4482c75beb7698f7fc9c3c55b0cd7d9e4d0c6d19;p=Evergreen.git Backport r15686: Patch from Galen Charlton to prevent one bad MARC record from spoiling the rest of the export git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15758 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..6978b65d4c 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 ));