Islandora module to synchronize metadata from an external OAI-PMH source
===========================
islandora_metadata_synchronization is an Islandora module that can sync metadata from an external source to an Islandora object. This external source must support the OAI-PMH protocol.
An islandora object can be synchronized if the identifier of the record in the external source is known. This identifier can be in MODS metadata or Dublin Core metadata, or in other metadata associated with the record. It is also possible to sync an Islandora object by filling out the identifier in a form.
Multiple sources are possible, each with their own configuration, so it is possible to synchronize from multiple sources to multiple datastreams.
Records with a valid identifier can be synchronized automatically and in batch so the metadata is always up to date. It is also possible to sync an individual record even if no identifier is available within the metadata.
Go to Islandora -> Islandora Utility Modules -> UBL Metadata Synchronization -> Sources. Here the sources can be set. For each source, you enter the following:
After setting up one or more sources, press “Save configuration”. You can instantly see if the settings are correct.
To see if the sync settings work or you want to synchronize the metadata from a particular record, you can sync a particular record. Go to the record, press “Manage”, and then “Synchronize”. At the top, the available sources are shown. You can also see if a particular source can be used and whether the identifier could be found in the metadata. If this is the case, you can press the “Synchronize now with source” button to retrieve the metadata.
Alternatively you can retrieve the metadata for a specific identifier and source. Enter the identifier in the “Synchronization Identifier” field and press the “Synchronize with this Sync ID and source” button. It is immediately indicated whether the synchronization has been successful. If synchronization has been successful, you can see which datastreams have been changed in “Datastreams”.
In the admin screen (Islandora -> Islandora Utility Modules -> islandora metadata synchronization -> Start sync) you can synchronize all records. Enter the date from which you want to sync the metadata in the Last synchronization date field (this field contains the date of the last successful sync) and press the “Start sync” button. If the synchronization runs successfully, this will be reported and the date in the Last synchronization date field is changed to the date of the most recently modified metadata record.
It is also possible to start a batch synchronization via drush. This has the advantage that there is a little more control over how to synchronize and, if necessary, you can run the drush command scheduled.
The drush command is called “start_metadata_synchronization” (smds) and has the following options:
GPLv3
Copyright 2017 Leiden University Library