This article explains how to customize the OaiPmhRepository module for Omeka S to publish metadata by mapping it to DC-NDL (Simple).

Please refer to the following GitLab repository as needed.

gitlab.com

Note: A separate introductory article on OaiPmhRepository is planned.

File Modifications

Please refer to the following commit.

https://gitlab.com/nakamura196/Omeka-S-module-OaiPmhRepository/-/commit/702f1c693a62ae21ef03da495e3b4efd6060c561#d57ba0f1ebb8e2008538c451770f3fe535e1c2ca

Specifically, modifications are made to the following files.

OaiPmhRepository/config/module.config.php

Add the information for the custom vocabulary.

OaiPmhRepository/src/OaiPmh/Metadata/DCNDLSimple.php

This file defines the mapping between Omeka S properties and the output fields. The mapping rules in the commit above are specific to that repository. You will need to modify them according to the metadata description rules of your own Omeka S installation.

Results

You can retrieve OAI-PMH records like the following.

ListRecords

https://diyhistory.org/nakamura196/oai?verb=ListRecords&metadataPrefix=dcndl_simple

GetRecord

https://diyhistory.org/nakamura196/oai?verb=GetRecord&metadataPrefix=dcndl_simple&identifier=oai:diyhistory.org:3