]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
34d78752a1695cf17372cf56c005949daadb0d8b
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
3 <!--
4     Organization schema (XSD)
5
6     Entity  : Organization
7     Part    : Common
8     Used for: Nuxeo EP core document type
9
10     $LastChangedRevision$
11     $LastChangedDate$
12 -->
13
14 <xs:schema 
15     xmlns:xs="http://www.w3.org/2001/XMLSchema"
16     xmlns:ns="http://collectionspace.org/services/organization"
17     xmlns="http://collectionspace.org/services/organization"
18     targetNamespace="http://collectionspace.org/services/organization"
19     version="0.1"
20     >
21     <!-- See http://wiki.collectionspace.org/display/collectionspace/Name+Authority+Schema -->
22 <!-- See http://wiki.collectionspace.org/display/collectionspace/Organization+Service+Home -->    
23
24     <!--  Organization Information Group -->
25     <!--  inAuthority is the csid of the owning OrgAuthority -->
26     <xs:element name="inAuthority" type="xs:string" />
27     <xs:element name="shortIdentifier" type="xs:string"/>
28     <xs:element name="refName" type="xs:string"/>
29     <xs:element name="termStatus" type="xs:string"/>
30     <xs:element name="displayName" type="xs:string"/>
31     <xs:element name="displayNameComputed" type="xs:boolean"/>
32     <xs:element name="shortDisplayName" type="xs:string"/>
33     <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
34     <xs:element name="mainBodyGroupList" type="mainBodyGroupList"/>
35     <xs:element name="source" type="xs:string"/>
36     <xs:element name="sourcePage" type="xs:string"/>
37     <xs:element name="description" type="xs:string"/>
38
39     <xs:element name="contactNames">
40         <xs:complexType>
41             <xs:sequence>
42                 <xs:element name="contactName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
43             </xs:sequence>
44         </xs:complexType>
45     </xs:element>
46     <xs:element name="foundingDate" type="structuredDateGroup"/>
47     <!-- <xs:element name="foundingDate" type="xs:string"/> -->
48     <xs:element name="dissolutionDate" type="structuredDateGroup"/>
49     <!-- <xs:element name="dissolutionDate" type="xs:string"/> -->
50     <xs:element name="foundingPlace" type="xs:string"/>
51     <xs:element name="groups">
52         <xs:complexType>
53             <xs:sequence>
54                 <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
55             </xs:sequence>
56         </xs:complexType>
57     </xs:element>
58     <xs:element name="functions">
59         <xs:complexType>
60             <xs:sequence>
61                 <xs:element name="function" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
62             </xs:sequence>
63         </xs:complexType>
64     </xs:element>
65     <xs:element name="subBodies">
66         <xs:complexType>
67             <xs:sequence>
68                 <xs:element name="subBody" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
69             </xs:sequence>
70         </xs:complexType>
71     </xs:element>
72     <xs:element name="historyNotes" type="historyNotes"/>
73
74     <xs:complexType name="mainBodyGroupList">
75         <xs:sequence>
76             <xs:element name="mainBodyGroup" type="mainBodyGroup" minOccurs="0" maxOccurs="unbounded"/>
77         </xs:sequence>
78     </xs:complexType>
79
80     <xs:complexType name="mainBodyGroup">
81         <xs:sequence>
82             <xs:element name="longName" type="xs:string"/>
83             <xs:element name="shortName" type="xs:string"/>
84             <xs:element name="nameAdditions" type="xs:string"/>
85         </xs:sequence>
86     </xs:complexType>
87
88     <xs:complexType name="historyNotes">
89         <xs:sequence>
90             <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
91         </xs:sequence>
92     </xs:complexType>
93     
94     <!-- Before (re)using this generic complex type in any record type -->
95     <!-- other than CollectionObject, be sure to verify that Nuxeo handles -->
96     <!-- that correctly in its table creation/row linking. -->
97     <xs:complexType name="structuredDateGroup">
98         <xs:sequence>
99             <xs:element name="dateDisplayDate" type="xs:string"/>
100             <xs:element name="dateAssociation" type="xs:string"/>
101             <xs:element name="dateEarliestSingleYear" type="xs:integer"/>
102             <xs:element name="dateEarliestSingleMonth" type="xs:integer"/>
103             <xs:element name="dateEarliestSingleDay" type="xs:integer"/>
104             <xs:element name="dateEarliestSingleEra" type="xs:string"/>
105             <xs:element name="dateEarliestSingleCertainty" type="xs:string"/>
106             <xs:element name="dateEarliestSingleQualifier" type="xs:string"/>
107             <xs:element name="dateEarliestSingleQualifierValue" type="xs:integer"/>
108             <xs:element name="dateEarliestSingleQualifierUnit" type="xs:string"/>
109             <xs:element name="dateLatestYear" type="xs:integer"/>
110             <xs:element name="dateLatestMonth" type="xs:integer"/>
111             <xs:element name="dateLatestDay" type="xs:integer"/>
112             <xs:element name="dateLatestEra" type="xs:string"/>
113             <xs:element name="dateLatestCertainty" type="xs:string"/>
114             <xs:element name="dateLatestQualifier" type="xs:string"/>
115             <xs:element name="dateLatestQualifierValue" type="xs:integer"/>
116             <xs:element name="dateLatestQualifierUnit" type="xs:string"/>
117             <xs:element name="datePeriod" type="xs:string"/>
118             <xs:element name="dateNote" type="xs:string"/>
119             <xs:element name="dateEarliestScalarValue" type="xs:date"/>
120             <xs:element name="dateLatestScalarValue" type="xs:date"/>
121             <xs:element name="scalarValuesComputed" type="xs:boolean"/>
122         </xs:sequence>
123     </xs:complexType>
124
125 </xs:schema>
126