goobi_opac.xml
The configuration file goobi_opac.xml
defines the communication between Goobi workflow and external data sources. This usually applies to systems such as library catalogs. The file is usually located at the following storage path:
For example, this configuration file looks as follows:
Publication types
Several publication types can be defined in the <doctypes>
element. Each type is in its own <type>
element and has some properties specified by parameters and subelements.
Properties of a publication type
All important properties of a publication type are specified as parameters in the <type>
element. The following parameters can be used:
Translation of titles
The name of a publication type specified in the title
parameter is used internally in the software and is therefore not always easily readable by users and is not translated automatically. Therefore, the publication type name can be translated into different languages using the <label>
element. The language
parameter specifies the language abbreviation. Depending on the configuration, the following languages are usually supported:
Mapping to other data formats
It can happen that a publication type should be able to be found with a search function or with external data formats via certain designations or abbreviations that cannot be derived from the title. For this purpose, further designations can be specified for each type with the sub-element <mapping>id42</mapping>
. If then, for example, the ID id42
is searched for, the corresponding publication type will be found.
Catalogues
Goobi can use metadata from different catalogs. These are entered with the <catalogue>
element directly in the <opacCatalogues>
element. For each catalog element, the title
parameter specifies the official name of the respective catalog.
Configuration of a catalogue
Some other properties of a catalog are specified as parameters in the <config>
subelement. The following parameters can be used:
Search options
Metadata is identified in catalogs using specific numbers (for example ISBN or ISSN). If metadata is to be imported into Goobi using a given number from the respective catalogue, the ` element can be used to list different numbering systems. A user can then enter an ISBN number in the following example and select the ISBN field to match it:
Each <searchField>
element represents an option in the corresponding dropdown menu. The text specified in label
is displayed on the user interface. The value defined in value
is the internal ID of the numbering system. Depending on the catalog, a text-based ID can also be used. This can look like this, for example:
Detailed information about supported numbering systems can be retrieved from the respective catalogue API. This is an XML file that can be called directly in the browser. The domain must be adapted according to the used provider.
Mapping to publication types
As described above, publication types can be found with alternative labels. In addition, it is possible in <catalogue>
elements to link catalogue-specific designations (and thus also catalogues) to publication types using the <specialmapping>
element. Thus, matching publication types can be defined and found via the alternative designations of a catalogue.
The type
parameter of the <specialmapping>
element refers to the title
of the previously defined publication type. The <specialmapping>
element contains an alternative name. The following example would link the search term k10plus_periodical
to the publication type periodical
for a K10Plus catalogue:
Customizing records from MARC files
If records are retrieved from catalogs, they are imported into Goobi via MARC files, among others. Records from these files can be customized using certain replacement patterns. For this purpose, the <beautify>
element is used as a direct sub-element of the corresponding <catalogue>
element and can contain any number of <setvalue>
commands.
Since processing MARC data with these commands can become very complex, only a few simple examples are described here based on the following MARC data excerpt.
The following command can be used to replace certain values. For example, if it turns out that some records of type book
have an invalid year (year
), incorrect data can be corrected. The setvalue
command specifies that in each datafield
with tag book
addressed with the inner <condition>
, the subfield
with parameter code="year"
should get the value 1900
. The <condition>
says that all datafield
elements should be considered which have the tag book
and where a subelement with code="year"
and the value 190
exists.
Data can be filtered with the <setvalue>
command. For example, if you want to remove the other_id
elements, their value can be overwritten with an empty string.
Note: An asterisk (*) is a placeholder for an arbitrary value. Regular expressions are not supported.
Data sets can also be supplemented with new properties. However, this works only conditionally, because only the data from the MARC file and from the <setvalue>
command can be accessed. For example, it is possible to assign new tags to records with certain contents:
Note: Please note that Goobi was originally designed for communication with PICA catalogs. Many other catalog systems are now also supported. However, these often require a very individual configuration, e.g. for communication via the Z39.50 protocol or using SRU.
Zuletzt aktualisiert