Ruleset editor
Zuletzt aktualisiert
Zuletzt aktualisiert
This editor is used to directly edit the ruleset files of Goobi workflow directly from the user interface within the web browser.
The editor can be found in its own entry in the Administration
menu, from where it can be opened.
After opening, all Goobi ruleset files are listed on the left-hand side. These can be opened by clicking on the respective icon in order to edit them.
If you open a file, a text editor appears on the right-hand side in which the file can be edited. If you edit and save a file, a backup is automatically created in the defined backup directory.
According to the value set in the configuration file, a certain number of older backups are retained here before they are replaced by newer ones.
The file can also be validated by clicking the Validate
button. All listed checks will be performed during this process.
After modifying a file and clicking the Save
button, a confirmation message appears indicating the file was saved successfully.
If a file has been changed and an attempt is made to change to another file without saving it, the operator is asked how to proceed with the changes.
When the Validate
button is pressed, the following checks are performed.
Are all opening tags <>
properly closed? Are any invalid characters used? Are attributes placed in the wrong position?
Do all <MetadataType>
, <Group>
, <DocStrct>
, and export formats have a <Name>
element (or, for some export formats, an <InternalName>
element) and is its value not empty? (ValidateNames)
Is every value listed within a <language>
element non-empty and not composed solely of whitespace? (ValidateTranslations)
Does each <metadata>
and <group>
subelement of <DocStrctType>
have a valid value for the num attribute? Valid values are: 1o, *, 1m, and +. (ValidateCardinality)
Are all <MetadataType>
, <Group>
, and <DocStrctType>
elements defined only once? (ValidateDataDefinedMultipleTimes)
Are the same <metadata>
, <allowedChildType>
, or <group>
elements used multiple times within a <Group>
or <DocStrctType>
?
(ValidateDuplicatesInGroups and ValidateDuplicatesInDocStrct)
Have <DocStrctType>
elements with the attribute <topStruct="true">
been incorrectly used as <allowedChildType>
within other <DocStrctType>
elements? (ValidateTopstructs)
Is there a <metadata>
element used within <Group>
, <DocStrct>
, or in the export formats that has not been defined as a <MetadataType>
?(ValidateUsedButUndefinedData)
Is a <MetadataType>
element defined but not used in <Group>
, <DocStrct>
, or within export formats?(ValidateUnusedButDefinedData)
Is a <DocStrctType>
element defined but not used as an <allowedChildType>
in any other <DocStrctType>
? (ValidateUnusedButDefinedData)
Are <DocStrctType>
, <MetadataType>
, and <Group>
elements defined but not used in any export configuration? (ValidateDataNotMappedForExport)