LP 1502156: Fix marc_export error when dumping authorities. user/dyrcona/lp1502156_fix_marc_export_calls_nonexistent_method
authorJason Stephenson <jstephenson@mvlc.org>
Fri, 2 Oct 2015 14:17:09 +0000 (10:17 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Fri, 2 Oct 2015 14:35:31 +0000 (10:35 -0400)
commit59390013991ecd9bfcf0cdb7bd6c4e1e37800836
tree9bfa085daf0bef772da0ffabfdd6f7e75340dee0
parentc11b12cbcc9ad694d7c95ced44d7c1babfe6c023
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>
Open-ILS/src/support-scripts/marc_export.in