]> git.evergreen-ils.org Git - Evergreen.git/commit
LP 1502156: Fix marc_export error when dumping authorities.
authorJason Stephenson <jstephenson@mvlc.org>
Fri, 2 Oct 2015 14:17:09 +0000 (10:17 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 Oct 2015 18:19:30 +0000 (18:19 +0000)
commit4407cfeee74c8bf906d42e4e923ecc6c13da5acc
tree06b7eef06e1df5b857dc85fa5d1d27fc0543ba87
parent6d9f3081494379abb39fbb8ebbba85e4b50f3fee
LP 1502156: Fix marc_export error when dumping authorities.

There is a chance that marc_export will attempt to call a nonexistent
field on MARC::Record if an error occurs while exporting authority
records.  The bug could only be triggered if a conversion error
occurred while exporting the authority as either MARCXML or USMARC.

The fix is to rename a couple of variables in the Marque::Authority->next
method to be more like those used in Marque::Biblio->next.  This will have
the side effect of making marc_export easier to maintain, since the
variables used in one method will now have the same meaning as those
in the other.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/support-scripts/marc_export.in