Skip to content

Commit

Permalink
Add missing filterable attribute and unify the xsd files
Browse files Browse the repository at this point in the history
  • Loading branch information
henning-gerhardt committed Mar 20, 2024
1 parent 6cbc005 commit e74b4cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Kitodo-DataEditor/src/test/resources/ruleset.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
URI; if the type is specified, this applies. If a namespace has been specified, Production looks for an
XML file in the same directory whose file name is the same as the last segment of the namespace URI
and, if it finds it, makes the namespace elements available as a selection list.

The attribute "minDigits" can be used with type="integer" to define a minimum number of digits, which
will save the value with leading zeroes, if it has less digits.
</xs:documentation>
Expand Down Expand Up @@ -273,8 +273,12 @@
<xs:annotation>
<xs:documentation xml:lang="en">
The attribute "reimport" indicates how the metadata entry should behave when imported repeatedly:

'add' adds the newly imported metadata entry to the existing entries.

'replace' replaces an existing metadata entry with the new value. (This is the default case.)
Note that metadata, for which there is no value, is kept and not deleted.

'keep' keeps the first existing value and discards the additionally imported value.
</xs:documentation>
</xs:annotation>
Expand Down Expand Up @@ -362,6 +366,7 @@
<xs:attribute type="xs:boolean" name="alwaysShowing" default="false"/>
<xs:attribute type="xs:boolean" name="editable" default="true"/>
<xs:attribute type="xs:boolean" name="excluded" default="false"/>
<xs:attribute type="xs:boolean" name="filterable" default="false"/>
<xs:attribute type="xs:boolean" name="multiline" default="false"/>
<xs:attribute type="ruleset:Reimport" name="reimport" default="replace"/>
</xs:complexType>
Expand Down
3 changes: 2 additions & 1 deletion Kitodo/rulesets/ruleset.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
URI; if the type is specified, this applies. If a namespace has been specified, Production looks for an
XML file in the same directory whose file name is the same as the last segment of the namespace URI
and, if it finds it, makes the namespace elements available as a selection list.

The attribute "minDigits" can be used with type="integer" to define a minimum number of digits, which
will save the value with leading zeroes, if it has less digits.
</xs:documentation>
Expand Down Expand Up @@ -366,6 +366,7 @@
<xs:attribute type="xs:boolean" name="alwaysShowing" default="false"/>
<xs:attribute type="xs:boolean" name="editable" default="true"/>
<xs:attribute type="xs:boolean" name="excluded" default="false"/>
<xs:attribute type="xs:boolean" name="filterable" default="false"/>
<xs:attribute type="xs:boolean" name="multiline" default="false"/>
<xs:attribute type="ruleset:Reimport" name="reimport" default="replace"/>
</xs:complexType>
Expand Down

0 comments on commit e74b4cc

Please sign in to comment.