]> git.evergreen-ils.org Git - working/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:44:20 +0000 (01:44 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Apr 2011 01:44:20 +0000 (01:44 +0000)
commite468c459c705b30964675c15dfa7dd6f7ba4cbdc
tree595288795252d713872caf13cc76ffeeff839290
parentd5ac9f7d661631e5d9efea2975800175bfc3acf1
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/trunk@20332 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/support-scripts/authority_control_fields.pl