Newspaper export
Goobi Export Plugin to create the METS structure for import into the DDB newspaper portal

Introduction

The plugin is used to create the METS structure for the import into the newspaper portal of the German Digital Library. A METS anchor file is created for the complete record of a newspaper, for each exported volume another METS anchor file is created and linked within the complete record. The year contains further structures for month and day.
Each output is created as individual METS files and linked in the METS anchor file of the vintage. The issue may contain further structural data such as article descriptions or supplements. The digitised images are also referenced here.
Gesamtaufnahme Zeitung 1.0 - DDBinfo für Daten - Confluence - Deutsche Digitale Bibliothek
Jahrgang Zeitung 1.0 - DDBinfo für Daten - Confluence - Deutsche Digitale Bibliothek
Ausgabe Zeitung 1.0 - DDBinfo für Daten - Confluence - Deutsche Digitale Bibliothek
Details
Text
Identifier
intranda_export_newspaper
Licence
GPL 2.0 or newer
Compatibility
Goobi workflow 2022.03
Documentation date
29.03.2022

How the plugin works

Once the plugin has been fully installed and set up, it is usually run automatically within the workflow, so there is no manual interaction with the user. Instead, the workflow invokes the plugin in the background and performs the following tasks:
A separate METS file is created for each output, linking the images and OCR data associated with the output. The output can have further sub-elements such as articles or inserts.
The individual issues are then combined into one METS file for the year. The METS files of the issues are linked within a structure for month and day.
The last step is to check whether a record with the metadata of the entire issue exists in the target directory. If not, a METS file is created, otherwise the year is entered into the structure data of the overall recording.

Installation

The plugin consists of the following file:
1
plugin_intranda_export_newspaper.jar
Copied!
This file must be installed in the correct directory so that it is available at the following path after installation:
1
/opt/digiverso/goobi/plugins/export/plugin_intranda_export_newspaper.jar
Copied!
In addition, there is a configuration file that must be located in the following place:
1
/opt/digiverso/goobi/plugins/config/plugin_intranda_export_newspaper.xml
Copied!

Configuration

The configuration of the plugin is done via the configuration file plugin_intranda_export_newspaper.xml and can be adjusted during operation. The following is an example configuration file:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<config_plugin>
3
<export>
4
<images>false</images>
5
<subfolderPerIssue>false</subfolderPerIssue>
6
<exportFolder>/tmp/export/</exportFolder>
7
<metsUrl>https://viewer.example.org/viewer/metsresolver?id=</metsUrl>
8
<resolverUrl>https://viewer.org/viewer/piresolver?id=</resolverUrl>
9
</export>
10
<metadata>
11
<purl>_purl</purl>
12
<zdbiddigital>CatalogIDPeriodicalDBDigital</zdbiddigital>
13
<zdbidanalog>CatalogIDPeriodicalDB</zdbidanalog>
14
<identifier>CatalogIDDigital</identifier>
15
<issueDate>DateIssued</issueDate>
16
<yearDate>CurrentNoSorting</yearDate>
17
<titleLabel>TitleDocMain</titleLabel>
18
<modsTitle>MainTitle</modsTitle>
19
<volumeNumber>VolumeNo</volumeNumber>
20
<issueNumber>CurrentNo</issueNumber>
21
<sortNumber>CurrentNoSorting</sortNumber>
22
<language>DocLanguage</language>
23
<location>PhysicalLocation</location>
24
<licence>UseAndReproductionLicense</licence>
25
<resourceType>TypeOfResource</resourceType>
26
<anchorId>AnchorID</anchorId>
27
<anchorTitle>AnchorTitle</anchorTitle>
28
<anchorZDBIdDigital>AnchorCatalogIDPeriodicalDBDigital</anchorZDBIdDigital>
29
</metadata>
30
<docstruct>
31
<newspaper>Newspaper</newspaper>
32
<year>Year</year>
33
<month>Month</month>
34
<day>Day</day>
35
<issue>NewspaperIssue</issue>
36
<newspaperStub>NewspaperStub</newspaperStub>
37
</docstruct>
38
</config_plugin>
Copied!
In the first section <export> some global parameters are set. Here it is determined whether images are to be exported in addition to the METS files (<images> true/false), whether these are to be exported per issue or per year and linked in the data sets (<subfolderPerIssue> true/false), to which directory the export should be made (<exportFolder>) and which resolvers should be written for the METS file (<metsUrl>) and the link to the published record (<resolverUrl>).
In the second section <metadata> a set of metadata is defined. These fields must exist in the rule set and are partly copied from the overall record to the individual outputs during the export.
The third section <docstruct> defines some structural elements to be generated. These must also be configured in the rule set.

Integration of the plugin into the workflow

To put the plugin into operation, it must be activated for a task in the workflow. This is done as shown in the following screenshot by selecting the plugin intranda_export_newspaper from the list of installed plugins.
Integration of the plugin into the workflow
Since this plugin is usually to be executed automatically, the task should be configured as automatic in the workflow. Furthermore, the task must be marked as an export step.
In addition, there must be another regular export step so that the linked images and ALTO files can be delivered via the Goobi viewer interfaces.