From 631b93204579bb2d85fc29af2500370449b07439 Mon Sep 17 00:00:00 2001 From: Zeno Tajoli Date: Tue, 1 Mar 2016 11:44:42 +0100 Subject: [PATCH] Bug 15946 Valid namespace for OAI marcxml schema (3.22/3.20) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As the patch for master, this patch apply on 3.22 (and 3.20 probably). This path fixes the value of xml schema variable and the link to Library of Congress. For Dublin Core format those values are defined in UNIMARCslim2OAIDC.xsl and MARC21slim2OAIDC.xsl. For MARCXML those values are written into the code To test it: 1) Setup OAI-PMH 2) Test the site inserting the BaseURL into http://validator.oaipmh.com 3) See the problem with ListMetadataFormats [link: http://validator.oaipmh.com/#ListMetadataFormats] 4) Insert the patch 5) See the problem is over Signed-off-by: Frédéric Demians Invalid before patch, valid after. Signed-off-by: Katrin Fischer --- opac/oai.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/oai.pl b/opac/oai.pl index 7eb0f6beff..c8ea08bd3c 100755 --- a/opac/oai.pl +++ b/opac/oai.pl @@ -203,8 +203,8 @@ sub new { ) ); $self->metadataFormat( HTTP::OAI::MetadataFormat->new( metadataPrefix => 'marcxml', - schema => 'http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd', - metadataNamespace => 'http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim' + schema => 'http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd', + metadataNamespace => 'http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim' ) ); } -- 2.39.5