Script to repair MARC21 leader/09.
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 3 Apr 2009 20:42:20 +0000 (15:42 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Sat, 18 Apr 2009 14:12:14 +0000 (09:12 -0500)
commit15ec6f0997e7cc477455d9f1dd047e5ac3bd7a96
treed41193f692838eabce9b0c9e9293f0ce51021de0
parentb378837d6ee88bc278c8bdbd99020b2f34007711
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>
misc/maintenance/leader_fix.pl [new file with mode: 0755]