bug 2235: fix various data-corrupting bugs in MARC editor
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 10 Jun 2008 16:05:48 +0000 (11:05 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 10 Jun 2008 17:59:44 +0000 (12:59 -0500)
commite71cff9a9283122957be214fe816154d0675461f
treeb891b2bef5419339ea6acd3136459911ebae4ec2
parent6716f31333646fbcefa3c18cf79eda8b887af878
bug 2235: fix various data-corrupting bugs in MARC editor

1. Non-ASCII characters in the 942$h (biblioitems.cn_class)
   would cause an edit to fail and lead to a corrupt MARC record in
   biblioitems.marc and biblioitems.marcxml.  Fixed by
   turning on Perl's UTF-8 flag for MARC tag parameters
   processed by C4::Biblio::TransformHtmlToMarc

2. Do not add empty 006 and 007 fields if the corresponding
   input fields are blank.

3. Make it possible to save '0' as a valid subfield
   value.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm