mirror of
https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
synced 2025-10-29 17:15:31 +00:00
Attribut für Org & erste Snippets
This commit is contained in:
63
.vscode/xml.code-snippets
vendored
Normal file
63
.vscode/xml.code-snippets
vendored
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
{
|
||||||
|
"Akteur": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "akteur",
|
||||||
|
"body": [
|
||||||
|
"<akteur id=\"${1:id}\">",
|
||||||
|
"\t<name>${2:Vollständiger Name}</name>",
|
||||||
|
"\t<lebensdaten>${3:Geburtsjahr}–${4:Sterbejahr}</lebensdaten>",
|
||||||
|
"\t<gnd>${5:GND-ID}</gnd>${6}",
|
||||||
|
"</akteur>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"Kategorie": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "kategorie",
|
||||||
|
"body": [
|
||||||
|
"<kategorie id=\"${1:id}\">",
|
||||||
|
"\t<name>${2:Vollständiger Name}</name>${3}",
|
||||||
|
"</kategorie>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"Ort": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "ort",
|
||||||
|
"body": [
|
||||||
|
"<ort id=\"${1:id}\">",
|
||||||
|
"\t<name>${2:Vollständiger Name}</name>",
|
||||||
|
"\t<geonames>${3:geonames-ID}</geonames>${4}",
|
||||||
|
"</ort>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"Werk": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "werk",
|
||||||
|
"body": [
|
||||||
|
"<werk id=\"${1:id}\">",
|
||||||
|
"\t<akteur ref=\"${2:id}\" />",
|
||||||
|
"\t<zitation>${3:Volltext-Zitat}</zitation>",
|
||||||
|
"\t<url address=\"${4:id}\" >${5:URL-Text}</url>${6}",
|
||||||
|
"</werk>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"Vermerk": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "vermerk",
|
||||||
|
"body": [
|
||||||
|
"<vermerk>${1:Text}</vermerk>",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"Anmerkung": {
|
||||||
|
"scope": "xml",
|
||||||
|
"prefix": "anmerkung",
|
||||||
|
"body": [
|
||||||
|
"<anmerkung>${1:Text}</anmerkung>",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
@@ -6,8 +6,7 @@
|
|||||||
<werk id="1">
|
<werk id="1">
|
||||||
mehrere oder auch gar keine Autoren sind erlaubt
|
mehrere oder auch gar keine Autoren sind erlaubt
|
||||||
<person ref="23" />
|
<person ref="23" />
|
||||||
<person ref="12">Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen
|
<person ref="12">Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen oä.)</autor>
|
||||||
oä.)</autor>
|
|
||||||
Jahr zur Filterung und Sortierung notwendig
|
Jahr zur Filterung und Sortierung notwendig
|
||||||
Zugelasssen sind die Attribute when, from, to, notBefore, notAfter
|
Zugelasssen sind die Attribute when, from, to, notBefore, notAfter
|
||||||
<datum when="1783"/>
|
<datum when="1783"/>
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
<xsd:documentation>Pflicht: Eindeutige ID des Ortes.</xsd:documentation>
|
<xsd:documentation>Pflicht: Eindeutige ID des Ortes.</xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
|
<xsd:attribute name="org" type="xsd:boolean" use="optional" default="false" >
|
||||||
|
<xsd:annotation>
|
||||||
|
<xsd:documentation>Optional: true, wenn es sich um eine Körperschaft handelt. Default: false</xsd:documentation>
|
||||||
|
</xsd:annotation>
|
||||||
|
</xsd:attribute>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
</xsd:sequence>
|
</xsd:sequence>
|
||||||
|
|||||||
Reference in New Issue
Block a user