Metadata formats

Metadata formats specify the structure of the XML metadata record section of the responses to OAI-PMH GetRecord or ListRecords requests. The specific metadata format can be selected as part of these requests.

The metadata formats supported by a repository can be listed using the OAI-PMH ListMetadataFormats request. Support for the Dublin Core (oai_dc) metadata format is a requirement of the OAI-PMH.

Each metadata format that the IMu OAI-PMH web service defines is implemented as a PHP class. The class files are located under the format directory and can be localized in the same way as configuration files:

Metadata Level Location

Default (common)

oai-pmh/ws/common/format

Client-specific (client)

oai-pmh/ws/client/format

Site-specific (local)

oai-pmh/ws/local/format

Each class must specify:

  • The metadataPrefix, schema and metadataNamespace that identify the format.

    These values are displayed using the OAI-PMH ListMetadataFormats request. It is also necessary to specify the version of the metadata format that is implemented by this class.

  • The modules and columns to retrieve from the EMu CMS.
  • The XML metadata record section of the responses to OAI-PMH GetRecord or ListRecords requests.

Each class must also extend a provided class called BaseMetadataFormat (for example, see here). This means that the metadata format class inherits some already defined functionality specified in the BaseMetadataFormat class that is required by the IMu OAI-PMH web service.

Note: The metadata formats supported by your repository must be specified in the ws.ini file supportedFormats option.