Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.
/ SolrOai Public archive

PHP class to add an OAI-PMH provider interface to a Solr web endpoint.

License

Notifications You must be signed in to change notification settings

kennisnet/SolrOai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolrOai

This adds an OAI-PMH interface to your Solr web endpoint. The solroai.php file translates OAI-PMH requests to the Solr web endpoint and translates the Solr response back to a proper OAI-PMH reply. Different metadata formats are handled by the Solr XsltResponseWriter.

All further requests to the Solr endpoint are basically of this form, where the my_format.xsl is called through the metadataPrefix argument, translating the default Solr output to the required format.

http://solr.example.org/solr/repository/select/?q=*:*&version=2.2&start=0&rows=10&indent=on&wt=xslt&tr=my_format.xsl

  • The OAI-PMH from argument is translated to a changed argument.
  • The resumptionToken pagination is translated to a start argument.

Install

  • Put the solroai.php and config.php files at the location you want to host the oaiprovider from.
  • Add the xslt in the proper Solr container.
  • Edit the config.php to your settings, make sure the xsl in $metadataprefixes corresponds with the one in the Solr container.

requirements The script has the following PHP dependencies:

  • curl
  • simpleXML

About

PHP class to add an OAI-PMH provider interface to a Solr web endpoint.

Resources

License

Stars

Watchers

Forks

Packages

No packages published