]> git.evergreen-ils.org Git - Evergreen.git/commit
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:56:46 +0000 (11:56 -0400)
commit0c88af95bf91553e8c20026b4f3279864dda1247
tree0f1fbefd1987a14fa70de9e026e410c864142dcb
parent4f518108c74d5d1b252f7528495ea8eb179c7bd2
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