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.

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

GetRecord