Heris Export
This is a technical documentation for the Heris Export Plugin. It enables the export of selected images and their associated metadata to an SFTP server.
Last updated
This is a technical documentation for the Heris Export Plugin. It enables the export of selected images and their associated metadata to an SFTP server.
Last updated
Name | Wert |
---|---|
This documentation describes the installation, configuration and use of the Heris export plugin in Goobi.
This plugin for Goobi workflow can be used to export the images and associated metadata selected in a previous step to a JSON file. The export is then carried out via SFTP to an external server.
The following files must be installed in order to use Heris Export:
An automatic step must be inserted in the workflow in which the intranda_export_heris
plugin has been selected. This step must be carried out after the step with the "Image Selection" plugin, in which the images to be exported are selected.
When the plugin is executed, it first checks whether at least one image has been selected in the step with the Image Selection
plugin. If this is the case, the following tasks are carried out:
Copying the selected images to a temporary folder
Check whether there is already an older export for the current HERIS ID
If yes, create a backup of the old JSON file, download the old JSON file
Check whether the selected files correspond to the image names in the old JSON file
For each image that remains the same, the old image identifier is determined so that it can be reused in the new JSON.
every image that has already been exported and is no longer present in the new export is deleted remotely
each new image that did not exist in the old export is treated as a completely new export
Determination of the metadata for the selected images
Creation of the JSON file from the determined metadata, retaining the old image IDs if necessary
Copy the generated data to the destination
Deleting the temporary data
The configuration takes place in the file plugin_intranda_export_heris.xml
as shown here:
The <config>
area can be repeated, allowing different exports for different projects or steps.
The <propertyName>
field defines the property in which the selected images are saved. This value must match the configuration of the image selection plugin.
The JSON file is then described. The <herisId>
field contains the metadata in which the HERIS ID is saved and the <jsonRootElement>
is used to configure the name of the JSON object in which the individual images are described.
The individual fields of the image objects are described in the <field>
list. Each field has three entries.
The name
attribute defines the name of the element within the JSON file.
The value is described in the element itself.
The type
is used to specify what type it is. The value is interpreted differently depending on the type.
The following specifications are possible:
static
: The value is written unchanged as text in the JSON.
filename
: The image name is saved here.
representative
: Can contain the values true/false
. The first image in the list is used as the representative.
identifier
: Contains the identifier of the image from the HERIS database. The previous identifier is reused during a re-export. The field remains empty for new exports.
metadata
: The value is interpreted as a metadata and determined from the metadata. The metadata is first searched for in the sub-element "photo" that was assigned to the image. If this does not exist, the metadata is expected in the main element 'Document'.
The SFTP connection is configured in the last block. Options are available here for authentication using user name and password, user name and key or user name and password-protected key.
Identifier
intranda_export_heris
Repository
Licence
GPL 2.0 or newer
Last change
13.08.2024 14:38:49