diff options
Diffstat (limited to 'data/domain/bibliography.osxml')
-rw-r--r-- | data/domain/bibliography.osxml | 33 |
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> |