Importing MAB Files
Import plugin for translating MAB2 and SGML data into METS-MODS
Overview
Introduction
The program examines the provided MAB2 file and translates the fields into metadata for a METS-MODS file. If available, an SGML file is also examined to specify the structural data.
Installation
To use the plugin, the following files must be installed:
The goobi-plugin-import-mab.jar file contains the program logic and is an executable file.
The goobi-plugin-import-mab.xml file is the configuration file.
Overview and Functionality
The mappings mapMVW and mapChildren are generated. To do this, the jar file is started with the path to the configuration file as the first parameter, and the path(s) to the MAB files to be processed as additional parameters. This generates and saves the mapping files. This only needs to be done once unless new MAB files are added.
The program is opened as a JAR with the path to the config file as the only parameter. The paths to the mab2 file, etc., are read from the configuration file, and the MAB2 file is processed.
For each dataset in the file, a MetsMods document is generated with appropriate metadata. The translation of individual fields occurs using the tags file.
If
withSGML
is set totrue
, the program searches thesgmlPath
folder for SGML files named after the CatalogID. The METS document then receives the structure from these files.For each page in the document, the program searches for images in the
imagePathFile
folder in subfolders named after the CatalogID. These are then copied to the image folder, and references are created in the StructMap.NOTE: Currently, the images are NOT copied with the correct permissions. This means that before importing into Goobi, all generated folders and files must be assigned to the
tomcat8
user usingsudo chown -R tomcat8 *
.Afterward, the processes can be imported using the Goobi Folder Import.
Configuration
The configuration of the plugin is done in the goobi-plugin-import-mab.xml file as shown below:
The following table contains a summary of the parameters and their descriptions:
Last updated