Skip to content

HAB eXist-db OAI-PMH Interface

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

wendig-ou/hab-oai-pmh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAB eXist-db OAI-PMH Interface

This is the OAI-PMH Interface for the Manuscript Database by Herzog August Bibliothek Wolfenbüttel. The interface is implemented as an eXist-db application. All versions can be downloaded here.

Deployment

Just upload the .xar file to your eXist-db package manager. See available versions.

Configuration can be changed in the package's profiles.xml. Either change the default profile or copy it, choose a different name for it and change it. To make the app use a non-default profile, the url parameter profile=my-profile needs to be specified when making OAI PMH requests.

Special care has to be taken with data containing the xml:base attribute. The attribute influences the way the app determines document locations and therefore leads to problems. In most circumstances, it should be removed. Run the included find-xml-base.xq script with eXide's "Eval" to find affected documents.

Development

This repository ships with a Vagrantfile so you may run

vagrant up

to get startet. The dataset used to develop this software is not included and has to be installed afterwards, which is very simple: Given the file mss.zip in /vagrant/mss.zip, do

vagrant ssh
cd /mnt
sudo /vagrant/bin/mount.sh # leave password empty when prompted

sudo unzip /vagrant/mss.zip
sudo cp -urv mss/ dav/ # this will take a lot of time
sudo rm -rf mss
sudo umount dav

At this point the data is available and the application can be used at https://localhost:8080

Tests

The application has been validated with the official OAI-PMH validator and there is a number of local tests available as rspec tests. To run them, install ruby, run bundle install and then bundle exec rspec.

XQuery and eXist-db resources

About

HAB eXist-db OAI-PMH Interface

Resources

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published