Protect URI reingest from failure due to malformed XML
authorDan Scott <dan@coffeecode.net>
Mon, 20 Jun 2011 14:56:44 +0000 (10:56 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 20 Jun 2011 15:57:50 +0000 (11:57 -0400)
commitd509b29483112be2d8326535ec4272b3e5df2199
tree7db56b1f0e98065a27e77c7132084e5830dd192d
parent75068290eed6580ac9e9f758aa5bc751c88953d4
Protect URI reingest from failure due to malformed XML

In an ideal world, there would be no malformed XML. But our world is the
real world of libraries, and while the well_formed_xml() protects
against malformed XML in Evergreen 2.0 systems, in some cases bad XML
has been able to find its way into Evergreen systems in the past.

A single biblio.record_entry row containing malformed XML in the marc
column will prevent the call to reingest URIs from succeeding. By
limiting the set of records to those with well-formed XML, we can
increase the chance of the URI reingest succeeding at the cost of more
processing time.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/upgrade/0559.schema.biblio.extract_located_uris.sql