Skip to content

Commit

Permalink
clean up xml & compenstate for cmodel naming consistency across solut…
Browse files Browse the repository at this point in the history
…ion packs
  • Loading branch information
ruebot committed Apr 2, 2013
1 parent e3a5667 commit 42b718a
Show file tree
Hide file tree
Showing 4 changed files with 1,382 additions and 200 deletions.
192 changes: 46 additions & 146 deletions xml/islandora_video_cmodel.xml
Original file line number Diff line number Diff line change
@@ -1,147 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes>
<type>video/quicktime</type>
<type>video/mp4</type>
<type>audio/mp3</type>
<type>audio/x-aiff</type>
<type>video/m4v</type>
<type>audio/ogg</type>
<type>video/ogg</type>
<type>video/quicktime</type>
</mimetypes>
<ingest_rules>
<rule>
<applies_to>video/quicktime</applies_to>
<applies_to>video/mp4</applies_to>
<applies_to>audio/mp3</applies_to>
<applies_to>audio/x-aiff</applies_to>
<applies_to>video/m4v</applies_to>
<applies_to>video/ogg</applies_to>
<applies_to>audio/ogg</applies_to>
<ingest_methods>
<ingest_method class="VideoExiftool" dsid="EXIF" file="video_sp.inc" method="extractMetadata" module="islandora_video_sp" modified_files_ext=""/>
<ingest_method class="fits" dsid="TECHMD_FITS" file="plugins/fits.inc" method="extractFits" module="fedora_repository" modified_files_ext=""/>
<ingest_method class="VideoCreation" dsid="TN" file="video_sp.inc" method="get_thumbnail" module="islandora_video_sp" modified_files_ext="jpg">
<parameters>
<parameter name="s">92x92</parameter>
</parameters>
</ingest_method>
<ingest_method class="VideoCreation" dsid="PROXY_M4V" file="video_sp.inc" method="createFile" module="islandora_video_sp" modified_files_ext=""/>
</ingest_methods>
</rule>
</ingest_rules>
<datastreams>
<datastream dsid="OBJ"/>
<datastream dsid="MP4">
<display_method class="IslandoraVideoPlayer" file="video_viewer.inc" method="showM4V" module="islandora_video_sp"/>
</datastream>
<datastream dsid="OBJ_EXIFTOOL"/>
<datastream dsid="TECHMD_FITS"/>
<datastream dsid="MP4"/>
<datastream dsid="MKV"/>
<datastream dsid="OGG"/>
<datastream dsid="TN"/>
<datastream dsid="FULL_SIZE"/>
</datastreams>
<ingest_form dsid="QDC" page="2">
<form_builder_method class="QtFormBuilder" file="plugins/QtFormBuilder.php" handler="handleQDCForm" method="buildQDCForm" module=""/>
<form_elements>
<element label="Title/Caption/Media Name" name="dc:title" required="true" type="textfield">
<description>The name given to the file</description>
</element>
<element label="Creator/" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the
content of the resource such as a person, organization or
service.
</description>
</element>
<element label="Subject" name="dc:subject" type="select">
<description>An entity primarily responsible for making the
content of the resource such as a person, organization or
service.
</description>
<authoritative_list>
<item>home recording</item>
<item>meeting</item>
<item>presentation</item>
<item>sound</item>
</authoritative_list>
</element>
<element label="Description of Media" name="dc:description" required="true" type="textarea">
<description>Examples include an abstract, table of
contents, or free-text account of the content of the
resource.
</description>
</element>
<element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations,
or services), responsible for making the resource
available.
</description>
</element>
<element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the
content of the resource such as a person, organization or
service.
</description>
</element>
<element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date
format is YYYY-MM-DD (e.g. 1890,1910-10,or
2007-10-23)
</description>
</element>
<element label="Resource Type" name="dc:type" type="select">
<description>Genre of the content of the resource. Examples
include: home page, novel, poem, working paper, technical
report, essay, dictionary.
</description>
<authoritative_list>
<item>none</item>
<item>video</item>
<item>event</item>
<item>image</item>
<item>interactive resource</item>
<item>model</item>
<item>party</item>
<item>physical object</item>
<item>place</item>
<item>service</item>
<item>software</item>
<item>sound</item>
<item>text</item>
</authoritative_list>
</element>
<element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the
present resource is derived.
</description>
</element>
<element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this
instance, the accession number or collection
number.
</description>
</element>
<element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of
the resource.
</description>
<authoritative_list>
<item field="eng">English</item>
<item field="fre">French</item>
</authoritative_list>
</element>
<element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description>
</element>
<element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property
rights, copyright, and various property
rights.
</description>
</element>
</form_elements>
</ingest_form>
</content_model>
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes>
<type>video/quicktime</type>
<type>video/mp4</type>
<type>audio/mp3</type>
<type>audio/x-aiff</type>
<type>video/m4v</type>
<type>audio/ogg</type>
<type>video/ogg</type>
<type>video/quicktime</type>
</mimetypes>
<ingest_rules>
<rule>
<applies_to>video/quicktime</applies_to>
<applies_to>video/mp4</applies_to>
<applies_to>audio/mp3</applies_to>
<applies_to>audio/x-aiff</applies_to>
<applies_to>video/m4v</applies_to>
<applies_to>video/ogg</applies_to>
<applies_to>audio/ogg</applies_to>
<ingest_methods>
<ingest_method class="VideoExiftool" dsid="EXIF" file="video_sp.inc" method="extractMetadata" module="islandora_video_sp" modified_files_ext=""/>
<ingest_method class="fits" dsid="TECHMD_FITS" file="plugins/fits.inc" method="extractFits" module="fedora_repository" modified_files_ext=""/>
<ingest_method class="VideoCreation" dsid="TN" file="video_sp.inc" method="get_thumbnail" module="islandora_video_sp" modified_files_ext="jpg">
<parameters>
<parameter name="s">92x92</parameter>
</parameters>
</ingest_method>
<ingest_method class="VideoCreation" dsid="PROXY_M4V" file="video_sp.inc" method="createFile" module="islandora_video_sp" modified_files_ext=""/>
</ingest_methods>
</rule>
</ingest_rules>
<datastreams>
<datastream dsid="OBJ"/>
<datastream dsid="MP4">
<display_method class="IslandoraVideoPlayer" file="video_viewer.inc" method="showM4V" module="islandora_video_sp"/>
</datastream>
<datastream dsid="OBJ_EXIFTOOL"/>
<datastream dsid="TECHMD_FITS"/>
<datastream dsid="MP4"/>
<datastream dsid="MKV"/>
<datastream dsid="OGG"/>
<datastream dsid="TN"/>
<datastream dsid="FULL_SIZE"/>
</datastreams>
</content_model>
12 changes: 4 additions & 8 deletions xml/islandora_video_collection_policy.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

