Versions Compared

Key

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

...

  1.  Obtain and build the fcrepo-oaiprovider source code:

    Code Block
    languagetext
        git clone https://github.com/fcrepo4-labs/fcrepo4-oaiprovider.git
        cd fcrepo4-oaiprovider
        mvn package
  2.  Move the generated JAR to Tomcat's lib folder:

    Code Block
    languagetext
        cp target/fcrepo4-oaiprovider-4.0.0-beta-05-SNAPSHOT.jar <CATALINA_HOME>/webapps/<fcrepo>/WEB-INF/lib
  3.  Copy the oai.xml file to the fcrepo config directory:

    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 Edit the fcrepo master.xml file :

    - Edit

    in <CATALINA_HOME>/webapps/<fcrepo>/WEB-INF/

    classes

    class/spring/master.xml

    - Add '<import

    to paste the following <import> declaration after other <import> declarations:

    Code Block
    languagetext
    <import resource="classpath:/spring/oai.xml"/>
    ' after the other <import> declarations
  5. Make sure the OAI namespace is defined as a Compact Node Definition Type. Add: <oai = 'http://www.openarchives.org/OAI/2.0/'> to fcrepo-kernel-impl/src/main/resources/fedora-node-types.cnd in the main core and rebuild the project, but you may have to find another way to add it. See Here
  6. Restart Tomcat. Go to http://localhost:8080/<fcrepo>/rest/oai?verb=Identify. If everything is in order, you should see some XML, outlining the default configuration for the OAI-PMH provider.

...