bug 3205: fix another error in the OAI-PMH Identify response
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 8 May 2009 16:54:29 +0000 (11:54 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:18:49 +0000 (23:18 +0200)
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 <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
opac/oai.pl

index d1fa059..b4176ad 100755 (executable)
@@ -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;