(bug #4020) XSLT unimarc display
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 27 Jan 2010 16:51:08 +0000 (17:51 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 10 Feb 2010 13:01:28 +0000 (14:01 +0100)
commitd5f5d844c5ed97fb94adabb1c94b93b0ad5dae23
treeaaf31fe761d2b41d8e377b71b82553fe44c4b6b4
parent248747c747c153af44c6ec2dd39626ff99bb31dd
(bug #4020) XSLT unimarc display

When using XSLT Display, and UNIMARC,
since marcFlavour is not used in encoding data, when data is true utf8, as_xml
fails on some subfields.

Moreover, because transformMARCXMLForXSLT edits some values in the marc record
and the PERL UTF8 is not handled by MARC::File::USMARC, it endsup in double
encoding the data.
Sending a patch to fix both issues.

This patch adds
    - two functions in  C4/Charset.pm
        NormalizeString (uses Unicode::Normalize)
        SetUTF8Flag (This function in my opinion belongs to MARC::Record, or at least MARC::File::USMARC)
    - edits C4::XSLT in order to cope with the correct marcflavour
    - edits C4::Search searchResults to use setUTF8Flag

Conflicts solved:

C4/Charset.pm
C4/Search.pm
C4/XSLT.pm
C4/Charset.pm
C4/Search.pm
C4/XSLT.pm