forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
OAI test
Ondrej Kosarko edited this page Dec 6, 2024
·
1 revision
- Modify test_oai/init.py to add "elg" to the tested formats list (line 56).
- Run the DSpace database with data (use a dump from dev-5).
- Modify the
db__P__url
variable indocker-compose-rest.yml
to point to your local IP and port of the running DSpace database. - Add the following line to the
pg_hba.conf
file in PostgreSQL:host all all [your local host address]/32 md5
- Copy the
elg.xsl
file from the DSpace backend to thedocker/
directory. Then, add this line to thedocker-compose-rest.yml
file under the services/dspace section:- ./elg.xsl:/dspace/config/crosswalks/oai/metadataFormats/elg.xsl
- Run DSpace in Docker.
- Import OAI:
In DSpace, go to Exec and run the following commands:
bash
cd /dspace/bin
./dspace oai import -c
Notes: If you make modifications to the elg.xsl file, you will need to rebuild the backend container: Delete dspace0. Run the command to create the containers again. Execute the OAI import commands.
-
Create a new configuration.
-
Module name:
test_oai.test_OAI.test_diff_oaipmh_output
-
Environment variables:
DSPACE_REST_API=http://localhost:8080/server/api
(for local setup, otherwise usedev-5.pc
) -
Working directory:
[path]\dspace-rest-test\tests
-
Module name: