]> git.evergreen-ils.org Git - Evergreen.git/commit
Prevent a MARC::File::XML error from killing authority_control_fields.pl batch
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Apr 2011 01:47:22 +0000 (01:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Apr 2011 01:47:22 +0000 (01:47 +0000)
commit27988d680d9914ef4f2f5a68c0b79f92b9eca271
tree02cb2e4307842e3e015c357b74f44b1324050d42
parentc4e4868c0312129197000458e97801a6a2ae976e
Prevent a MARC::File::XML error from killing authority_control_fields.pl batch

Continuing to make this script bullet-proof, MARC::File::XML cares deeply
about things like whether datafields have indicators and throws exceptions
that, if not caught, kill a processing script - like this one.

Borrowing the approach from marc_export, wrap the new_from_xml() call in
a try / otherwise block and roll on.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@20334 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/support-scripts/authority_control_fields.pl