<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 
2004/1/1: (RKW)

2004/02/11 CM
	1. Because index names can include spaces, I removed underscores from Taxonomic_Classification,
	Collection_Location and Physical_Piece_ID and added a space to CommonName.	
	2. Changed the order of the indexes in the schema to follow Indexes_and_Limit_options.doc
	3. changed ted:limitbyvalue to ted:dropDownLimit 
	4. Removed ~='?' notation from advancedsearchindex and browseindex
	5. Removed underscores from browse index keys
	6. Remove browsexpath - not needed anymore
	7. Removed date searching
	8. Changed number of sorts from 3 to 1.
	9. Removed underscores from sort indexes

2004/02/12/ CM
	1. Added ted:visibility="owner" to top level admin element. Removed it
	from admin complex type declaration.

2004/03/01: (RKW)
	1.	Added ted:labels to MczArtwork and MaterialsTechniques.
	2.	Corrected typo on otherItemIdentifier
	3.	Moved physicalPieceID to top of record
	4.	Restricted visibility of non-PublicNote and all xlink attributes.
	5.	Changed type from boolean to yes/no enumeration
	6.	Eliminated repositoryNumber element, and consequently also removed repository as a parent element, leaving repositoryName.
	7.	Revised ted:browseindex and ted:resultsdisplay to match revised spec.
	8.	Changed ted:sortIndex to use species rather than taxonomicClassification.

2004/03/02: (CM)
	1. Support definition is defined as a ref.
	2. Changed type to typeSpecimen in specimen and added ted:label=Type

2004/03/03/: (CM)
	1. Added ted:visibility="owner" to restrictedImage
	2. Updated materialsTechniques dropDownList
	3. Added ted:checkBoxLimit for digital image artwork/image
	4. Updated sortIndex to include Title and reordered the list. Set default sort to Physical Piece ID.
	5. Changed typeDate to specimenTypeDate and added ted:label "Type Date"
	6. Removed artworkNote and replaced it wil note

