1.3 Subthemes
This section shows you how to use subthemes in the Goobi viewer.
Goobi workflow
A new metadata ViewerSubTheme
must be added to the ruleset. This is then also added to DocStructs
that have the CatalogIDDigital
metadata configured as a mandatory metadata.
The relevant parts from the ruleset are:
In the configuration file goobi_metadataDisplayRules.xml
a drop-down menu with the desired subtheme names is assigned:
Goobi viewer Indexer
The metadata viewerSubTheme
is written to a separate field within the Solr Index. The following field definition must be added to the configuration file:
Goobi viewer Core
The following adjustment must be made in the Goobi viewer Core to ensure correct evaluation:
Template
In the file template.htm
l the following block is added after the custom.css:
Each sub-theme has its own CSS file that contains its own CSS definitions for that sub-theme. The order in which they are included in the template.html
file can be used to overwrite any value of the global viewer.css
file or the theme specific custom.min.css
file with subtheme-specific values in this subtheme-specific file.
Last updated
Was this helpful?