Plugin for registering DOI via the DataCite API
This is a Goobi step plugin to allow the registration of digital objects at the DataCite DOI service.
Overview
Introduction
This documentation describes the installation, configuration and use of the plugin for registering DOIs.
ATTENTION: There is a newer plugin for this functionality that allows a higher degree of freedom for DOI registration by means of XSL transformation. Documentation of the new plugin can be found here: https://docs.goobi.io/goobi-workflow-plugins-en/step/intranda_step_doi
Installation
The plugin consists of these files:
The file plugin_intranda_step_datacite_doi-base.jar
contains the program logic. it needs to be installed at this path:
The file plugin_intranda_step_datacite_mapping.xml
is the mapping file, defining how local metadata should be translated to the form required for the DOI registration. It needs to be installed at this path:
The file plugin_intranda_step_datacite_doi.xml
is the main configuration file for the plugin. It needs to be installed at this path:
Overview and functionality
To put the plugin into operation, it must be activated for one or more desired tasks in the workflow. This is done as shown in the following screenshot by selecting the plugin intranda_step_datacite_doi
from the list of installed plugins.
Since this plugin should usually be executed automatically, the workflow step should be configured as automatic in the workflow. Since the plugin writes the DOI to the metadata file of the operation, the checkbox for 'Update metadata index when finishing' should also be activated.
The programme examines the metadata fields of the METS/MODS file from the Goobi operation. If a <typeForDOI>
is specified, then it goes through every structure element of that type in the file. If not, it takes the top structure item. From this it creates the data for a DOI, using the mapping file to translate it. Then it registers the DOI using DataCite's MDS API, specifying the DOI by <base>
along with any <prefix>
and <name>
and the ID of the document (its CatalogIDDigital
) plus an incremented counter if more than one DOI was created for the given document. The record is given a registered URL defined by <url>
followed by the DOI. The generated DOI is stored in the METS/MODS file under the metadata specified in <doiMetadata>
. For example, if the value for <typeForDOI>
is Article
, then each article in the METS/MODS file will have a DOI stored in the metadata under <doiMetadata>
for each article.
Configuration
Main configuration
The configuration is done via the configuration file plugin_intranda_step_datacite_doi.xml
and can be adapted during operation. It is structured as follows:
The block <config>
can occur repeatedly for different projects or workflow steps in order to be able to perform different actions within different workflows. The other parameters within this configuration file have the following meanings:
Configuration inside of the Mapping file
The mapping configuration file looks something like this:
For each <map>
, the <field>
specifies the name of the DOI element, and the <metadata>
and <altMetadata>
entries specify from which metadata of the structure elements the value is to be taken in turn. If there is no such entry in the structure elements, then the <default>
value is taken. The value "unkn"
for "unknown" is recommended by Datacite for missing data.
The elements <listMap>
allow to create list elements within the generated Datacite structure, so that repeating values can be defined. Attributes can also be specified, which are taken over itentically with name and value for the list element to be created (e.g. alternateIdentifierType="Goobi identifier"
);
For mandatory fields a <default>
must be specified; for optional fields this is not necessary, but can be done if desired.
The default entry #CurrentYear
is a special case: it is replaced by the current year during DOI generation.
If, for selected structural elements, a reference is to be made to the work in which this element was published, several elements can be listed as publicationTypeWithRelatedItem
. For these, the block of elements <publicationData>
can also be evaluated. This could be used for scientific articles, for example.
Useful additional information
Datacite documentation: https://support.datacite.org/docs/getting-started
Metadata schema overview: https://schema.datacite.org/
Metadata schema for the version 4.4 mit Beispieldateien: https://schema.datacite.org/meta/kernel-4.4/
Admin area for Datacite customers: https://doi.datacite.org/
Admin area in the test system for Datacite customers: https://doi.test.datacite.org/
Example
Example of a Datacite XML file from Goobi:
Last updated