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