]> 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:50 +0000 (18:18 +0000)
commita97830d71ee66f26e958d10fddf035ff66978986
tree6244e439fb3d339bd7663686d348e57bd19b78da
parente38f089bb54397c6465b9c12bf2c4c0d3ac12a39
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