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:46:55 +0000 (01:46 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Apr 2011 01:46:55 +0000 (01:46 +0000)
commit5de92358bc4cf43f98fb5cd6f009a124bd484abe
tree02d321c8519259dbff074279d017f8266a5258b2
parent99560240a112fd984d7218fe0e195a9593c9d975
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_1@20333 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/support-scripts/authority_control_fields.pl