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