]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
7e069a9ef630813ee150f17c06b71ed7ffaef2dc
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
2 \r
3 <!--\r
4     Acquisition schema (XSD)\r
5     \r
6     Entity  : Acquisition\r
7     Part    : Common\r
8     Used for: Nuxeo EP core document type\r
9 \r
10     $LastChangedRevision$\r
11     $LastChangedDate$\r
12 -->\r
13 \r
14 <xs:schema \r
15     xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
16     xmlns:ns="http://collectionspace.org/acquisition/"\r
17     xmlns="http://collectionspace.org/acquisition/"\r
18     targetNamespace="http://collectionspace.org/acquisition/"\r
19     version="0.1">\r
20     \r
21     <!-- See http://wiki.collectionspace.org/display/collectionspace/Acquisition+Schema -->\r
22 \r
23     <!--  Object Entry Information Group -->\r
24     <xs:element name="accessionDateGroup" type="structuredDateGroup"/>\r
25     <xs:element name="acquisitionAuthorizer" type="xs:string"/>\r
26     <xs:element name="acquisitionAuthorizerDate" type="xs:date"/>\r
27     <xs:element name="acquisitionDateGroupList">\r
28         <xs:complexType>\r
29             <xs:sequence>\r
30                 <xs:element name="acquisitionDateGroup" type="structuredDateGroup" minOccurs="0" maxOccurs="unbounded"/>\r
31             </xs:sequence>\r
32         </xs:complexType>\r
33     </xs:element>\r
34     \r
35     <xs:element name="acquisitionFundingList" type="acquisitionFundingList"/>\r
36     <xs:element name="acquisitionMethod" type="xs:string"/>\r
37     <xs:element name="acquisitionNote" type="xs:string"/>\r
38     <xs:element name="acquisitionProvisos" type="xs:string"/>\r
39     <xs:element name="acquisitionReason" type="xs:string"/>\r
40     <xs:element name="acquisitionReferenceNumber" type="xs:string"/>\r
41     <!-- FIXME [1.0 alpha] Make owner a repeatable scalar field. DONE -->\r
42     <xs:element name="owners">\r
43         <xs:complexType>\r
44             <xs:sequence>\r
45                 <xs:element name="owner" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>\r
46             </xs:sequence>\r
47         </xs:complexType>\r
48     </xs:element>\r
49     <xs:element name="acquisitionSources">\r
50         <xs:complexType>\r
51             <xs:sequence>\r
52                 <xs:element name="acquisitionSource" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>\r
53             </xs:sequence>\r
54         </xs:complexType>\r
55     </xs:element>\r
56     <xs:element name="groupPurchasePriceCurrency" type="xs:string"/>\r
57     <xs:element name="groupPurchasePriceValue" type="xs:decimal"/>\r
58     <xs:element name="objectOfferPriceCurrency" type="xs:string"/>\r
59     <xs:element name="objectOfferPriceValue" type="xs:decimal"/>\r
60     <xs:element name="objectPurchaseOfferPriceCurrency" type="xs:string"/>\r
61     <xs:element name="objectPurchaseOfferPriceValue" type="xs:decimal"/>\r
62     <xs:element name="objectPurchasePriceCurrency" type="xs:string"/>\r
63     <xs:element name="objectPurchasePriceValue" type="xs:decimal"/>\r
64     <xs:element name="originalObjectPurchasePriceCurrency" type="xs:string"/>\r
65     <xs:element name="originalObjectPurchasePriceValue" type="xs:decimal"/>\r
66     <xs:element name="transferOfTitleNumber" type="xs:string"/>\r
67     <xs:element name="creditLine" type="xs:string"/>\r
68 \r
69     <!-- Object Collection Information Group -->\r
70 \r
71     <!-- FIXME [1.0 alpha] Make fieldCollectionEventName a repeatable scalar field. DONE -->\r
72     <xs:element name="fieldCollectionEventNames">\r
73         <xs:complexType>\r
74             <xs:sequence>\r
75                 <xs:element name="fieldCollectionEventName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>\r
76             </xs:sequence>\r
77         </xs:complexType>\r
78     </xs:element>\r
79 \r
80     <xs:complexType name="acquisitionFundingList">\r
81         <xs:sequence>\r
82             <xs:element name="acquisitionFunding" type="acquisitionFunding" minOccurs="0"\r
83                 maxOccurs="unbounded"/>\r
84         </xs:sequence>\r
85     </xs:complexType>\r
86 \r
87     <xs:complexType name="acquisitionFunding">\r
88         <xs:sequence>\r
89                 <xs:element name="acquisitionFundingCurrency" type="xs:string"/>\r
90                 <xs:element name="acquisitionFundingValue" type="xs:decimal"/>\r
91                 <xs:element name="acquisitionFundingSource" type="xs:string"/>\r
92                 <xs:element name="acquisitionFundingSourceProvisos" type="xs:string"/>\r
93         </xs:sequence>\r
94     </xs:complexType>\r
95     \r
96     <!-- Before (re)using this generic complex type in any record type -->\r
97     <!-- other than CollectionObject, be sure to verify that Nuxeo handles -->\r
98     <!-- that correctly in its table creation/row linking. -->\r
99     <xs:complexType name="structuredDateGroup">\r
100         <xs:sequence>\r
101             <xs:element name="dateDisplayDate" type="xs:string"/>\r
102             <xs:element name="dateAssociation" type="xs:string"/>\r
103             <xs:element name="dateEarliestSingleYear" type="xs:integer"/>\r
104             <xs:element name="dateEarliestSingleMonth" type="xs:integer"/>\r
105             <xs:element name="dateEarliestSingleDay" type="xs:integer"/>\r
106             <xs:element name="dateEarliestSingleEra" type="xs:string"/>\r
107             <xs:element name="dateEarliestSingleCertainty" type="xs:string"/>\r
108             <xs:element name="dateEarliestSingleQualifier" type="xs:string"/>\r
109             <xs:element name="dateEarliestSingleQualifierValue" type="xs:integer"/>\r
110             <xs:element name="dateEarliestSingleQualifierUnit" type="xs:string"/>\r
111             <xs:element name="dateLatestYear" type="xs:integer"/>\r
112             <xs:element name="dateLatestMonth" type="xs:integer"/>\r
113             <xs:element name="dateLatestDay" type="xs:integer"/>\r
114             <xs:element name="dateLatestEra" type="xs:string"/>\r
115             <xs:element name="dateLatestCertainty" type="xs:string"/>\r
116             <xs:element name="dateLatestQualifier" type="xs:string"/>\r
117             <xs:element name="dateLatestQualifierValue" type="xs:integer"/>\r
118             <xs:element name="dateLatestQualifierUnit" type="xs:string"/>\r
119             <xs:element name="datePeriod" type="xs:string"/>\r
120             <xs:element name="dateNote" type="xs:string"/>\r
121             <xs:element name="dateEarliestScalarValue" type="xs:date"/>\r
122             <xs:element name="dateLatestScalarValue" type="xs:date"/>\r
123             <xs:element name="scalarValuesComputed" type="xs:boolean"/>\r
124         </xs:sequence>\r
125     </xs:complexType>\r
126 \r
127 </xs:schema>\r