[Koha] OAI-PMH error

Galen Charlton galen.charlton at liblime.com
Mon Oct 6 14:42:44 NZDT 2008


Hi,

On Sat, Oct 4, 2008 at 9:59 PM, Anuradha KT <anu_ncsi at yahoo.co.in> wrote:
> While trying OAI-PMH compatibility in Koha all the verbs could be executed
> successfully except GetRecord. The verb GetRecord could not be executed
> because of the following error. Could anyone help to solve the problem?
>
> http://.../cgi-bin/koha/oai.pl?verb=GetRecord&identifier=KOHA-OAI-TEST:10&metadataPrefix=oai_dc
>
> The following fatal error has occurred:
>
> Can't call method "as_string" on an undefined value at
> /usr/share/koha/opac/cgi-bin/opac/oai.pl line 59.

This crash can occur if one of the fields that is used to generate the
Dublin Core metadata is not defined in your MARC frameworks - if
you're using MARC21, biblioitems.publicationyear is a candidate, as it
is referred to by oai.pl but is not defined in the default MARC21
frameworks.

I've opened bug 2659
(http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2659) and
submitted a patch for this.

Regards,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt


More information about the Koha mailing list