You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paurikova2 edited this page Nov 6, 2024
·
3 revisions
How to run oai tests locally
Before
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 in docker-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 the docker/ directory. Then, add this line to the docker-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.