Update doc/common
[yaz-moved-to-github.git] / etc / opacxml.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 OPAC XML. This is the XML that YAZ is using to represent Z39.50 OPAC
4 records.
5 -->
6 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
7   <xs:element name="opacRecord">
8     <xs:complexType>
9       <xs:sequence>
10         <xs:element name="bibliographicRecord">
11         </xs:element>
12         <xs:element name="holdings">
13           <xs:complexType>
14             <xs:sequence>
15               <xs:element maxOccurs="unbounded" minOccurs="0" ref="holding"/>
16             </xs:sequence>
17           </xs:complexType>
18         </xs:element>
19       </xs:sequence>
20     </xs:complexType>
21   </xs:element>
22
23   <xs:element name="holding">
24     <xs:complexType>
25       <xs:sequence>
26         <xs:element name="typeOfRecord" minOccurs="0" type="xs:string"/>
27         <xs:element name="encodingLevel" minOccurs="0" type="xs:string"/>
28         <xs:element name="format" minOccurs="0" type="xs:string"/>
29         <xs:element name="receiptAcqStatus" minOccurs="0" type="xs:string"/>
30         <xs:element name="generalRetention" minOccurs="0" type="xs:string"/>
31         <xs:element name="completeness" minOccurs="0" type="xs:string"/>
32         <xs:element name="dateOfReport" minOccurs="0" type="xs:string"/>
33         <xs:element name="nucCode" minOccurs="0" type="xs:string"/>
34         <xs:element name="localLocation" minOccurs="0" type="xs:string"/>
35         <xs:element name="shelvingLocation" minOccurs="0" type="xs:string"/>
36         <xs:element name="callNumber" minOccurs="0" type="xs:string"/>
37         <xs:element name="shelvingData" minOccurs="0" type="xs:string"/>
38         <xs:element name="copyNumber" minOccurs="0" type="xs:string"/>
39         <xs:element name="publicNote" minOccurs="0" type="xs:string"/>
40         <xs:element name="reproductionNote" minOccurs="0" type="xs:string"/>
41         <xs:element name="termsUseRepro" minOccurs="0" type="xs:string"/>
42         <xs:element name="enumAndChron" minOccurs="0" type="xs:string"/>
43         <xs:element name="volumes" minOccurs="0">
44           <xs:complexType>
45             <xs:sequence>
46               <xs:element maxOccurs="unbounded" minOccurs="0" ref="volume"/>
47             </xs:sequence>
48           </xs:complexType>
49         </xs:element>
50         <xs:element name="circulations" minOccurs="0">
51           <xs:complexType>
52             <xs:sequence>
53               <xs:element maxOccurs="unbounded" minOccurs="0" ref="circulation"/>
54             </xs:sequence>
55           </xs:complexType>
56         </xs:element>
57       </xs:sequence>
58     </xs:complexType>
59   </xs:element>
60
61   <xs:element name="volume">
62     <xs:complexType>
63       <xs:sequence>
64         <xs:element name="enumeration" minOccurs="0" type="xs:string"/>
65         <xs:element name="chronology" minOccurs="0" type="xs:string"/>
66         <xs:element name="enumAndChron" minOccurs="0" type="xs:string"/>
67       </xs:sequence>
68     </xs:complexType>
69   </xs:element>
70
71   <xs:element name="circulation">
72     <xs:complexType>
73       <xs:sequence>
74         <xs:element name="availableNow">
75           <xs:complexType>
76           <xs:attribute name="value" use="required" type="xs:string"/>
77           </xs:complexType>
78         </xs:element>
79         <xs:element name="availabilityDate" minOccurs="0" type="xs:string"/>
80         <xs:element name="availableThru" minOccurs="0" type="xs:string"/>
81         <xs:element name="restrictions" minOccurs="0" type="xs:string"/>
82         <xs:element name="itemId" minOccurs="0" type="xs:string"/>
83         <xs:element name="renewable">
84           <xs:complexType>
85             <xs:attribute name="value" use="required" type="xs:string"/>
86         </xs:complexType>
87         </xs:element>
88         <xs:element name="onHold">
89           <xs:complexType>
90             <xs:attribute name="value" use="required" type="xs:string"/>
91           </xs:complexType>
92         </xs:element>
93         <xs:element name="enumAndChron" minOccurs="0"/>
94         <xs:element name="midspine" minOccurs="0"/>
95         <xs:element name="temporaryLocation" minOccurs="0"/>
96       </xs:sequence>
97     </xs:complexType>
98   </xs:element>
99 </xs:schema>