2004/03/04/: (CM)
	1. Changed typeSpecimen label to "Specimen Type"
	2. Changed note label to "Artwork Note"
  -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:ted="http://hul.harvard.edu/ois/xml/ns/ted/TEDSchema.html" xmlns:xlink="http://www.w3.org/TR/xlink" elementFormDefault="qualified" attributeFormDefault="unqualified" ted:doctype="/mczArtwork" ted:searchindex="Anywhere|/mczArtwork" ted:advancedsearchboolean="2" ted:advancedsearchindex="Anywhere|/artwork /specimen, Physical Piece ID|/artwork/physicalPieceId, Taxonomic Classification|/specimen/taxonomicClassification, Common Name|/specimen/commonName, Collection Location|/specimen/locationCollected, Image Creator|/artwork/imageCreator" ted:instanceLabel="/mczArtwork/artwork/title, /mczArtwork/artwork/physicalPieceId" 
	ted:checkBoxLimit="Digital Image|/artwork/image"
	ted:dropDownLimit="Work type|/artwork/workType|/paintings/drawings/sketches/preliminary sketches/watercolors/photographs, Materials/Techniques|/artwork/materialsTechniques|/daguerreotype/engraving/etching/ink/lithography/oil paint/pastel/pencil/photography/watercolor" 
	ted:resultsdisplay="Physical_Piece_ID|/mczArtwork/artwork/physicalPieceId, Title|/mczArtwork/artwork/title, Image_Creator|/mczArtwork/artwork/imageCreator[1], Species|/mczArtwork/specimen[1]/taxonomicClassification/species" 
	ted:saverecord="/mczArtwork" 
	ted:browseindex="Common Name|/mczArtwork/specimen/commonName, Species|/mczArtwork/specimen[1]/taxonomicClassification/species, Collection Location|/mczArtwork/specimen[1]/locationCollected, Specimen Collector|/mczArtwork/specimen/specimenCollector" 
	ted:numberSort="1" 
	ted:sortIndex=" Physical Piece ID|/artwork/physicalPieceId, Title|/artwork/title, Creation Location|/artwork/imageCreationLocation, Species|/specimen[1]/taxonomicClassification/species" 
	ted:defaultSort="Physical Piece ID" 
	ted:defaultRecordDisplay="expand">
	
	<xs:import namespace="http://www.w3.org/TR/xlink" schemaLocation="http://hul.harvard.edu/ois/xml/xsd/xlink/xlink.xsd"/>
	<xs:element name="mczArtwork" ted:label="MCZ Artwork">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="artwork"/>
				<xs:element ref="specimen" maxOccurs="unbounded"/>
				<xs:element ref="admin" ted:visibility="owner"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="artwork">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="physicalPieceId" type="xs:string"/>
				<xs:element ref="image" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element name="title" type="xs:string"/>
				<xs:element name="imageCreator" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="workType" maxOccurs="unbounded"/>
				<xs:element ref="materialsTechniques" maxOccurs="unbounded" ted:label="Materials/Techniques"/>
				<xs:element ref="support" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element name="dimensions" type="xs:string"/>
				<xs:element name="imageCreationLocation" type="xs:string" minOccurs="0"/>
				<xs:element name="imageCreationDate" minOccurs="0"/>
				<xs:element name="imageDescription" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
				<xs:element name="expeditionName" minOccurs="0">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="Thayer Expedition"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="expeditionLeader" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="annotation" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="xs:string" ted:label="Artwork Note"/>
				<xs:element name="otherItemIdentifier" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="IdType" type="xs:string"/>
							<xs:element name="IdValue" type="xs:string"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="non-publicNote" minOccurs="0" maxOccurs="unbounded" type="xs:string" ted:visibility="owner"/>
				<xs:element name="publishedIn" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
				<xs:element name="repositoryName" ted:label="Repository">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="Ernst Mayr Library"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="workType">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="drawings"/>
				<xs:enumeration value="engravings"/>
				<xs:enumeration value="etchings"/>
				<xs:enumeration value="lithographs"/>
				<xs:enumeration value="paintings"/>
				<xs:enumeration value="photographs"/>
				<xs:enumeration value="preliminary sketches"/>
				<xs:enumeration value="prints"/>
				<xs:enumeration value="sketches"/>
				<xs:enumeration value="watercolors"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="materialsTechniques">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="daguerreotype"/>
				<xs:enumeration value="engraving"/>
				<xs:enumeration value="etching"/>
				<xs:enumeration value="ink"/>
				<xs:enumeration value="lithography"/>
				<xs:enumeration value="oil paint"/>
				<xs:enumeration value="pastel"/>
				<xs:enumeration value="pencil"/>
				<xs:enumeration value="photography"/>
				<xs:enumeration value="watercolor"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="support">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="paper"/>
				<xs:enumeration value="board"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="annotation">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="text"/>
				<xs:element name="annotatedBy" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="specimen">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="taxonomicClassification"/>
				<xs:element name="classificationNote" type="xs:string" minOccurs="0"/>
				<xs:element name="commonName" maxOccurs="unbounded" type="xs:string"/>
				<xs:element name="originalName" minOccurs="0" type="xs:string"/>
				<xs:element ref="typeSpecimen" minOccurs="0" ted:label="Specimen Type"/>
				<xs:element name="specimenTypeDate" type="xs:string" minOccurs="0" ted:label="Type Date"/>
				<xs:element name="authority" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
				<xs:element name="specimenCollector" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
				<xs:element name="specimenCollectionDate" minOccurs="0"/>
				<xs:element name="locationCollected" minOccurs="0" type="xs:string"/>
				<xs:element name="latitude" minOccurs="0" type="xs:string"/>
				<xs:element name="longitude" minOccurs="0" type="xs:string"/>
				<xs:element name="depth" minOccurs="0" type="xs:string"/>
				<xs:element name="elevation" minOccurs="0" type="xs:string"/>
				<xs:element name="specimenNote" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="taxonomicClassification">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="kingdom" type="xs:string"/>
				<xs:element name="phylum" minOccurs="0" type="xs:string"/>
				<xs:element name="class" minOccurs="0" type="xs:string"/>
				<xs:element name="order" minOccurs="0" type="xs:string"/>
				<xs:element name="family" minOccurs="0" type="xs:string"/>
				<xs:element name="genus" minOccurs="0" type="xs:string"/>
				<xs:element name="species" minOccurs="0" type="xs:string"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="typeSpecimen">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="yes"/>
				<xs:enumeration value="no"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="image">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="caption" type="xs:string" minOccurs="0"/>
				<xs:element ref="thumbnail" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="restrictedImage" type="xs:boolean" ted:visibility="owner"/>
			<xs:attribute ref="xlink:href" use="optional" ted:visibility="owner"/>
			<xs:attribute ref="xlink:show" use="optional" ted:visibility="owner"/>
			<xs:attribute ref="xlink:actuate" use="optional" ted:visibility="owner"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="thumbnail">
		<xs:complexType>
			<xs:attribute ref="xlink:href" ted:visibility="owner"/>
			<xs:attribute ref="xlink:show" ted:visibility="owner"/>
			<xs:attribute ref="xlink:actuate" ted:visibility="owner"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="admin">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="createDate" type="xs:date" ted:visibility="owner"/>
				<xs:element name="deleteDate" type="xs:date" minOccurs="0" ted:visibility="owner"/>
				<xs:element name="status" ted:visibility="owner">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="In process"/>
							<xs:enumeration value="Active"/>
							<xs:enumeration value="Suppressed"/>
							<xs:enumeration value="Deleted"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="updateNote" minOccurs="0" maxOccurs="unbounded" ted:visibility="owner">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="updateDate" type="xs:date" minOccurs="0" ted:visibility="owner"/>
							<xs:element name="operator" type="xs:string" minOccurs="0" ted:visibility="owner"/>
							<xs:element name="updateDescription" minOccurs="0" type="xs:string" ted:visibility="owner"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
