bug 2659: fix crash in OAI-PMH interface
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 6 Oct 2008 01:40:24 +0000 (20:40 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 12 Nov 2008 13:50:50 +0000 (14:50 +0100)
commitd10e97bf00bce79cd6604121e9073511e9244e68
treea02aefb7cac87fa11434d86e87af62d4d6093b68
parent2892f6e69b063d5a9b4b83c098a5e057a5b25873
bug 2659: fix crash in OAI-PMH interface

When retrieving a record via the OAI-PMH interface, if one of the fields used
to prepare the DC metadata is not defined in the MARC framework (e.g.,
biblioitems.publicationyear in the default MARC21 framework), an OAI GetRecord
can fail with the following error:

> Can't call method "as_string" on an undefined value at
> /usr/share/koha/opac/cgi-bin/opac/oai.pl line 59.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/oai.pl