[open-ils-commits] r15757 - branches/rel_1_6/Open-ILS/src/support-scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 9 07:20:28 EST 2010


Author: dbs
Date: 2010-03-09 07:20:28 -0500 (Tue, 09 Mar 2010)
New Revision: 15757

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


Modified: branches/rel_1_6/Open-ILS/src/support-scripts/marc_export
===================================================================
--- branches/rel_1_6/Open-ILS/src/support-scripts/marc_export	2010-03-09 12:09:06 UTC (rev 15756)
+++ branches/rel_1_6/Open-ILS/src/support-scripts/marc_export	2010-03-09 12:20:28 UTC (rev 15757)
@@ -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