]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5120,CSPACE-4685: Updated Organization schema with repeatable term info group...
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 4 May 2012 03:06:41 +0000 (20:06 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 4 May 2012 03:06:41 +0000 (20:06 -0700)
services/organization/3rdparty/nuxeo-platform-cs-organization/src/main/resources/schemas/organizations_common.xsd
services/organization/jaxb/src/main/resources/organization_common.xsd
services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/schemas/persons_common.xsd

index b02a176754978e03061d337c6e2c6207bca7df71..283297e2868b8d6d2b181bc300e7c953a130f459 100644 (file)
@@ -17,7 +17,7 @@
     xmlns="http://collectionspace.org/services/organization"
     targetNamespace="http://collectionspace.org/services/organization"
     version="0.1"
-    >
+>
     <!-- See http://wiki.collectionspace.org/display/collectionspace/Name+Authority+Schema -->
 <!-- See http://wiki.collectionspace.org/display/collectionspace/Organization+Service+Home -->    
 
     <xs:element name="inAuthority" type="xs:string" />
     <xs:element name="shortIdentifier" type="xs:string"/>
     <xs:element name="refName" type="xs:string"/>
-    <xs:element name="termStatus" type="xs:string"/>
-    <xs:element name="displayName" type="xs:string"/>
-    <xs:element name="displayNameComputed" type="xs:boolean"/>
-    <xs:element name="shortDisplayName" type="xs:string"/>
-    <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
+    
+    <!-- Term Information repeatable group -->
+    <xs:element name="orgTermGroupList" type="orgTermGroupList"/>
+
     <xs:element name="mainBodyGroupList" type="mainBodyGroupList"/>
-    <xs:element name="source" type="xs:string"/>
-    <xs:element name="sourcePage" type="xs:string"/>
+    
     <xs:element name="description" type="xs:string"/>
+    <xs:element name="foundingDate" type="xs:string"/>
+    <xs:element name="dissolutionDate" type="xs:string"/>
+    <xs:element name="foundingPlace" type="xs:string"/>
+    <xs:annotation>
+    
+        <xs:element name="groups">
+            <xs:complexType>
+                <xs:sequence>
+                    <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                </xs:sequence>
+            </xs:complexType>
+        </xs:element>
+    
+        <xs:element name="functions">
+            <xs:complexType>
+                <xs:sequence>
+                    <xs:element name="function" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                </xs:sequence>
+            </xs:complexType>
+        </xs:element>
+            
+        <xs:element name="contactNames">
+            <xs:complexType>
+                <xs:sequence>
+                    <xs:element name="contactName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                </xs:sequence>
+            </xs:complexType>
+        </xs:element>
 
-    <xs:element name="contactNames">
-        <xs:complexType>
+        <xs:element name="historyNotes" type="historyNotes"/>
+
+        <xs:complexType name="mainBodyGroupList">
             <xs:sequence>
-                <xs:element name="contactName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                <xs:element name="mainBodyGroup" type="mainBodyGroup" minOccurs="0" maxOccurs="unbounded"/>
             </xs:sequence>
         </xs:complexType>
-    </xs:element>
-    <xs:element name="foundingDate" type="xs:string"/>
-    <xs:element name="dissolutionDate" type="xs:string"/>
-    <xs:element name="foundingPlace" type="xs:string"/>
-    <xs:element name="groups">
-        <xs:complexType>
+
+        <xs:complexType name="mainBodyGroup">
             <xs:sequence>
-                <xs:element name="group" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                <xs:element name="longName" type="xs:string"/>
+                <xs:element name="shortName" type="xs:string"/>
+                <xs:element name="nameAdditions" type="xs:string"/>
             </xs:sequence>
         </xs:complexType>
-    </xs:element>
-    <xs:element name="functions">
-        <xs:complexType>
+
+        <xs:complexType name="historyNotes">
             <xs:sequence>
-                <xs:element name="function" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
             </xs:sequence>
         </xs:complexType>
-    </xs:element>
-    <xs:element name="subBodies">
-        <xs:complexType>
+    
+        <xs:complexType name="orgTermGroupList">
             <xs:sequence>
-                <xs:element name="subBody" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+                <xs:element name="orgTermGroup" type="orgTermGroup" minOccurs="0" maxOccurs="unbounded"/>
             </xs:sequence>
         </xs:complexType>
-    </xs:element>
-    <xs:element name="historyNotes" type="historyNotes"/>
-
-    <xs:complexType name="mainBodyGroupList">
-        <xs:sequence>
-            <xs:element name="mainBodyGroup" type="mainBodyGroup" minOccurs="0" maxOccurs="unbounded"/>
-        </xs:sequence>
-    </xs:complexType>
-
-    <xs:complexType name="mainBodyGroup">
-        <xs:sequence>
-            <xs:element name="longName" type="xs:string"/>
-            <xs:element name="shortName" type="xs:string"/>
-            <xs:element name="nameAdditions" type="xs:string"/>
-        </xs:sequence>
-    </xs:complexType>
 
-    <xs:complexType name="historyNotes">
-        <xs:sequence>
-            <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
-        </xs:sequence>
-    </xs:complexType>
-
-</xs:schema>
+        <xs:complexType name="orgTermGroup">
+            <xs:sequence>
+                <!-- Common across all authority item terms -->
+                <xs:element name="termDisplayName" type="xs:string"/>
+                <xs:element name="termName" type="xs:string"/>
+                <xs:element name="termType" type="xs:string"/>
+                <xs:element name="termStatus" type="xs:string"/>
+                <xs:element name="termQualifier" type="xs:string"/>
+                <xs:element name="termLanguage" type="xs:string"/>
+                <xs:element name="termPreferredForLanguage" type="xs:boolean"/>
+                <xs:element name="termSource" type="xs:string"/>
+                <xs:element name="termSourceDetail" type="xs:string"/>
+                <xs:element name="termSourceUniqueID" type="xs:string"/>
+                <!-- Specific to Organization terms -->
+            </xs:sequence>
+        </xs:complexType>
+    
+    </xs:schema>
 
index 946afd0eb3307141b514741f1a8c242cd8a79ed2..905b05d124b0175245d96e383e81dadfd6daab95 100644 (file)
                 <xs:element name="inAuthority" type="xs:string" />
                 <xs:element name="shortIdentifier" type="xs:string"/>
                 <xs:element name="refName" type="xs:string"/>
-                <xs:element name="termStatus" type="xs:string"/>
-                <xs:element name="displayName" type="xs:string"/>
-                <xs:element name="displayNameComputed" type="xs:boolean"/>
-                <xs:element name="shortDisplayName" type="xs:string"/>
-                <xs:element name="shortDisplayNameComputed" type="xs:boolean"/>
-                <xs:element name="source" type="xs:string"/>
-                <xs:element name="sourcePage" type="xs:string"/>
-                <xs:element name="description" type="xs:string"/>
+                
+                <!-- Term Information repeatable group -->
+                <xs:element name="orgTermGroupList" type="orgTermGroupList"/>
+                
                 <xs:element name="mainBodyGroupList" type="mainBodyGroupList"/>
-                <xs:element name="contactNames" type="contactNameList"/>
+                
+                <xs:element name="description" type="xs:string"/>
                 <xs:element name="foundingDate" type="xs:string"/>
                 <xs:element name="dissolutionDate" type="xs:string"/>
                 <xs:element name="foundingPlace" type="xs:string"/>
+                
                 <xs:element name="groups" type="groupList"/>
                 <xs:element name="functions" type="functionList"/>
-                <xs:element name="subBodies" type="subBodyList"/>
+                <xs:element name="contactNames" type="contactNameList"/>
                 <xs:element name="historyNotes" type="historyNoteList"/>
             </xs:sequence>
         </xs:complexType>
@@ -57,7 +55,7 @@
             <xs:element name="nameAdditions" type="xs:string"/>
         </xs:sequence>
     </xs:complexType>
-
+    
     <xs:complexType name="contactNameList">
         <xs:sequence>
             <xs:element name="contactName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
     </xs:complexType>
 
-    <xs:complexType name="subBodyList">
+    <xs:complexType name="historyNoteList">
         <xs:sequence>
-            <xs:element name="subBody" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+            <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
+    
+    <xs:complexType name="orgTermGroupList">
+        <xs:sequence>
+            <xs:element name="orgTermGroup" type="orgTermGroup" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
     </xs:complexType>
 
-    <xs:complexType name="historyNoteList">
+    <xs:complexType name="orgTermGroup">
         <xs:sequence>
-            <xs:element name="historyNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+            <!-- Common across all authority item terms -->
+            <xs:element name="termDisplayName" type="xs:string"/>
+            <xs:element name="termName" type="xs:string"/>
+            <xs:element name="termType" type="xs:string"/>
+            <xs:element name="termStatus" type="xs:string"/>
+            <xs:element name="termQualifier" type="xs:string"/>
+            <xs:element name="termLanguage" type="xs:string"/>
+            <xs:element name="termPreferredForLanguage" type="xs:boolean"/>
+            <xs:element name="termSource" type="xs:string"/>
+            <xs:element name="termSourceDetail" type="xs:string"/>
+            <xs:element name="termSourceUniqueID" type="xs:string"/>
+            <!-- Specific to Organization terms -->
         </xs:sequence>
     </xs:complexType>
 
index 45e5efd78caf3bf64dd63a3c37968ebf28de2fae..87179a5717a9380cff4e7fb8aacf88788984ce38 100644 (file)
@@ -93,7 +93,7 @@
             <xs:element name="initials" type="xs:string"/>
             <xs:element name="salutation" type="xs:string"/>
             <xs:element name="title" type="xs:string"/>
-            <xs:element name="nameAdditions" type="xs:string"/>F
+            <xs:element name="nameAdditions" type="xs:string"/>
         </xs:sequence>
     </xs:complexType>