[Koha-devel] State of the debian packaging

Frederic Demians frederic at tamil.fr
Mon Dec 8 08:28:17 CET 2008


> I prepared two commits for koha to force the use of the LibXML parser. 
> Can you test them and apply them if they are ok ? (I only greped for 
> any occurrences of XML::Simple and MARC::File::XML and add the correct 
> line). Both commits are available at the top of my wip-for-upstream 
> branch: 
> http://git.debian.org/?p=collab-maint/koha.git;a=shortlog;h=refs/heads/wip-for-upstream
> They are:
> - "Force MARC::File::XML to use the XML::LibXML::SAX parser"

You have:

    $XML::SAX::ParserPackage = "XML::LibXML::SAX";
    use MARC::File::XML;

It doesn't work. I've tested it on a Debian box where I can see 
immediately if extended characters are properly displayed or not which 
is not the case with your patch. This modification works:

    $XML::SAX::ParserPackage = "XML::LibXML::SAX";
    require MARC::File::XML;


> and
> - "Force XML::Simple to use to XML::LibXML::SAX parser"

I can't say if it works and even if it's necessary. We know for sure 
that MARC::File::XML requires LibXML,  but I haven't seen yet that it's 
also the case for XML::Simple.

Another solution for MARC::File::XML would be to embed this package with 
Koha by copying 'MARC' directory and it's subdirectory into Koha 
installation root directory at the same level than 'C4' and then 
modifying XML.pm file to force LibXML use.

Thank you very much Vincent for the good job!
--
Frédéric



More information about the Koha-devel mailing list