[Bug 6876] New: oai-pmh ListMetadataFormats marcxml definition
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 Bug #: 6876 Summary: oai-pmh ListMetadataFormats marcxml definition Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_4 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P5 Component: Tools AssignedTo: gmcharlt@gmail.com ReportedBy: benanderson@benanderson.us QAContact: koha-bugs@lists.koha-community.org this command: $ curl -s 'http://ubuntu/cgi-bin/koha/oai.pl?verb=ListMetadataFormats' | xmllint --format - results in : http://pastebin.com/raw.php?i=SU52snk3 I believe this is a problem: <schema>http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd</schema> <metadataNamespace>http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim</metadataNamespace> shouldn't it be this instead? <schema>http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd</schema> <metadataNamespace>http://www.loc.gov/MARC21/slim</metadataNamespace> and not quite as important, but somewhat relevant I think this: <metadataPrefix>marcxml</metadataPrefix> should be this: <metadataPrefix>marc21</metadataPrefix> according to this: http://www.openarchives.org/OAI/2.0/guidelines-marcxml.htm "It is recommended that the metadataPrefix "marc21" be used with this metadata format." -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic@tamil.fr AssignedTo|gmcharlt@gmail.com |frederic@tamil.fr Severity|critical |minor --- Comment #1 from Frédéric Demians <frederic@tamil.fr> 2011-09-17 04:44:26 UTC --- Why is it a critical bug? Does it block any OAI-PMH harvester? Koha supports other MARC flavours that MARC21 that's the reason why it returns by default a 'neutral' MARCXML schema. If you need more control over your Koha OAI server, use it in extended mode: http://perldoc.koha-community.org/opac/oai.html -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 --- Comment #2 from Ben Anderson <benanderson@benanderson.us> 2011-09-19 13:27:43 UTC --- "Why is it a critical bug? Does it block any OAI-PMH harvester?" not per se, but the harvester has the wrong info about the format and thus can't do anything with the harvested records. "Koha supports other MARC flavours that MARC21 that's the reason why it returns by default a 'neutral' MARCXML schema." The intended schema and namespace are fine, but it seems there's a typo (note the spaces in the link you provided) metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd why are there two urls in each of those values. That is wrong isn't it? -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 --- Comment #3 from Frédéric Demians <frederic@tamil.fr> 2011-09-19 17:17:12 UTC ---
not per se, but the harvester has the wrong info about the format and thus can't do anything with the harvested records.
Please elaborate on this point. Current Koha OAI server is used by many libraries and harvested by several well known harversters without trouble, apparently. If it doesn't work for you, tell exacly why. Propose a patch or describe the issue so someone can try to fix it for you.
metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
why are there two urls in each of those values. That is wrong isn't it?
It seems so. This should be enough: http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd Since no harverster seems to complain about or fails to work properly, I would hesitate to fix that. So same as above, please report any harverster failing due to this 'strange' namespace. -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 --- Comment #4 from Ben Anderson <benanderson@benanderson.us> 2011-09-19 17:45:36 UTC --- Not sure what else to say except that you should re-read my initial comment. I clearly detailed the issue and offered what I think is the solution. Here's a couple more resources: http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd <complexType name="metadataFormatType"> <sequence> <element name="metadataPrefix" type="oai:metadataPrefixType"/> <element name="schema" type="anyURI"/> <element name="metadataNamespace" type="anyURI"/> </sequence> </complexType> http://www.w3.org/TR/xmlschema-2/#anyURI: "anyURI represents a Uniform Resource Identifier Reference (URI)" But koha is actually shoving in 2 uris into both schema and metadataNamespace - why? -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6876 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.4 |master Component|Tools |Web services CC| |katrin.fischer@bsz-bw.de --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I can confirm, that Koha still lists 2 URLs each in the response to ListMetadataFormats: <schema>http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd</schema><metadataNamespace>http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim</metadataNamespace> -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org