OAI GetRecord and ListRecords, when called with metadataPrefix=oai_dc, return something like this: <metadata> <oai_dc:dcCollection xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> <oai_dc:dc> <oai_dc:title>...</oai_dc:title> ... </oai_dc:dc> </oai_dc:dcCollection> </metadata> According to http://www.openarchives.org/OAI/2.0/oai_dc.xsd there is no dcCollection element in oai_dc. Moreover the OAI Repository Explorer (http://re.cs.uct.ac.za/) returns errors about this: [Error] re.ZeDK9z:3:756: cvc-complex-type.2.4.a: Invalid content was found starting with element 'oai_dc:dcCollection'. One of '{"http://www.openarchives.org/OAI/2.0/oai_dc/":dc}' is expected. Some other OAI harvesting tools also fail to parse the response successfully. I found a discussion about this: https://lists.katipo.co.nz/public/koha/2016-April/045130.html There is a patch provided (https://lists.katipo.co.nz/public/koha/2016-April/045283.html) but no bug was opened. This is a regression caused by bug 12252, and it affects all versions since 3.22
Created attachment 58036 [details] [review] Bug 17744: Remove the oai_dc:dcCollection wrapper in OAI responses
Test plan: 1. Empty system preference OAI-PMH:ConfFile 2. Go to http://opac.tld/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=oai_dc 3. Confirm you have oai_dc:dcCollection element in <metadata> 4. Apply patch 5. Repeat 2 6. Confirm you don't have oai_dc:dcCollection element in <metadata>
Created attachment 58192 [details] [review] [SIGNED-OFF] Bug 17744: Remove the oai_dc:dcCollection wrapper in OAI responses Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Created attachment 58204 [details] [review] Bug 17744: Remove the oai_dc:dcCollection wrapper in OAI responses Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 17.05, thanks Julian!
This patch has been pushed to 16.11.x, will be in 16.11.01.
Created attachment 58553 [details] [review] [3.22.x] Bug 17744: Remove the oai_dc:dcCollection wrapper in OAI responses
Pushed to 3.22.x for 3.22.14
Pushed to 16.05.x, for 16.05.07 release