[open-ils-commits] r15686 - trunk/Open-ILS/src/support-scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 3 16:08:13 EST 2010


Author: dbs
Date: 2010-03-03 16:08:08 -0500 (Wed, 03 Mar 2010)
New Revision: 15686

Modified:
   trunk/Open-ILS/src/support-scripts/marc_export
Log:
Patch from Galen Charlton <gmc at esilibrary.com> to prevent one bad MARC record from spoiling the rest of the export


Modified: trunk/Open-ILS/src/support-scripts/marc_export
===================================================================
--- trunk/Open-ILS/src/support-scripts/marc_export	2010-03-03 20:25:44 UTC (rev 15685)
+++ trunk/Open-ILS/src/support-scripts/marc_export	2010-03-03 21:08:08 UTC (rev 15686)
@@ -214,6 +214,7 @@
 	} 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 ));



More information about the open-ils-commits mailing list