From: Galen Charlton Date: Fri, 8 May 2009 16:54:29 +0000 (-0500) Subject: bug 3205: fix another error in the OAI-PMH Identify response X-Git-Tag: v3.00.04~540 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=358374a043d0abf7ce4f0165a4f958c579ca2e61;p=koha.git 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 Signed-off-by: Henri-Damien LAURENT --- 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;