Coder Social home page Coder Social logo

beapi / oai_pmh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opencultureconsulting/simple-oai-pmh

0.0 2.0 0.0 495 KB

This is a stand-alone OAI-PMH data provider. It serves sets & records in any metadata format from directories of XML files using the directory name as metadata prefix, the filename as identifier and the filemtime as datestamp. 0-byte files are considered deleted records and handled accordingly. Resumption tokens and Sets are supported !

License: Other

PHP 63.27% XSLT 36.73%

oai_pmh's Introduction

Simple OAI-PMH 2.0 Data Provider

This is a stand-alone and easy to install data provider implementing the Open Archives Initiative's Protocol for Metadata Harvesting (OAI-PMH). It serves records and sets in any metadata format from directories of XML files using the directory name as metadataPrefix, the filename as identifier and the filemtime as datestamp. 0-byte files are considered deleted records and handled accordingly. Resumption tokens are managed using files. Sets are now supported.

Just put the records as XML files in the data directory, create directory to store them by set, adjust a few configuration settings and you are ready to go!

A demo installation (original project) can be found here.

CodeFactor

Installation

  1. Run composer create-project beapi/oai_pmh <path>.

  2. Edit Configuration/Main.php and adjust the settings according to your preferences.

  3. Create a subdirectory inside the specified data directory for every format (i. e. metadataPrefix) you want to provide.

  4. Put the records into the respective directories according to their format. Optionnaly create directory to store them by set. Each record has to be a separate XML file with its identifier as filename (e. g. the file 12345678.xml can be adressed using the identifier 12345678). Optionally you can maintain deletions by keeping 0-byte files for deleted records.

  5. Congratulations! Now you are running your own Simple OAI-PMH 2.0 Data Provider. You can access the entry point by calling index.php?verb=Identify in your browser.

Upgrading

  1. Backup Configuration/Main.php and your data directory!

  2. Delete everything and re-install by running composer create-project beapi/oai_pmh <path>.

  3. Move your configuration back into Configuration/Main.php and restore your data directory.

  4. Congratulations! Now you are running the newest version of the Simple OAI-PMH 2.0 Data Provider. You can access the entry point by calling index.php?verb=Identify in your browser.

Updating

Updating your records is just as easy with the update.php script! The script automatically handles deletions by maintaining 0-byte files for deleted records. Just call php update.php from the command line and follow the instructions. (Of course, you can simply replace the records manually as well.)

History

This project was originally initiated in 2002 by Heinrich Stamerjohanns at University of Oldenburg. His latest implementation can still be found via the Internet Archive's Wayback Machine.

It was then modified in 2011 by Jianfeng Li at University of Adelaide for The Plant Accelerator. The modified version can be found in the Google Code Archive.

In 2013 Daniel Neis Araujo at Federal University of Santa Catarina modified the project again in order to integrate it with Moodle. His implementation can be found on GitHub. In 2014 Kazimierz Pietruszewski provided some further bugfixes.

In 2017 by Sebastian Meyer at Open Culture Consulting for the German Literature Archive. It is a stand-alone version focused on easy deployment and file based record handling. His implementation can be found on GitHub.

The current implementation was derived from the latter in 2020 by Amaury BALMER at Be API for the BPI. It retains the philosophy brought by Sebastian in 2019 but it provides support for Sets.

oai_pmh's People

Contributors

sebastian-meyer avatar herewithme avatar danielneis avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.