Added OPAC XML XSD.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 25 Jan 2008 16:30:47 +0000 (16:30 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 25 Jan 2008 16:30:47 +0000 (16:30 +0000)
etc/Makefile.am
etc/opacxml.xsd [new file with mode: 0644]

index d2febf7..f07489d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.am,v 1.5 2007-02-07 13:36:58 adam Exp $
+# $Id: Makefile.am,v 1.6 2008-01-25 16:30:47 adam Exp $
 
 etcdatadir = $(pkgdatadir)/etc
 etcdata_DATA =  \
@@ -9,7 +9,8 @@ etcdata_DATA =  \
  MARC21slim2DC.xsl \
  MARC21slim2MODS.xsl \
  MARC21slim2RDFDC.xsl \
- MARC21slimUtils.xsl
+ MARC21slimUtils.xsl \
+ opacxml.xsd
 
 EXTRA_DIST = $(etcdata_DATA) debian.init.d
 
diff --git a/etc/opacxml.xsd b/etc/opacxml.xsd
new file mode 100644 (file)
index 0000000..1400dae
--- /dev/null
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- OPAC XML. This is the output of yaz_display_OPAC -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:element name="opacRecord">
+    <xs:complexType>
+      <xs:sequence>
+       <xs:element name="bibliographicRecord">
+         
+       </xs:element>
+       <xs:element name="holdings">
+         <xs:complexType>
+           <xs:sequence>
+             <xs:element maxOccurs="unbounded" minOccurs="0" ref="holding"/>
+           </xs:sequence>
+         </xs:complexType>
+       </xs:element>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  
+  <xs:element name="holding">
+    <xs:complexType>
+      <xs:sequence>
+       <xs:element name="typeOfRecord" minOccurs="0" type="xs:string"/>
+       <xs:element name="encodingLevel" minOccurs="0" type="xs:string"/>
+       <xs:element name="format" minOccurs="0" type="xs:string"/>
+       <xs:element name="receiptAcqStatus" minOccurs="0" type="xs:string"/>
+       <xs:element name="generalRetention" minOccurs="0" type="xs:string"/>
+       
+       <xs:element name="completeness" minOccurs="0" type="xs:string"/>
+       <xs:element name="dateOfReport" minOccurs="0" type="xs:string"/>
+       <xs:element name="nucCode" minOccurs="0" type="xs:string"/>
+       <xs:element name="localLocation" minOccurs="0" type="xs:string"/>
+       <xs:element name="shelvingLocation" minOccurs="0" type="xs:string"/>
+       <xs:element name="callNumber" minOccurs="0" type="xs:string"/>
+       <xs:element name="shelvingData" minOccurs="0" type="xs:string"/>
+       <xs:element name="copyNumber" minOccurs="0" type="xs:string"/>
+       <xs:element name="publicNote" minOccurs="0" type="xs:string"/>
+       <xs:element name="reproductionNote" minOccurs="0" type="xs:string"/>
+       <xs:element name="termsUseRepro" minOccurs="0" type="xs:string"/>
+       <xs:element name="enumAndChron" minOccurs="0" type="xs:string"/>
+       <xs:element name="volumes" minOccurs="0">
+         <xs:complexType>
+           <xs:sequence>
+             <xs:element maxOccurs="unbounded" minOccurs="0" ref="volume"/>
+           </xs:sequence>
+         </xs:complexType>
+       </xs:element>
+       <xs:element name="circulations" minOccurs="0">
+         <xs:complexType>
+           <xs:sequence>
+             <xs:element maxOccurs="unbounded" minOccurs="0" ref="circulation"/>
+           </xs:sequence>
+         </xs:complexType>
+       </xs:element>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name="volume">
+    <xs:complexType>
+      <xs:sequence>
+       <xs:element name="enumeration" minOccurs="0" type="xs:string"/>
+       <xs:element name="chronology" minOccurs="0" type="xs:string"/>
+       <xs:element name="enumAndChron" minOccurs="0" type="xs:string"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name="circulation">
+    <xs:complexType>
+      <xs:sequence>
+       <xs:element name="availableNow">
+         <xs:complexType>
+         <xs:attribute name="value" use="required" type="xs:string"/>
+         </xs:complexType>
+       </xs:element>
+       <xs:element name="availabilityDate" minOccurs="0" type="xs:string"/>
+       <xs:element name="availableThru" minOccurs="0" type="xs:string"/>
+       <xs:element name="restrictions" minOccurs="0" type="xs:string"/>
+       <xs:element name="itemId" minOccurs="0" type="xs:string"/>
+       <xs:element name="renewable">
+         <xs:complexType>
+           <xs:attribute name="value" use="required" type="xs:string"/>
+       </xs:complexType>
+       </xs:element>
+       <xs:element name="onHold">
+         <xs:complexType>
+           <xs:attribute name="value" use="required" type="xs:string"/>
+         </xs:complexType>
+       </xs:element>
+       <xs:element name="enumAndChron" minOccurs="0"/>
+       <xs:element name="midspine" minOccurs="0"/>
+       <xs:element name="temporaryLocation" minOccurs="0"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+</xs:schema>