Be more relaxed about what we receive in Vandelay (a bad LDR/09 need not lead to...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jul 2010 22:09:19 +0000 (22:09 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jul 2010 22:09:19 +0000 (22:09 +0000)
commit3ba1a82c22875dd4efc2320028773f32ab9228a3
treeabac12d4f43c1c63b21227dc51b4d71edc5a3942
parentbd12c8a94fc4b4e9aed4a3ca753cda5508f459f8
Be more relaxed about what we receive in Vandelay (a bad LDR/09 need not lead to complete misery)

If MARC::File::XML->as_xml_record() receives a record with anything other
than 'a' in LDR/09 position, it will try to run a MARC8-to-UTF8 conversion
on the record - even though the source file itself was XML and clearly
couldn't have been MARC8.

This code corrects the leader on the fly so that MARC::File::XML won't
try to convert it and throw a "wide character" warning, but the fix
means that something was wrong with the leader to begin with, so we also
write a warning to the log about the situation.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16925 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm