Arrow from Koha logo through Open Archives Initiative logo to Drupal logo.

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_records will 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

  1. Update Drupal core to 11.1 or later and the harvester to 3.x together. Add drupal/schema_form:^1.0@alpha explicitly, because it's still in Alpha. Retain a Drupal 11-compatible auto_config_form release until migration is complete.
  2. Run drush updatedb and drush cache:rebuild. Existing settings, records and the harvest date are preserved.
  3. If no other modules need auto_config_form, run drush pm:uninstall auto_config_form, then remove its Composer requirement.
Supporting organizations: 
Employs the maintainer

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon13 sites report using this module
  • Created by rudolfbyker on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases