Script to repair MARC21 leader/09.
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 3 Apr 2009 20:42:20 +0000 (15:42 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:10 +0000 (21:15 +0200)
commitf52c1226bb5d27ce65d15cafe9a6536e4093f79d
tree64540948a8d3dc1401d1031c4c6fb9885b962baa
parent1612fc324dd9f800e2415dd2c545c3abc91d0b03
Script to repair MARC21 leader/09.

Acquisitions process seems to be adding records with incorrect
representation of the MARC encoding in leader/09.  It should be
'a' meaning UTF-8, for all Koha's internalized records, but in
many cases it appears blank (for MARC-8).  This script diagnoses
and repairs the value in the leader, depending on runtime options.

The symptom of this problem is that high-value UNICODE characters
in the record will cause Koha to crash whenever it tries to parse
the MARCXML, giving a "Wide character" fatal.  While we work on
fixing the input, this script will fix the existing data.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
misc/maintenance/leader_fix.pl [new file with mode: 0755]