From 1428ebed51fca13663b872e8a8095fdd824a0afb Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 8 May 2009 11:54:29 -0500 Subject: [PATCH] bug 3205: fix another error in the OAI-PMH Identify response The optional description element of an Identify response can't just be a string. Identify.description is a container for one or more elements; see http://www.openarchives.org/OAI/2.0/guidelines.htm For now, simply commenting it out. Signed-off-by: Galen Charlton --- opac/oai.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/opac/oai.pl b/opac/oai.pl index d1fa059955..b4176adec8 100755 --- a/opac/oai.pl +++ b/opac/oai.pl @@ -125,7 +125,13 @@ sub new { earliestDatestamp => '0001-01-01', deletedRecord => 'no', ); - $self->description( "Koha OAI Repository" ); + + # FIXME - alas, the description element is not so simple; to validate + # against the OAI-PMH schema, it cannot contain just a string, + # but one or more elements that validate against another XML schema. + # For now, simply omitting it. + # $self->description( "Koha OAI Repository" ); + $self->compression( 'gzip' ); return $self; -- 2.39.2