Bug 11750: (QA follow-up) Remove unconditional warn
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / data / marc21_field_CF.xsd
1 <?xml version="1.0"?>
2
3 <!DOCTYPE stylesheet>
4
5 <xs:schema xmlns="http://koha-community.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://koha-community.org" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
6   <xs:annotation>
7     <xs:documentation>Control field plugin type of materials schema</xs:documentation>
8   </xs:annotation>
9
10
11   <xs:element name="Tagfield" type="TagfieldType" nillable="false">
12     <xs:annotation>
13       <xs:documentation>Element indicating the control field</xs:documentation>
14     </xs:annotation>
15   </xs:element>
16
17
18   <xs:complexType name="TagfieldType">
19     <xs:sequence minOccurs="1" maxOccurs="unbounded">
20       <xs:element name="Material" type="MaterialType"/>
21     </xs:sequence>
22     <xs:attribute name="tag" type="controltagDataType" use="required"/>
23   </xs:complexType>
24
25
26   <xs:simpleType name="controltagDataType">
27     <xs:restriction base="xs:string">
28       <xs:whiteSpace value="collapse"/>
29       <xs:pattern value="00[1-9A-Za-z]{1}"/>
30     </xs:restriction>
31   </xs:simpleType>
32
33
34   <xs:complexType name="MaterialType">
35     <xs:sequence minOccurs="1" maxOccurs="unbounded">
36       <xs:element name="name" type="xs:string"/>
37       <xs:element name="description" type="xs:string"/>
38       <xs:element name="Position" type="PositionType" minOccurs="0" maxOccurs="unbounded"/>
39     </xs:sequence>
40     <xs:attribute name="id" type="idDataType" use="required"/>
41   </xs:complexType>
42
43
44   <xs:simpleType name="idDataType">
45     <xs:restriction base="xs:string">
46       <xs:whiteSpace value="collapse"/>
47       <xs:enumeration value="BKS"/>
48       <xs:enumeration value="CF"/>
49       <xs:enumeration value="MP"/>
50       <xs:enumeration value="MU"/>
51       <xs:enumeration value="CR"/>
52       <xs:enumeration value="VM"/>
53       <xs:enumeration value="MX"/>
54     </xs:restriction>
55   </xs:simpleType>
56
57
58   <xs:complexType name="PositionType">
59     <xs:sequence minOccurs="0" maxOccurs="unbounded">
60       <xs:element name="urltext" type="xs:string" minOccurs="0"/>
61       <xs:element name="name" type="xs:string"/>
62       <xs:element name="description" type="xs:string"/>
63       <xs:element name="Value" type="ValueType" minOccurs="0" maxOccurs="unbounded"/>
64     </xs:sequence>
65     <xs:attribute name="url" type="xs:anyURI"/>
66     <xs:attribute name="pos" type="posDataType" use="required"/>
67   </xs:complexType>
68
69
70   <xs:simpleType name="posDataType">
71     <xs:restriction base="xs:string">
72       <xs:whiteSpace value="collapse"/>
73       <xs:pattern value="[0-9]+(-[0-9]+)?"/>
74     </xs:restriction>
75   </xs:simpleType>
76
77
78   <xs:complexType name="ValueType">
79     <xs:sequence minOccurs="0" maxOccurs="unbounded">
80       <xs:element name="description" type="xs:string"/>
81     </xs:sequence>
82     <xs:attribute name="code" type="xs:string" use="required"/>
83   </xs:complexType>
84
85
86 </xs:schema>