]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
283297e2868b8d6d2b181bc300e7c953a130f459
[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     
30     <!-- Term Information repeatable group -->
31     <xs:element name="orgTermGroupList" type="orgTermGroupList"/>
32
33     <xs:element name="mainBodyGroupList" type="mainBodyGroupList"/>
34     
35     <xs:element name="description" type="xs:string"/>
36     <xs:element name="foundingDate" type="xs:string"/>
37     <xs:element name="dissolutionDate" type="xs:string"/>
38     <xs:element name="foundingPlace" type="xs:string"/>
39     <xs:annotation>
40     
41         <xs:element name="groups">
42             <xs:complexType>
43                 <xs:sequence>
44                     <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
45                 </xs:sequence>
46             </xs:complexType>
47         </xs:element>
48     
49         <xs:element name="functions">
50             <xs:complexType>
51                 <xs:sequence>
52                     <xs:element name="function" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
53                 </xs:sequence>
54             </xs:complexType>
55         </xs:element>
56             
57         <xs:element name="contactNames">
58             <xs:complexType>
59                 <xs:sequence>
60                     <xs:element name="contactName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
61                 </xs:sequence>
62             </xs:complexType>
63         </xs:element>
64
65         <xs:element name="historyNotes" type="historyNotes"/>
66
67         <xs:complexType name="mainBodyGroupList">
68             <xs:sequence>
69                 <xs:element name="mainBodyGroup" type="mainBodyGroup" minOccurs="0" maxOccurs="unbounded"/>
70             </xs:sequence>
71         </xs:complexType>
72
73         <xs:complexType name="mainBodyGroup">
74             <xs:sequence>
75                 <xs:element name="longName" type="xs:string"/>
76                 <xs:element name="shortName" type="xs:string"/>
77                 <xs:element name="nameAdditions" type="xs:string"/>
78             </xs:sequence>
79         </xs:complexType>
80
81         <xs:complexType name="historyNotes">
82             <xs:sequence>
83                 <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
84             </xs:sequence>
85         </xs:complexType>
86     
87         <xs:complexType name="orgTermGroupList">
88             <xs:sequence>
89                 <xs:element name="orgTermGroup" type="orgTermGroup" minOccurs="0" maxOccurs="unbounded"/>
90             </xs:sequence>
91         </xs:complexType>
92
93         <xs:complexType name="orgTermGroup">
94             <xs:sequence>
95                 <!-- Common across all authority item terms -->
96                 <xs:element name="termDisplayName" type="xs:string"/>
97                 <xs:element name="termName" type="xs:string"/>
98                 <xs:element name="termType" type="xs:string"/>
99                 <xs:element name="termStatus" type="xs:string"/>
100                 <xs:element name="termQualifier" type="xs:string"/>
101                 <xs:element name="termLanguage" type="xs:string"/>
102                 <xs:element name="termPreferredForLanguage" type="xs:boolean"/>
103                 <xs:element name="termSource" type="xs:string"/>
104                 <xs:element name="termSourceDetail" type="xs:string"/>
105                 <xs:element name="termSourceUniqueID" type="xs:string"/>
106                 <!-- Specific to Organization terms -->
107             </xs:sequence>
108         </xs:complexType>
109     
110     </xs:schema>
111