OAI PMH
From version 23.3 OAI-PMH is only available upon request
Introduction
OAI-PMH is an open standard designed for harvesting metadata
The full documentation can be found online
The complete API reference is also available
The OAI is from version
23.3only available upon request.
OAI
Upon activation of the component you can access it using
https://<Your MediaHaven URL>/mediahaven-oai/oai
The Integration installation of MediaHaven always contains the latest release from MediaHaven
Delete Support
From version 22.1 the engine now has delete support for OAI meaning
Logically deleted records are present in OAI responses
These records are marked with
<header status="deleted">as mandated by the OAI spec
When a record is logically deleted, the
Administrative.LastModifiedDatechanges and there will be a corresponding harvest for the corresponding date
Note that the OAI specification forbids including the metadata of a deleted record in the response, however you can still make a GET request using the https://mediahaven.atlassian.net/wiki/spaces/CS/pages/2447769640 2.0
Cookbook
Metadata formats
Metadata formats that include children will result in large XML files. These metadata formats are discouraged when requesting a list of records and should only be used when requesting a single record.
See https://mediahaven.atlassian.net/wiki/spaces/CS/pages/4701683731 for additional information.
Selective harvesting
Select harvesting is the most useful feature of OAI-PMH, allowing for querying the API for recent changes and for keeping another platform in sync with changes. Open Archives Initiative - Protocol for Metadata Harvesting - v.2.0 describes in “Selective harvesting” how to achieve this.
Get metadata
Query Parameter | Description | Example |
|---|---|---|
format | The metadata format as described in the previous section |
|
from | Return records that have been modified after this date (inclusive) |
|
until | Return records that have been modified before this date (inclusive) |
|
resumptionToken | Use this token to receive additional records matching between the time interval |
(base 64 string) |
The parameters from and until are calculated against the metadata field Administrative.LastModifiedDate. See https://mediahaven.atlassian.net/wiki/spaces/CS/pages/42074134 for the complete reference.
Authentication
From version
23.2the basic authentication is deprecated and strongly discouraged from use because of security reasonsThe standard https://mediahaven.atlassian.net/wiki/spaces/CS/pages/872251552 authentication must be used instead and is already available since at least
22.1From version
25.1the basic authentication support is removed