[Koha-bugs] [Bug 10662] Build OAI-PMH Harvesting Client

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 18 11:36:38 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10662

--- Comment #278 from David Cook <dcook at prosentient.com.au> ---
To setup koha-testing-docker:

0. Apply patches (e.g. git bz apply 10662)
1. apt-get install libpoe-perl libpoe-component-jobqueue-perl 
2. In your browser, go to localhost:8081 and check that you get to the login
page
3. cd /kohadevbox/koha
4. kshell -c "perl installer/data/mysql/updatedatabase.pl"
5. curl https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78583 >
/kohadevbox/koha/oai.yml
6. sudo vi /etc/koha/sites/kohadev/koha-conf.xml
Add the following before </config>:
<oai_pmh_harvester_config>/kohadevbox/koha/oai.yml</oai_pmh_harvester_config>
7. restart_all 
8. KOHA_CONF=/etc/koha/sites/kohadev/koha-conf.xml PERL5LIB=/kohadevbox/koha
perl misc/harvesterd.pl --log-level DEBUG

To test:
<First, you'll need an OAI-PMH server to harvest from.>
1) Start OAI-PMH harvester daemon according to the above koha-testing-docker
instructions (kohadevbox can be used instead but will need some modifications)
2) Go to /cgi-bin/koha/tools/tools-home.pl
3) Click on "OAI-PMH harvester"
(/cgi-bin/koha/tools/oai-pmh-harvester/dashboard.pl)
4) At the toolbar choose "New request"
5) Give the request a "Name" (e.g. Test)(this is just used for Koha and not
sent in the request), add "URL" for an OAI-PMH repository (e.g.
http://<koha>/cgi-bin/koha/oai.pl), and fill in the OAI-PMH parameters as
desired/required (an explanation of the protocol is at
http://www.openarchives.org/OAI/openarchivesprotocol.html or see attached
screenshot oai_request_example.jpg). The remaining values can be kept
unchanged. 
6) Click "Test parameters" to make sure your inputs are all valid. 
7) Click "Save"
8) Click "Actions" and choose "Submit"
9) If the submission is successful, go to the "Submitted requests" tab
10) Click "Actions" and choose "Start"
11) Go to the "Import history" tab
12) Click "Refresh import history" to update the table and see your results. If
nothing is coming up, you may need to change your request as the OAI-PMH
repository may not have any results for that particular request.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list