]> 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:18:36 +0000 (18:18 +0000)
commit098db2e559fb4d61215b527b7cceb50b68b1fa8e
treef7cde76b78ab2b1285243f225a4ab655b6260432
parentaae09f30e0e410dc7c5d00cdd9acd0fd4c4f8eed
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