Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The OAI-PMH provider in fcrepo4-oaiprovider relies on JAXB, so download the following jar JAR files from:

 http://central.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar

...

1) Obtain and build the fcrepo-oaiprovider source code    git clone :

Code Block
languagetext
    git clone https://github.com/fcrepo4-labs/fcrepo4-oaiprovider.git

...


    cd fcrepo4-oaiprovider
    mvn package

     mvn package

2) Move the binary generated JAR to the fcrepo libraries
    cp Tomcat lib folder:

Code Block
languagetext
    cp target/fcrepo4-oaiprovider-4.0.0-beta-04-SNAPSHOT.jar <CATALINA_HOME>/webapps/<fcrepo>/WEB-INF/lib

 

3) Copy the oai.xml file to the fcrepo config directory    cp :

Code Block
    cp fcrepo4-oaiprovider/src/main/resources/spring/oai.xml /<CATALINA_HOME>/webapps/<fcrepo>/WEB-INF/classes/spring/

 

4) Add the import to fcrepo's master.xml file

...

    - Add '<import resource="classpath:/spring/oai.xml"/>' after the other <import declarations at the end of the file

    - Save the file

 <import> declarations

4b) Make sure the OAI namespace is defined as a Compact Node Definition Type. I addedAdd:

<oai = 'http://www.openarchives.org/OAI/2.0/'>

To to fcrepo-kernel-impl/src/main/resources/fedora-node-types.cnd in the main core and rebuilt, but you may have to find another way to add it. See Here

...

The OAI-Provider relies on 4 four properties being present in the main repository for the IDENTIFY verb. Those The properties are:

  • oai:repositoryName
  • oai:description
  • oai:version
  • oai:adminEmail

 

These properties have to populated manually for now, using the following sparql-update SPARQL/Update queries:

INSERT {<> oai:repositoryName "exciting repository name here"}

...

oai:adminAddress: "admin@example.com"