]> git.koha-community.org Git - koha.git/commit
bug 2317: avoid crash when auto-creating authority
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 6 Aug 2008 02:16:09 +0000 (21:16 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 6 Aug 2008 12:08:36 +0000 (07:08 -0500)
commit3d2f7253eaebaa109bf6c993c1e8fd2d5c123d38
tree8b1ba6655c6d1798939c9ec0c77cab3efa98f3aa
parent6e1869abcfdefcba1232ed20e1819a2b48f5a32b
bug 2317: avoid crash when auto-creating authority

If BiblioAddsAuthorities is ON, saving a MARC bib record
in the cataloging editor can create new authority records.
When using MARC21, if one of those authority records
has diacritics in its heading, the save crashes with the
following error:

Wide character in null operation at
/usr/local/share/perl/5.8.8/MARC/Charset/Table.pm line 96

To prevent this, new MARC21 authorities created by
BiblioAddsAuthorities have the Leader/09 set to 'a'.  Note
that this is not currently required for UNIMARC authorities,
as MARC::File::XML->as_xml_record() does not attempt
to transcode UNIMARC records from MARC-8 to UTF-8.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
cataloguing/addbiblio.pl