6.13.1 Goobi workflow: Entering the instance

A new metadata ViewerInstance must be added to the rule set. This will also be added to DocStructs that have the CatalogIDDigital metadata configured as a mandatory metadata.

The relevant parts from the ruleset are:

/opt/digiverso/goobi/ruletset.xml
<MetadataType> <Name>ViewerInstance</Name>
<language name="de">Anzeige in</language>
<language name="en">Show in</language>
</MetadataType>
[...]
<metadata num="1o" DefaultDisplay="true">ViewerInstance</metadata>
[...]
<NamespaceDefinition>
<URI>https://intranda.com/MODS/</URI>
<prefix>intranda</prefix>
</NamespaceDefinition>
[...]
<Metadata>
<InternalName>ViewerInstance</InternalName>
<WriteXPath>./mods:mods/mods:extension/#intranda:viewerinstance</WriteXPath>
</Metadata>

In the configuration file goobi_metadataDisplayRules.xml a drop-down menu with the desired Goobi viewer instances is assigned:

/opt/digiverso/goobi/config/goobi_metadataDisplayRules.xml
<context projectName="*">
<select1 ref="ViewerInstance">
<item selected="true">
<label>Viewer 1</label>
<value>viewer1</value>
</item>
<item selected="false">
<label>Viewer 2</label>
<value>viewer2</value>
</item>
<item selected="false">
<label>Viewer 3</label>
<value>viewer3</value>
</item>
<item selected="false">
<label>Viewer 1 and Viewer 2</label>
<value>viewer1_and_viewer2</value>
</item>
<item selected="false">
<label>Viewer 1 and Viewer 3</label>
<value>viewer1_and_viewer3</value>
</item>
<item selected="false">
<label>Viewer 2 and Viewer 3</label>
<value>viewer2_and_viewer3</value>
</item>
<item selected="false">
<label>All instances</label>
<value>all</value>
</item>
</select1>
</context>