[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

bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6891

--- 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"?>
<record
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/
standards/marcxml/schema/MARC21slim.xsd"
    xmlns="http://www.loc.gov/MARC21/slim">
  <leader>01172cam a2200301   4500</leader>
...etc etc...
</record>

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:record>
  <marc:leader>01172cam a2200301   4500</marc:leader>
...etc etc...
</marc:record>

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]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/