Koha/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_CF.xsd
Galen Charlton 9eb13aa3cd Bug 10592: fix MARC21 006/008 cataloging plugins
Move the XML and XSD data files so that access to them
(particularly the XML files) is not blocked by the Apache
configuration change introduced by the patch for bug 9812.

To test, after applying the patch.

[1] Open a MARC21 bibliographic record in the cataloging editor.
[2] Click on the plugin link for the 008 field.  Verify that
    that the form for all of the fixed field positions is displayed,
    and verify that you can change the type of material.
[3] Repeat step 2 for the 006 field.
[4] Verify that there are no entries in the Apache error log that contain

client denied by server configuration: {...}/cataloguing/value_builder/marc21_field_008.xml

or

client denied by server configuration: {...}/cataloguing/value_builder/marc21_field_006.xml

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Also verified translation of those plugins still works correctly.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-07-22 14:00:23 +00:00

83 lines
2.7 KiB
XML

<?xml version="1.0"?>
<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">
<xs:annotation>
<xs:documentation>Control field plugin type of materials schema</xs:documentation>
</xs:annotation>
<xs:element name="Tagfield" type="TagfieldType" nillable="false">
<xs:annotation>
<xs:documentation>Element indicating the control field</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="TagfieldType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="Material" type="MaterialType"/>
</xs:sequence>
<xs:attribute name="tag" type="controltagDataType" use="required"/>
</xs:complexType>
<xs:simpleType name="controltagDataType">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xs:pattern value="00[1-9A-Za-z]{1}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="MaterialType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="name" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="Position" type="PositionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="idDataType" use="required"/>
</xs:complexType>
<xs:simpleType name="idDataType">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xs:enumeration value="BKS"/>
<xs:enumeration value="CF"/>
<xs:enumeration value="MP"/>
<xs:enumeration value="MU"/>
<xs:enumeration value="CR"/>
<xs:enumeration value="VM"/>
<xs:enumeration value="MX"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PositionType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="urltext" type="xs:string" minOccurs="0"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="Value" type="ValueType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="url" type="xs:anyURI"/>
<xs:attribute name="pos" type="posDataType" use="required"/>
</xs:complexType>
<xs:simpleType name="posDataType">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xs:pattern value="[0-9]+(-[0-9]+)?"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ValueType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="description" type="xs:string"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>