summaryrefslogtreecommitdiff
path: root/data/domain/bibliography.osxml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-18 21:29:36 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-18 21:29:36 +0100
commit5dfa2b6cba3e31d18e2cc23f05d330e387fc1a29 (patch)
tree2f97711bd12bfdb35425c0ffaca5af6a231b8076 /data/domain/bibliography.osxml
parentf6d3495b681e19227a5ea9ec081d36644be55d68 (diff)
parent19e3e43e80e413d297ca8970d018eeda57ee65e1 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'data/domain/bibliography.osxml')
-rw-r--r--data/domain/bibliography.osxml33
1 files changed, 24 insertions, 9 deletions
diff --git a/data/domain/bibliography.osxml b/data/domain/bibliography.osxml
index 11e2606..5953e5f 100644
--- a/data/domain/bibliography.osxml
+++ b/data/domain/bibliography.osxml
@@ -12,16 +12,31 @@
<field name="bibliography" isSubtree="true"/>
</parentRef>
</struct>
-
<struct name="bibEntry">
- <primitive name="name" type="string" isSubtree="true"/>
- <primitive name="year" type="int" isSubtree="true"/>
- <primitive name="journal" type="string" isSubtree="true" optional="true"/>
- <primitive name="pages" type="cardinality" isSubtree="true" optional="true"/>
- <!-- Here a geographical enum or something would be more exact -->
- <primitive name="location" type="string" isSubtree="true" optional="true"/>
- <field name="authors" optional="true">
- <childRef ref="meta.author"/>
+ <field>
+ <childRef ref="meta.authors"/>
+ <childRef ref="title"/>
+ <childRef ref="year"/>
+ <childRef ref="journal"/>
+ <childRef ref="pages"/>
+ <childRef ref="location"/>
</field>
</struct>
+ <struct name="title" cardinality="{1}">
+ <primitive type="string"/>
+ </struct>
+ <struct name="year" cardinality="{1}">
+ <primitive type="int"/>
+ </struct>
+ <struct name="journal" cardinality="{0-1}">
+ <!-- here some kind of database reference would be better -->
+ <primitive type="string"/>
+ </struct>
+ <struct name="pages" cardinality="{0-1}">
+ <primitive type="cardinality"/>
+ </struct>
+ <struct name="location" cardinality="{0-1}">
+ <!-- here some kind of database reference would be better -->
+ <primitive type="string"/>
+ </struct>
</domain>