<collection_policy xmlns="http://www.islandora.ca"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Islandora Video Collection"
xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<?xml version="1.0"?>
<collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Islandora Video Collection" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models>
<content_model dsid="ISLANDORACM" name="New Video" namespace="islandora:collection"
pid="islandora:sp_videoCModel"/>

<content_model dsid="ISLANDORACM" name="New Video" namespace="islandora:collection" pid="islandora:sp_video_cmodel"/>
</content_models>
<search_terms/>
<relationship>isMemberOfCollection</relationship>
</collection_policy>
</collection_policy>
23 changes: 12 additions & 11 deletions xml/islandora_video_ds_composite_model.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?xml version="1.0"?>
<dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
<dsTypeModel ID="DC" >
<form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"></form>
<dsTypeModel ID="DC">
<form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"/>
</dsTypeModel>
<dsTypeModel ID="RELS-EXT" optional="true">
<form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"></form>
<form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"/>
</dsTypeModel>
<dsTypeModel ID="RELS-INT" optional="true">
<form FORMAT_URI="info:fedora/fedora-system:FedoraRELSInt-1.0" MIME="application/rdf+xml"></form>
<form FORMAT_URI="info:fedora/fedora-system:FedoraRELSInt-1.0" MIME="application/rdf+xml"/>
</dsTypeModel>
<dsTypeModel ID="MODS" optional="true">
<form FORMAT_URI="http://www.loc.gov/mods/v3" MIME="text/xml"></form>
<form FORMAT_URI="http://www.loc.gov/mods/v3" MIME="text/xml"/>
</dsTypeModel>
<dsTypeModel ID="TECHMD">
<form MIME="text/xml"></form>
<form MIME="text/xml"/>
</dsTypeModel>
<dsTypeModel ID="TN" ORDERED="false">
<form MIME="image/jpg"></form>
<form MIME="image/jpg"/>
</dsTypeModel>
<dsTypeModel ID="OGG" ORDERED="false">
<form MIME="audio/ogg"></form>
<form MIME="audio/ogg"/>
</dsTypeModel>
<dsTypeModel ID="MKV" ORDERED="false">
<form MIME="application/octet-stream"></form>
<form MIME="application/octet-stream"/>
</dsTypeModel>
<dsTypeModel ID="OBJ" ORDERED="false">
<form MIME="video/mp4"></form>
<form MIME="video/mp4"/>
</dsTypeModel>
</dsCompositeModel>
</dsCompositeModel>
Loading

0 comments on commit 42b718a

Please sign in to comment.