php-oai2 Data Provider

This is an implementation of an OAI-PMH 2.0 Data Provider, written in PHP and has been tested with version 5.3.

This implementation completely complies to OAI-PMH 2.0, including the support of on-the-fly output compression which may significantly reduce the amount of data being transfered.

This package has been inspired by PHP OAI Data Provider developed by Heinrich Stamerjohanns at University of Oldenburg. Some of the functions and algorithms used in this code were transplanted from his implementation.

Database is supported through PDO, so almost any popular SQL-database which has PDO driver can be used without any change in the code.

It uses DOM extension,an extension included in every PHP installation since version 5, for generating XML files. With PHP 5 or above no extra extension is needed.

The repository can be quite easily configured by just editing oai2/oaidp-config.php, most possible values and options are explained. For requirements and instructions to install and configure, please reference the documentation.

Once you have setup your Data Provider, you can the easiliy check the generated answers (it will be XML) of your Data Provider by clicking on the test links below.

For simple visual tests set $SHOW_QUERY_ERROR to TRUE and $CONTENT_TYPE to text/plain, so you can easily read the generated XML responses in your browser.

Remember, GetRecord needs identifier to work. So please change it use your own or you should see a response with error message.

Example Tables
OAI Records (mysql)
OAI Records (pgsql)
Query and check your Data-Provider
Identify
ListMetadataFormats
ListSets
ListIdentifiers
ListRecords
GetRecord

For other tests on your own provider or other providers, please use the Repository Explorer.

Jianfeng Li
The Plant Accelerator
University of Adelaide