Configurable Export
This is a technical documentation for the configurable Goobi Export plugin. It allows you to customise the export using the project configuration. By using export projects, it is also possible to expo

Introduction

This documentation describes how to install, configure and use an export plugin in Goobi.
Using this export plugin for Goobi, Goobi operations can be exported to multiple locations simultaneously within one operation.
Details
Text
Identifier
intranda_export_configurable
Licence
GPL 2.0 oder neuer
Compatibility
Goobi workflow 2022.03 und neuer
Documentation date
12.05.2022

Installation

This plugin is integrated into the workflow in such a way that it is executed automatically. Manual interaction with the plugin is not necessary. For use within a work step of the workflow, it should be configured as shown in the screenshot below.
Integration of the plug-in into the workflow
The plugin must first be copied into the following directory:
1
/opt/digiverso/goobi/plugins/export/plugin_intranda_export_configurable.jar
Copied!
In addition, there is a configuration file that must be located in the following place:
1
/opt/digiverso/goobi/config/plugin_intranda_export_configurable.xml
Copied!

Konfiguration

The plugin is configured via the configuration file plugin_intranda_export_configurable.jar and via the project settings. The configuration can be adjusted during operation. The following is an example configuration file:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<config_plugin>
3
<!--
4
order of configuration is:
5
1.) project name matches
6
2.) project is *
7
-->
8
<config>
9
<project>testocr</project>
10
<includeMarcXml>false</includeMarcXml>
11
<folder>
12
<includeMedia>true</includeMedia>
13
<includeMaster>true</includeMaster>
14
<includeSource>false</includeSource>
15
<includeImport>false</includeImport>
16
<includeExort>false</includeExort>
17
<includeITM>false</includeITM>
18
<includeOcr>true</includeOcr>
19
<includeValidation>false</includeValidation>
20
<ocr>
21
<suffix>alto</suffix>
22
</ocr>
23
</folder>
24
</config>
25
26
27
<config>
28
<project>*</project>
29
<target key="{meta.ViewerInstance}" value="evifaanddigihub" projectName="evifExportProject"/>
30
<target key="{meta.ViewerInstance}" value="evifaanddigihub" projectName="digihubExportProject"/>
31
<target key="{meta.ViewerInstance}" value="" projectName=""/>
32
<includeMarcXml>false</includeMarcXml>
33
<folder>
34
<!-- as configured in goobi_config.properties -->
35
<!--genericFolder>thumbs</genericFolder-->
36
<includeMedia>true</includeMedia>
37
<includeMaster>true</includeMaster>
38
<includeOcr>false</includeOcr>
39
<includeSource>false</includeSource>
40
<includeImport>false</includeImport>
41
<includeExort>false</includeExort>
42
<includeITM>false</includeITM>
43
<includeValidation>false</includeValidation>
44
</folder>
45
</config>
46
</config_plugin>
Copied!
Parameter
Explanation
project
This parameter determines for which project the current block <config> should apply. The name of the project is used here. The <config> block with the project * is always used if no other block matches the project name.
target
This parameter has 3 mandatory attributes: In the key parameter, a Goobi variable of the form {meta.metadata name} should be used. The attribute value can then be used to specify the desired value. If value="" is set, the condition will be met if the metadata is empty or not set. The attribute projectName should contain the name of the export project with whose settings the export is to take place. If an empty string is assigned to the attribute projectName="", the settings of the project of the operation will be used for export. If no target condition is set, a normal export will be performed. An export is triggered for each target condition that applies.
includeMarcXml
This parameter determines whether any existing MARC-XML data should be embedded in the exported metafile. The default value is false.
The block <config> is repeatable and can thus define different metadata in different projects. The block with <project>*</project> is applied if no block with the project name of the project exists.

The folder block

The folder block is located inside each config element. It controls which directories are to be taken into account for the export.
Parameter
Explanation
includeMedia
Here you can define whether the media folder should be exported.
includeMaster
Here you can define whether the master folder should be exported.
includeOcr
Here you can define whether the ocr folder should be exported.
includeSource
Here you can define whether the source folder should be exported.
includeImport
Here you can define whether the import folder should be exported.
includeExort
Here you can define whether the export folder should be exported.
Here you can define whether the TaskManager folder is to be exported.
includeValidation
Here you can define whether the validation folder should be exported.
ocr
The ocr element is needed when using OCR folders with different suffixes. The specific suffix can then be specified in the suffix sub-element.
The default value for each of these parameters except ocr is false. If the respective parameter is not mentioned in the configuration, no export of the corresponding folder will take place.
The configuration of the destination folder can be done within the project settings in the Goobi workflow user interface. If the checkbox for Create task folder is set there, the task will be stored in a subfolder with its title as name in the target folder.
Project settings within Goobi workflow