[Bug 6891] LDIF interoperability - a proposal

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug 6891] LDIF interoperability - a proposal


--- Comment #9 from Xan Charbonnet <[hidden email]> 2011-09-27 04:03:46 UTC ---
Once again you've correctly pointed out when I'm doing something not the XML
way.  Obviously I need the help!  It does make sense to be a little more
verbose in the XML, and let bzip do the work of making it smaller.

MARC::File::XML's as_xml_record() output looks like this by default:
<?xml version="1.0" encoding="UTF-8"?>
    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/
  <leader>01172cam a2200301   4500</leader>
...etc etc...

which I change by stripping the XML declaration, by removing the attributes on
the <record> tag, and by adding the "marc:" prefix to all the elements, thus:
  <marc:leader>01172cam a2200301   4500</marc:leader>
...etc etc...

So it's not an issue of the output of that module being invalid against the
official MARC XML Schema; it just needs a little massaging to fit into our
document.  So I don't think it needs to be an upstream issue.

Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
Koha-bugs mailing list
[hidden email]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/