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)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 16 Oct 2008 19:47:13 +0000 (14:47 -0500)
commitd4edef97c9a742aee5c4b5ccc5eb0f5b72a3e1ae
tree4978d30c51447a712715e1659adc3fefde878fc6
parent5076ee4251f7aa7f0601a6334435eac9038a2f87
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