[Koha-bugs] [Bug 12252] OAI-PMH GetRecord result doesn't include item data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 23 18:49:12 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12252

--- Comment #61 from Frédéric Demians <frederic at tamil.fr> ---
Created attachment 41140
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41140&action=edit
Bug 12252 Include item data only in extended mode

Previous patches attached to this bug have been refactored to merge bug
3206 and bug 13568 features. So OAI server must be carrefully tested to
ensure that there is no regression in this area: deleted records and
resumption token.

This last patch fixed the way items are returned. They are returned only
if OAI server operates in extended mode, and specifically for format
having the parameter include_item set to 1 (true). For example this
configuration file set via OAI-PMH:ConfFile syspref will return items:

---
format:
  marcxml:
    metadataPrefix: marxml
    metadataNamespace: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim
    schema: http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
    include_items: 1
  oai_dc:
    metadataNamespace: http://www.openarchives.org/OAI/2.0/oai_dc/
    metadataPrefix: oai_dc
    schema: http://www.openarchives.org/OAI/2.0/oai_dc.xsd
    xsl_file:
/home/tamil/client/devel/kohaclone/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl

To test:

1 Call the oai server with metadataprefix=marcxml, verbs ListRecords and
  ListIdentifiers
2 No items are returned
3 Create an oai.conf file as above, and fill OAI-PMH:ConfFile syspref
4 Repeate 1. Items are returned.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list