|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
<xsd:schema xmlns="http://www.islandora.ca" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.islandora.ca" elementFormDefault="qualified" > |
|
|
|
|
<xsd:schema xmlns="http://www.islandora.ca" xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|
|
|
|
targetNamespace="http://www.islandora.ca" elementFormDefault="qualified"> |
|
|
|
|
<xsd:annotation> |
|
|
|
|
<xsd:documentation xml:lang="en"> |
|
|
|
|
Islandora Content Model Schema |
|
|
|
@ -15,6 +16,14 @@
|
|
|
|
|
<xsd:element name="ingest_rules" type="ingest_rulesType"/> |
|
|
|
|
<xsd:element name="edit_metadata_method" type="edit_metadata_methodType" minOccurs="0"/> |
|
|
|
|
|
|
|
|
|
<xsd:element name="forms"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element maxOccurs="unbounded" minOccurs="1" name="form" type="formType" |
|
|
|
|
/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute name="name" type="xsd:normalizedString" use="required"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
@ -35,22 +44,22 @@
|
|
|
|
|
<xsd:attribute name="hide_file_chooser" type="xsd:boolean" default="false"/> |
|
|
|
|
<xsd:attribute name="redirect" type="xsd:boolean" default="true"/> |
|
|
|
|
|
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="form_builder_methodType"> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="form_builder_methodType"> |
|
|
|
|
<xsd:attribute name="file" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="module" type="xsd:normalizedString" default="fedora_repository"/> |
|
|
|
|
<xsd:attribute name="class" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="method" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="handler" type="xsd:normalizedString" use="required"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="edit_metadata_methodType"> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="edit_metadata_methodType"> |
|
|
|
|
<xsd:attribute name="file" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="module" type="xsd:normalizedString" default="fedora_repository"/> |
|
|
|
|
<xsd:attribute name="class" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="method" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="handler" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="dsid" type="xsd:normalizedString" use="required"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="form_elementsType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element name="element" type="elementType" minOccurs="0" maxOccurs="unbounded"/> |
|
|
|
@ -90,19 +99,21 @@
|
|
|
|
|
|
|
|
|
|
<xsd:complexType name="ruleType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element name="applies_to" type="xsd:normalizedString" minOccurs="1" maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="applies_to" type="xsd:normalizedString" minOccurs="1" |
|
|
|
|
maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="ingest_methods" type="ingest_methodsType" minOccurs="0"/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
|
|
|
|
|
<xsd:complexType name="ingest_methodsType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element name="ingest_method" type="ingest_methodType" minOccurs="1" maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="ingest_method" type="ingest_methodType" minOccurs="1" |
|
|
|
|
maxOccurs="unbounded"/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="ingest_methodType"> |
|
|
|
|
<xsd:all> |
|
|
|
|
<xsd:element name="parameters" type="parametersType" minOccurs="0" /> |
|
|
|
|
<xsd:element name="parameters" type="parametersType" minOccurs="0"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
|
|
|
|
|
<xsd:attribute name="file" type="xsd:normalizedString" use="required"/> |
|
|
|
@ -115,14 +126,17 @@
|
|
|
|
|
|
|
|
|
|
<xsd:complexType name="datastreamsType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element name="datastream" type="datastreamType" minOccurs="1" maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="datastream" type="datastreamType" minOccurs="1" maxOccurs="unbounded" |
|
|
|
|
/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
|
|
|
|
|
<xsd:complexType name="datastreamType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element name="display_method" type="display_methodType" minOccurs="0" maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="add_datastream_method" type="add_datastream_methodType" minOccurs="0" maxOccurs="1"/> |
|
|
|
|
<xsd:element name="display_method" type="display_methodType" minOccurs="0" |
|
|
|
|
maxOccurs="unbounded"/> |
|
|
|
|
<xsd:element name="add_datastream_method" type="add_datastream_methodType" minOccurs="0" |
|
|
|
|
maxOccurs="1"/> |
|
|
|
|
|
|
|
|
|
</xsd:sequence> |
|
|
|
|
<xsd:attribute name="dsid" type="xsd:normalizedString" use="required"/> |
|
|
|
@ -131,7 +145,7 @@
|
|
|
|
|
|
|
|
|
|
<xsd:complexType name="add_datastream_methodType"> |
|
|
|
|
<xsd:all> |
|
|
|
|
<xsd:element name="parameters" type="parametersType" minOccurs="0" /> |
|
|
|
|
<xsd:element name="parameters" type="parametersType" minOccurs="0"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute name="file" type="xsd:normalizedString" use="required"/> |
|
|
|
|
<xsd:attribute name="module" type="xsd:normalizedString" default="fedora_repository"/> |
|
|
|
@ -164,4 +178,179 @@
|
|
|
|
|
</xsd:complexContent> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
|
|
|
|
|
<xsd:complexType name="formType"> |
|
|
|
|
<xsd:complexContent> |
|
|
|
|
<xsd:extension base="formElementType"> |
|
|
|
|
<xsd:attribute name="name" type="xsd:normalizedString" use="required"/> |
|
|
|
|
</xsd:extension> |
|
|
|
|
</xsd:complexContent> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="formElementType"> |
|
|
|
|
<xsd:choice maxOccurs="unbounded" minOccurs="0"> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="fieldset"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element default="true" minOccurs="0" name="collapsible" |
|
|
|
|
type="xsd:boolean"/> |
|
|
|
|
<xsd:element default="false" minOccurs="0" name="collapsed" |
|
|
|
|
type="xsd:boolean"/> |
|
|
|
|
<xsd:element name="content" type="formElementType"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element name="textfield"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="element_validate" |
|
|
|
|
type="formControlElementValidateType"/> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="textarea"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="select"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element name="options" type="formControlOptionsType"/> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="list"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="filechooser"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="datepicker"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="required" type="xsd:boolean"/> |
|
|
|
|
<xsd:element minOccurs="0" name="default_value" type="xsd:normalizedString" |
|
|
|
|
/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="tabpanel"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element name="content" type="formElementType"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element name="checkbox"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all maxOccurs="1" minOccurs="1"> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="0" name="element_validate" |
|
|
|
|
type="formControlElementValidateType"/> |
|
|
|
|
<xsd:element name="return_value" type="xsd:normalizedString"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="hidden"> |
|
|
|
|
<xsd:complexType> |
|
|
|
|
<xsd:all> |
|
|
|
|
<xsd:element name="title" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element minOccurs="0" name="description" type="xsd:normalizedString"/> |
|
|
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="xpath" |
|
|
|
|
type="formControlXPathType"> </xsd:element> |
|
|
|
|
<xsd:element minOccurs="1" name="value" type="xsd:normalizedString"/> |
|
|
|
|
</xsd:all> |
|
|
|
|
<xsd:attribute default="false" name="force_create" type="xsd:boolean"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:element> |
|
|
|
|
</xsd:choice> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="formControlXPathType"> |
|
|
|
|
<xsd:simpleContent> |
|
|
|
|
<xsd:extension base="xsd:normalizedString"> |
|
|
|
|
<xsd:attribute name="full_path" type="xsd:boolean"/> |
|
|
|
|
</xsd:extension> |
|
|
|
|
</xsd:simpleContent> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="formControlElementValidateType"> |
|
|
|
|
<xsd:complexContent> |
|
|
|
|
<xsd:extension base="array"/> |
|
|
|
|
</xsd:complexContent> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="array"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element maxOccurs="unbounded" name="item" type="xsd:normalizedString"/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
<xsd:complexType name="formControlOptionsType"> |
|
|
|
|
<xsd:sequence> |
|
|
|
|
<xsd:element maxOccurs="unbounded" name="option" type="xsd:normalizedString"/> |
|
|
|
|
</xsd:sequence> |
|
|
|
|
<xsd:attribute name="ignoreFirstOption" type="xsd:boolean" use="required"/> |
|
|
|
|
</xsd:complexType> |
|
|
|
|
</xsd:schema> |
|
|
|
|