[Koha-bugs] [Bug 14939] OAI Server classes must be modularized
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Nov 15 01:26:21 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14939
Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |In Discussion
--- Comment #12 from Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> ---
Sorry Frédéric
But I got:
# Failed test 'ListMetadataFormats'
# at t/db_dependent/OAI/Server.t line 84.
# got: '<?xml version="1.0" encoding="UTF-8"?>
#
# <OAI-PMH xmlns='http://www.openarchives.org/OAI/2.0/'
xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><responseDate>2015-11-15T00:11:11Z</responseDate><request>http://localhost</request><ListMetadataFormats><metadataFormat><metadataPrefix>oai_dc</metadataPrefix><schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema><metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace></metadataFormat><metadataFormat><metadataPrefix>marcxml</metadataPrefix><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></metadataFormat></ListMetadataFormats></OAI-PMH>'
# expected: '<?xml version="1.0" encoding="UTF-8"?>
#
# <OAI-PMH xmlns='http://www.openarchives.org/OAI/2.0/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd'><responseDate>2015-11-15T00:11:11Z</responseDate><request>http://localhost</request><ListMetadataFormats><metadataFormat><metadataPrefix>oai_dc</metadataPrefix><schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema><metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace></metadataFormat><metadataFormat><metadataPrefix>marcxml</metadataPrefix><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></metadataFormat></ListMetadataFormats></OAI-PMH>'
# Failed test 'ListIdentifiers without metadaPrefix argument'
# at t/db_dependent/OAI/Server.t line 96.
# got: '<?xml version="1.0" encoding="UTF-8"?>
#
# <OAI-PMH xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd'
xmlns='http://www.openarchives.org/OAI/2.0/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><responseDate>2015-11-15T00:11:11Z</responseDate><request>http://localhost</request><error
code='badArgument'>Required argument 'metadataPrefix' was
undefined</error></OAI-PMH>'
# expected: '<?xml version="1.0" encoding="UTF-8"?>
#
# <OAI-PMH xmlns='http://www.openarchives.org/OAI/2.0/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd'><responseDate>2015-11-15T00:11:11Z</responseDate><request>http://localhost</request><error
code='badArgument'>Required argument 'metadataPrefix' was
undefined</error></OAI-PMH>'
# Looks like you failed 2 tests of 13.
Also i noticed that this happen when you got OAI-PMH:AutoUpdateSets to
"Disable", if you enable all works succefully.
I play with
cgi-bin/koha/oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:1&metadataPrefix=marcxml
And is working succefully
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list