[Koha-patches] [PATCH] bug 3205: fix another error in the OAI-PMH Identify response
Galen Charlton
galen.charlton at liblime.com
Fri May 8 18:58:48 CEST 2009
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.
---
opac/oai.pl | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opac/oai.pl b/opac/oai.pl
index d1fa059..b4176ad 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;
--
1.5.6.5
More information about the Koha-patches
mailing list