This project is not covered by Drupal’s security advisory policy.
OAI-PMH Harvester
See https://www.drupal.org/project/oai_pmh_harvester
Harvest bibliographic records from an OAI-PMH source, like Koha, and cache them in a table, so that we can refer to them from fields.
This module does not provide the FieldType, FieldWidget or FieldFormatter plugins for working with the data. That would be the job of a separate module depending on this one.
Versions
| Branch | Supported Drupal versions |
|---|---|
| 2.x | ^8 || ^9 || ^10 |
| 3.x | ^11.1 |
Installing
Add the module to your Drupal project and enable it.
composer require 'drupal/oai_pmh_harvester:^3.0' 'drupal/schema_form:^1.0@alpha' drush en oai_pmh_harvester
The explicit schema_form requirement is needed because it only has alpha releases at the time of writing, and can be removed once a compatible stable release exists.
Using
- Navigate to Admin -> Config -> Web services -> OAI-PMH Harvester -> Settings (
admin/config/services/oai_pmh_harvester/settings_form). - Enter the URL to your OAI-PMH provider. For a Koha site, this is something like
https://example.com/cgi-bin/koha/oai.pl - Choose a harvest interval. Since OAI-PMH provides the records in the order that they were added, this will determine roughly how many records we try to harvest per cron run.
- Save configuration
- Make sure cron runs regularly, or run it manually from the actions page (
admin/config/services/oai_pmh_harvester/actions_form). - A table called
oai_pmh_harvester_bib_recordswill now exist in your database, and it will get filled with bibliographic records harvested from your OAI-PMH endpoint. - Look at the table column comments for further guidance and do with the data what you wish.
Migrating from 2.x to 3.x
- Update Drupal core to 11.1 or later and the harvester to 3.x together. Add
drupal/schema_form:^1.0@alphaexplicitly, because it's still in Alpha. Retain a Drupal 11-compatibleauto_config_formrelease until migration is complete. - Run
drush updatedbanddrush cache:rebuild. Existing settings, records and the harvest date are preserved. - If no other modules need
auto_config_form, rundrush pm:uninstall auto_config_form, then remove its Composer requirement.
Supporting organizations:
Employs the maintainer
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.13 sites report using this module
- Created by rudolfbyker on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

