mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-briefe.git
synced 2025-10-29 17:15:31 +00:00
Merge branch 'main' of https://github.com/Theodor-Springmann-Stiftung/lenz-briefe
This commit is contained in:
@@ -5198,7 +5198,8 @@
|
|||||||
</sent>
|
</sent>
|
||||||
<received>
|
<received>
|
||||||
<person ref="4" />
|
<person ref="4" />
|
||||||
<person ref="5" /><!-- Ist Dorothea Lenz die in diesem Brief angesprochene Schwester von Lenz? -->
|
<person ref="5" /><!-- Ist Dorothea Lenz die in diesem Brief angesprochene Schwester von
|
||||||
|
Lenz? -->
|
||||||
</received>
|
</received>
|
||||||
<hasOriginal value="true" />
|
<hasOriginal value="true" />
|
||||||
<isProofread value="true" />
|
<isProofread value="true" />
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
<xsd:include schemaLocation="common.xsd"></xsd:include>
|
<xsd:include schemaLocation="common.xsd"></xsd:include>
|
||||||
|
|
||||||
<xsd:complexType name="actionattributes">
|
<xsd:complexType name="actionattributes">
|
||||||
<xsd:sequence>
|
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
<xsd:element name="date" type="lenz:date" minOccurs="0"
|
<xsd:element name="date" type="lenz:date" minOccurs="0"
|
||||||
maxOccurs="unbounded" />
|
maxOccurs="unbounded" />
|
||||||
<xsd:element name="location" type="lenz:ortref" minOccurs="0"
|
<xsd:element name="location" type="lenz:ortref" minOccurs="0"
|
||||||
maxOccurs="unbounded" />
|
maxOccurs="unbounded" />
|
||||||
<xsd:element name="person" type="lenz:personref" minOccurs="0"
|
<xsd:element name="person" type="lenz:personref" minOccurs="0"
|
||||||
maxOccurs="unbounded" />
|
maxOccurs="unbounded" />
|
||||||
</xsd:sequence>
|
</xsd:choice>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
|
|
||||||
<xsd:element name="opus">
|
<xsd:element name="opus">
|
||||||
|
|||||||
@@ -41,19 +41,19 @@ def get_person_def_ids(ref_root):
|
|||||||
If references.xml is un-namespaced, we can use a non-namespace XPath: //personDef
|
If references.xml is un-namespaced, we can use a non-namespace XPath: //personDef
|
||||||
Adjust if references.xml also has a namespace.
|
Adjust if references.xml also has a namespace.
|
||||||
"""
|
"""
|
||||||
return set(elem.get("index") for elem in ref_root.xpath("//personDef"))
|
return set(elem.get("index") for elem in ref_root.xpath("//lenz:personDef", namespaces=NAMESPACE_MAP))
|
||||||
|
|
||||||
def get_location_def_ids(ref_root):
|
def get_location_def_ids(ref_root):
|
||||||
"""
|
"""
|
||||||
Retrieve all 'index' attributes from <locationDef index="..."> in references.xml.
|
Retrieve all 'index' attributes from <locationDef index="..."> in references.xml.
|
||||||
"""
|
"""
|
||||||
return set(elem.get("index") for elem in ref_root.xpath("//locationDef"))
|
return set(elem.get("index") for elem in ref_root.xpath("//lenz:locationDef", namespaces=NAMESPACE_MAP))
|
||||||
|
|
||||||
def get_app_def_ids(ref_root):
|
def get_app_def_ids(ref_root):
|
||||||
"""
|
"""
|
||||||
Retrieve all 'index' attributes from <appDef index="..."> in references.xml.
|
Retrieve all 'index' attributes from <appDef index="..."> in references.xml.
|
||||||
"""
|
"""
|
||||||
return set(elem.get("index") for elem in ref_root.xpath("//appDef"))
|
return set(elem.get("index") for elem in ref_root.xpath("//lenz:appDef", namespaces=NAMESPACE_MAP))
|
||||||
|
|
||||||
def check_references(root, reference_data, filepath):
|
def check_references(root, reference_data, filepath):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user