Skip to content
Snippets Groups Projects
Commit a70f0ae2 authored by David Maus's avatar David Maus
Browse files

Regelsatz: Fehler, wenn Metadatum nicht exportiert

parent 986bcded
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,16 @@ Preferences = ...@@ -18,6 +18,16 @@ Preferences =
} }
MetadataTypeDef = MetadataTypeDef =
[
s:pattern [
s:rule [
context = "metadata[parent::DocStrctType]" s:assert [
test = "/Preferences/METS/Metadata/InternalName = ."
"Das Metadatum '" s:value-of [ select = "." ] "' wird nicht exportiert."
]
]
]
]
element MetadataType { element MetadataType {
attribute type { "person" | "identifier" }?, attribute type { "person" | "identifier" }?,
( (
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
<DocStrctType> <DocStrctType>
<metadata>is-defined</metadata> <metadata>is-defined</metadata>
</DocStrctType> </DocStrctType>
<METS>
<Metadata>
<InternalName>is-defined</InternalName>
</Metadata>
</METS>
</Preferences> </Preferences>
</context> </context>
<expect-not-assert/> <expect-not-assert/>
...@@ -42,6 +47,24 @@ ...@@ -42,6 +47,24 @@
<DocStrctType> <DocStrctType>
<metadata>is-not-defined</metadata> <metadata>is-not-defined</metadata>
</DocStrctType> </DocStrctType>
<METS>
<Metadata>
<InternalName>is-defined</InternalName>
</Metadata>
</METS>
</Preferences>
</context>
<expect-assert/>
</scenario>
<scenario label="Metadatum wird nicht exportiert">
<context>
<Preferences xmlns="">
<MetadataType>
<Name>is-defined</Name>
</MetadataType>
<DocStrctType>
<metadata>is-not-defined</metadata>
</DocStrctType>
</Preferences> </Preferences>
</context> </context>
<expect-assert/> <expect-assert/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment