Alexander O'Neill
14 years ago
19 changed files with 1254 additions and 1391 deletions
@ -1,70 +1 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="utf-8"?> <collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> <content_models> <content_model name="STANDARD_JPEG" dsid="ISLANDORACM" namespace="demo:Smiley" pid="demo:DualResImage"/> </content_models> <search_terms> <term field="dc.title">dc.title</term> <term field="dc.creator">dc.creator</term> <term field="dc.description" default="true">dc.description</term> <term field="dc.date">dc.date</term> <term field="dc.identifier">dc.identifier</term> <term field="dc.language">dc.language</term> <term field="dc.publisher">dc.publisher</term> <term field="dc.rights">dc.rights</term> <term field="dc.subject">dc.subject</term> <term field="dc.relation">dc.relation</term> <term field="dcterms.temporal">dcterms.temporal</term> <term field="dcterms.spatial">dcterms.spatial</term> <term field="fgs.DS.first.text">Full Text</term> </search_terms> <relationship>isMemberOf</relationship> </collection_policy> |
||||||
<collection_policy> |
|
||||||
<!---we will define allowed mimetypes and what to do with various types as part of the content model--> |
|
||||||
<contentmodels> |
|
||||||
<contentmodel name="STANDARD_JPEG"> |
|
||||||
<pid_namespace>demo:Smiley</pid_namespace> |
|
||||||
<pid>demo:DualResImage</pid> |
|
||||||
<dsid>ISLANDORACM</dsid> |
|
||||||
</contentmodel> |
|
||||||
</contentmodels> |
|
||||||
<!--if we define a query for an object the relationship we ask for may not be isMemberOfCollection. So when we ingest in th |
|
||||||
Collection we will want the relationship to match the query. If this element is null we will use the isMemberOfCollection relationship--> |
|
||||||
<relationship>isMemberOf</relationship> |
|
||||||
<search_terms> |
|
||||||
<!--define what fields we can query as part of the advanced search for this collection, not used yet--> |
|
||||||
<default>dc.description</default> |
|
||||||
<term> |
|
||||||
<field>dc.title</field> |
|
||||||
<value>dc.title</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.creator</field> |
|
||||||
<value>dc.creator</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.description</field> |
|
||||||
<value>dc.description</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.date</field> |
|
||||||
<value>dc.date</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.identifier</field> |
|
||||||
<value>dc.identifier</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.language</field> |
|
||||||
<value>dc.language</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.publisher</field> |
|
||||||
<value>dc.publisher</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.rights</field> |
|
||||||
<value>dc.rights</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.subject</field> |
|
||||||
<value>dc.subject</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dc.relation</field> |
|
||||||
<value>dc.relation</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dcterms.temporal</field> |
|
||||||
<value>dcterms.temporal</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>dcterms.spatial</field> |
|
||||||
<value>dcterms.spatial</value> |
|
||||||
</term> |
|
||||||
<term> |
|
||||||
<field>fgs.DS.first.text</field> |
|
||||||
<value>Full Text</value> |
|
||||||
</term> |
|
||||||
</search_terms> |
|
||||||
</collection_policy> |
|
@ -1 +1,89 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Collection" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <mimetypes> <type>text/xml</type> <type>text/plain</type> <type>application/xml</type> </mimetypes> <ingest_rules/> <ingest_form dsid="QDC" page="2"> <form_builder_method module="" file="plugins/CollectionFormBuilder.inc" class="CollectionFormBuilder" method="buildQDCForm" handler="handleQDCForm"/> <form_elements> <element label="Title/Caption/Object Name" name="dc:title" type="textfield" required="true"> <description>The name given to the resource</description> </element> <element label="Creator/Photographer/Author" 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>none</item> <item>Multi Media</item> <item>image</item> <item>meeting</item> <item>presentation</item> <item>sound</item> <item>text</item> </authoritative_list> </element> <element label="Description" name="dc:description" type="textarea" required="true"> <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>collection</item> <item>dataset</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 name="Collection" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> |
||||||
|
<mimetypes> |
||||||
|
<type>text/xml</type> |
||||||
|
<type>text/plain</type> |
||||||
|
<type>application/xml</type> |
||||||
|
</mimetypes> |
||||||
|
<ingest_rules/> |
||||||
|
<datastreams> |
||||||
|
<datastream dsid="DC"> |
||||||
|
<display_method class="CollectionClass" file="CollectionClass.inc" method="showFieldSets" module=""/> |
||||||
|
</datastream> |
||||||
|
<datastream dsid="TN"/> |
||||||
|
<datastream dsid="COLLECTION_POLICY"/> |
||||||
|
</datastreams> |
||||||
|
<ingest_form dsid="QDC" page="2"> |
||||||
|
<form_builder_method class="CollectionFormBuilder" file="plugins/CollectionFormBuilder.inc" handler="handleQDCForm" |
||||||
|
method="buildQDCForm" module=""/> |
||||||
|
<form_elements> |
||||||
|
<element label="Title/Caption/Object Name" name="dc:title" required="true" type="textfield"> |
||||||
|
<description>The name given to the resource</description> |
||||||
|
</element> |
||||||
|
<element label="Creator/Photographer/Author" 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>none</item> |
||||||
|
<item>Multi Media</item> |
||||||
|
<item>image</item> |
||||||
|
<item>meeting</item> |
||||||
|
<item>presentation</item> |
||||||
|
<item>sound</item> |
||||||
|
<item>text</item> |
||||||
|
</authoritative_list> |
||||||
|
</element> |
||||||
|
<element label="Description" 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>collection</item> |
||||||
|
<item>dataset</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> |
||||||
|
@ -1,198 +1,95 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<content_model name="standard_jpeg"> |
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> |
||||||
<mimetypes> |
<mimetypes> |
||||||
<type>image/jpeg</type> |
<type>image/jpeg</type> |
||||||
</mimetypes> |
</mimetypes> |
||||||
<display_in_fieldset> |
<ingest_rules> |
||||||
<datastream id="MEDIUM_SIZE"> |
<rule> |
||||||
<method> |
<applies_to>image/jpeg</applies_to> |
||||||
<file>plugins/ShowDemoStreamsInFieldSets.inc</file> |
<ingest_methods> |
||||||
<class_name>ShowDemoStreamsInFieldSets</class_name> |
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> |
||||||
<method_name>showMediumSize</method_name> |
<parameters> |
||||||
</method> |
<parameter name="width">160</parameter> |
||||||
</datastream> |
<parameter name="height">120</parameter> |
||||||
<datastream id="QDC"> |
</parameters> |
||||||
<method> |
</ingest_method> |
||||||
<file>plugins/ShowStreamsInFieldSets.inc</file> |
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg"> |
||||||
<class_name>ShowStreamsInFieldSets</class_name> |
<parameters> |
||||||
<method_name>showQdc</method_name> |
<parameter name="width">120</parameter> |
||||||
</method> |
<parameter name="height">120</parameter> |
||||||
</datastream> |
</parameters> |
||||||
<datastream id="FULL_SIZE"> |
</ingest_method> |
||||||
<allowed_mime_type>image/jpeg</allowed_mime_type> |
</ingest_methods> |
||||||
<add_datastream_method> |
</rule> |
||||||
<file>plugins/ImageManipulation.inc</file> |
</ingest_rules> |
||||||
<class_name>ImageManipulation</class_name> |
<datastreams> |
||||||
<method_name>manipulateImage</method_name> |
<datastream dsid="MEDIUM_SIZE"> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
<display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/> |
||||||
<datastream_id>MEDIUM_SIZE</datastream_id> |
</datastream> |
||||||
<parameters> |
<datastream dsid="QDC"> |
||||||
<parameter name="width">120</parameter> |
<display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/> |
||||||
<parameter name="height">160</parameter> |
</datastream> |
||||||
</parameters> |
<datastream dsid="FULL_SIZE"> |
||||||
</add_datastream_method> |
<add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> |
||||||
</datastream> |
<parameters> |
||||||
</display_in_fieldset> |
<parameter name="width">120</parameter> |
||||||
<ingest_rules> |
<parameter name="height">160</parameter> |
||||||
<rule> |
</parameters> |
||||||
<applies_to> |
</add_datastream_method> |
||||||
image/jpeg |
</datastream> |
||||||
</applies_to> |
</datastreams> |
||||||
<methods> |
<ingest_form dsid="QDC" page="2"> |
||||||
<method> |
<form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/> |
||||||
<file>plugins/ImageManipulation.inc</file> |
<form_elements> |
||||||
<class_name>ImageManipulation</class_name> |
<element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true"> |
||||||
<method_name>manipulateImage</method_name> |
<description>The name given to the resource</description> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
</element> |
||||||
<datastream_id>MEDIUM_SIZE</datastream_id> |
<element label="Creator/Photographer" name="dc:creator" type="textfield"> |
||||||
<parameters> |
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> |
||||||
<parameter name="width">160</parameter> |
</element> |
||||||
<parameter name="height">120</parameter> |
<element label="Subject" name="dc:subject" type="select"> |
||||||
</parameters> |
<description>Subject</description> |
||||||
</method> |
<authoritative_list> |
||||||
<method> |
<item>image</item> |
||||||
<file>plugins/ImageManipulation.inc</file> |
<item>photograph</item> |
||||||
<class_name>ImageManipulation</class_name> |
<item>presentation</item> |
||||||
<method_name>manipulateImage</method_name> |
<item>art</item> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
</authoritative_list> |
||||||
<datastream_id>TN</datastream_id> |
</element> |
||||||
<parameters> |
<element label="Description" name="dc:description" type="textarea" required="true"> |
||||||
<parameter name="width">120</parameter> |
<description>Description of the Image</description> |
||||||
<parameter name="height">120</parameter> |
</element> |
||||||
</parameters> |
<element label="Publisher" name="dc:publisher" type="textfield"> |
||||||
</method> |
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> |
||||||
</methods> |
</element> |
||||||
</rule> |
<element label="Contributor" name="dc:contributor" type="textfield"> |
||||||
</ingest_rules> |
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> |
||||||
<ingest_form dsid="QDC" page="2"> |
</element> |
||||||
<form_builder_method> |
<element label="Date" name="dc:date" type="textfield"> |
||||||
<file>plugins/DemoFormBuilder.inc</file> |
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> |
||||||
<class_name>DemoFormBuilder</class_name> |
</element> |
||||||
<method_name>buildQDCForm</method_name> |
<element label="Resource Type" name="dc:type" type="textfield"> |
||||||
<form_handler>handleQDCForm</form_handler> |
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> |
||||||
<!--need validation method as well--> |
</element> |
||||||
</form_builder_method> |
<element label="Source" name="dc:source" type="textfield"> |
||||||
<form_elements> |
<description>A reference to a resource from which the present resource is derived.</description> |
||||||
<element> |
</element> |
||||||
<label>Title/Caption/Image Name</label> |
<element label="Identifier" name="dc:identifier" type="textfield"> |
||||||
<name>dc:title</name> |
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> |
||||||
<type>textfield</type> |
</element> |
||||||
<description>The name given to the resource</description> |
<element label="Language" name="dc:language" type="select"> |
||||||
<required>true</required> |
<description>The language of the intellectual content of the resource.</description> |
||||||
</element> |
<authoritative_list> |
||||||
<element> |
<item field="eng">English</item> |
||||||
<label>Creator/Photographer</label> |
<item field="fre">French</item> |
||||||
<name>dc:creator</name> |
</authoritative_list> |
||||||
<type>textfield</type> |
</element> |
||||||
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> |
<element label="Relation" name="dc:relation" type="textfield"> |
||||||
<required>false</required> |
<description>Reference to a related resource.</description> |
||||||
</element> |
</element> |
||||||
<element> |
<element label="Rights Management" name="dc:rights" type="textarea"> |
||||||
<label>Subject</label> |
<description>Information about intellectual property rights, copyright, and various property rights.</description> |
||||||
<name>dc:subject</name> |
</element> |
||||||
<type>select</type> |
</form_elements> |
||||||
<description>Subject</description> |
</ingest_form> |
||||||
<required>false</required> |
</content_model> |
||||||
<authoritative_list> |
|
||||||
<item> |
|
||||||
<field>image</field> |
|
||||||
<value>image</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>photograph</field> |
|
||||||
<value>photograph</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>presentation</field> |
|
||||||
<value>presentation</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>art</field> |
|
||||||
<value>art</value> |
|
||||||
</item> |
|
||||||
|
|
||||||
</authoritative_list> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Description</label> |
|
||||||
<name>dc:description</name> |
|
||||||
<type>textarea</type> |
|
||||||
<description>Description of the Image</description> |
|
||||||
<required>true</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Publisher</label> |
|
||||||
<name>dc:publisher</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Contributor</label> |
|
||||||
<name>dc:contributor</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Date</label> |
|
||||||
<name>dc:date</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Resource Type</label> |
|
||||||
<name>dc:type</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Source</label> |
|
||||||
<name>dc:source</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>A reference to a resource from which the present resource is derived.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Identifier</label> |
|
||||||
<name>dc:identifier</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Language</label> |
|
||||||
<name>dc:language</name> |
|
||||||
<type>select</type> |
|
||||||
<description>The language of the intellectual content of the resource.</description> |
|
||||||
<required>false</required> |
|
||||||
<authoritative_list> |
|
||||||
<item> |
|
||||||
<field>eng</field> |
|
||||||
<value>English</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>fre</field> |
|
||||||
<value>French</value> |
|
||||||
</item> |
|
||||||
</authoritative_list> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Relation</label> |
|
||||||
<name>dc:relation</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Reference to a related resource.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Rights Management</label> |
|
||||||
<name>dc:rights</name> |
|
||||||
<type>textarea</type> |
|
||||||
<description>Information about intellectual property rights, copyright, and various property rights.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
</form_elements> |
|
||||||
</ingest_form> |
|
||||||
</content_model> |
|
@ -1,198 +1,95 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<content_model name="standard_jpeg"> |
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> |
||||||
<mimetypes> |
<mimetypes> |
||||||
<type>image/jpeg</type> |
<type>image/jpeg</type> |
||||||
</mimetypes> |
</mimetypes> |
||||||
<display_in_fieldset> |
<ingest_rules> |
||||||
<datastream id="MEDIUM_SIZE"> |
<rule> |
||||||
<method> |
<applies_to>image/jpeg</applies_to> |
||||||
<file>plugins/ShowDemoStreamsInFieldSets.inc</file> |
<ingest_methods> |
||||||
<class_name>ShowDemoStreamsInFieldSets</class_name> |
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> |
||||||
<method_name>showMediumSize</method_name> |
<parameters> |
||||||
</method> |
<parameter name="width">160</parameter> |
||||||
</datastream> |
<parameter name="height">120</parameter> |
||||||
<datastream id="QDC"> |
</parameters> |
||||||
<method> |
</ingest_method> |
||||||
<file>plugins/ShowStreamsInFieldSets.inc</file> |
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg"> |
||||||
<class_name>ShowStreamsInFieldSets</class_name> |
<parameters> |
||||||
<method_name>showQdc</method_name> |
<parameter name="width">120</parameter> |
||||||
</method> |
<parameter name="height">120</parameter> |
||||||
</datastream> |
</parameters> |
||||||
<datastream id="FULL_SIZE"> |
</ingest_method> |
||||||
<allowed_mime_type>image/jpeg</allowed_mime_type> |
</ingest_methods> |
||||||
<add_datastream_method> |
</rule> |
||||||
<file>plugins/ImageManipulation.inc</file> |
</ingest_rules> |
||||||
<class_name>ImageManipulation</class_name> |
<datastreams> |
||||||
<method_name>manipulateImage</method_name> |
<datastream dsid="MEDIUM_SIZE"> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
<display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/> |
||||||
<datastream_id>MEDIUM_SIZE</datastream_id> |
</datastream> |
||||||
<parameters> |
<datastream dsid="QDC"> |
||||||
<parameter name="width">120</parameter> |
<display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/> |
||||||
<parameter name="height">160</parameter> |
</datastream> |
||||||
</parameters> |
<datastream dsid="FULL_SIZE"> |
||||||
</add_datastream_method> |
<add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> |
||||||
</datastream> |
<parameters> |
||||||
</display_in_fieldset> |
<parameter name="width">120</parameter> |
||||||
<ingest_rules> |
<parameter name="height">160</parameter> |
||||||
<rule> |
</parameters> |
||||||
<applies_to> |
</add_datastream_method> |
||||||
image/jpeg |
</datastream> |
||||||
</applies_to> |
</datastreams> |
||||||
<methods> |
<ingest_form dsid="QDC" page="2"> |
||||||
<method> |
<form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/> |
||||||
<file>plugins/ImageManipulation.inc</file> |
<form_elements> |
||||||
<class_name>ImageManipulation</class_name> |
<element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true"> |
||||||
<method_name>manipulateImage</method_name> |
<description>The name given to the resource</description> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
</element> |
||||||
<datastream_id>MEDIUM_SIZE</datastream_id> |
<element label="Creator/Photographer" name="dc:creator" type="textfield"> |
||||||
<parameters> |
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> |
||||||
<parameter name="width">160</parameter> |
</element> |
||||||
<parameter name="height">120</parameter> |
<element label="Subject" name="dc:subject" type="select"> |
||||||
</parameters> |
<description>Subject</description> |
||||||
</method> |
<authoritative_list> |
||||||
<method> |
<item>image</item> |
||||||
<file>plugins/ImageManipulation.inc</file> |
<item>photograph</item> |
||||||
<class_name>ImageManipulation</class_name> |
<item>presentation</item> |
||||||
<method_name>manipulateImage</method_name> |
<item>art</item> |
||||||
<modified_files_ext>jpg</modified_files_ext> |
</authoritative_list> |
||||||
<datastream_id>TN</datastream_id> |
</element> |
||||||
<parameters> |
<element label="Description" name="dc:description" type="textarea" required="true"> |
||||||
<parameter name="width">120</parameter> |
<description>Description of the Image</description> |
||||||
<parameter name="height">120</parameter> |
</element> |
||||||
</parameters> |
<element label="Publisher" name="dc:publisher" type="textfield"> |
||||||
</method> |
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> |
||||||
</methods> |
</element> |
||||||
</rule> |
<element label="Contributor" name="dc:contributor" type="textfield"> |
||||||
</ingest_rules> |
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> |
||||||
<ingest_form dsid="QDC" page="2"> |
</element> |
||||||
<form_builder_method> |
<element label="Date" name="dc:date" type="textfield"> |
||||||
<file>plugins/DemoFormBuilder.inc</file> |
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> |
||||||
<class_name>DemoFormBuilder</class_name> |
</element> |
||||||
<method_name>buildQDCForm</method_name> |
<element label="Resource Type" name="dc:type" type="textfield"> |
||||||
<form_handler>handleQDCForm</form_handler> |
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> |
||||||
<!--need validation method as well--> |
</element> |
||||||
</form_builder_method> |
<element label="Source" name="dc:source" type="textfield"> |
||||||
<form_elements> |
<description>A reference to a resource from which the present resource is derived.</description> |
||||||
<element> |
</element> |
||||||
<label>Title/Caption/Image Name</label> |
<element label="Identifier" name="dc:identifier" type="textfield"> |
||||||
<name>dc:title</name> |
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> |
||||||
<type>textfield</type> |
</element> |
||||||
<description>The name given to the resource</description> |
<element label="Language" name="dc:language" type="select"> |
||||||
<required>true</required> |
<description>The language of the intellectual content of the resource.</description> |
||||||
</element> |
<authoritative_list> |
||||||
<element> |
<item field="eng">English</item> |
||||||
<label>Creator/Photographer</label> |
<item field="fre">French</item> |
||||||
<name>dc:creator</name> |
</authoritative_list> |
||||||
<type>textfield</type> |
</element> |
||||||
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> |
<element label="Relation" name="dc:relation" type="textfield"> |
||||||
<required>false</required> |
<description>Reference to a related resource.</description> |
||||||
</element> |
</element> |
||||||
<element> |
<element label="Rights Management" name="dc:rights" type="textarea"> |
||||||
<label>Subject</label> |
<description>Information about intellectual property rights, copyright, and various property rights.</description> |
||||||
<name>dc:subject</name> |
</element> |
||||||
<type>select</type> |
</form_elements> |
||||||
<description>Subject</description> |
</ingest_form> |
||||||
<required>false</required> |
</content_model> |
||||||
<authoritative_list> |
|
||||||
<item> |
|
||||||
<field>image</field> |
|
||||||
<value>image</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>photograph</field> |
|
||||||
<value>photograph</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>presentation</field> |
|
||||||
<value>presentation</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>art</field> |
|
||||||
<value>art</value> |
|
||||||
</item> |
|
||||||
|
|
||||||
</authoritative_list> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Description</label> |
|
||||||
<name>dc:description</name> |
|
||||||
<type>textarea</type> |
|
||||||
<description>Description of the Image</description> |
|
||||||
<required>true</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Publisher</label> |
|
||||||
<name>dc:publisher</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Contributor</label> |
|
||||||
<name>dc:contributor</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Date</label> |
|
||||||
<name>dc:date</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Resource Type</label> |
|
||||||
<name>dc:type</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Source</label> |
|
||||||
<name>dc:source</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>A reference to a resource from which the present resource is derived.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Identifier</label> |
|
||||||
<name>dc:identifier</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Language</label> |
|
||||||
<name>dc:language</name> |
|
||||||
<type>select</type> |
|
||||||
<description>The language of the intellectual content of the resource.</description> |
|
||||||
<required>false</required> |
|
||||||
<authoritative_list> |
|
||||||
<item> |
|
||||||
<field>eng</field> |
|
||||||
<value>English</value> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<field>fre</field> |
|
||||||
<value>French</value> |
|
||||||
</item> |
|
||||||
</authoritative_list> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Relation</label> |
|
||||||
<name>dc:relation</name> |
|
||||||
<type>textfield</type> |
|
||||||
<description>Reference to a related resource.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
<element> |
|
||||||
<label>Rights Management</label> |
|
||||||
<name>dc:rights</name> |
|
||||||
<type>textarea</type> |
|
||||||
<description>Information about intellectual property rights, copyright, and various property rights.</description> |
|
||||||
<required>false</required> |
|
||||||
</element> |
|
||||||
</form_elements> |
|
||||||
</ingest_form> |
|
||||||
</content_model> |
|
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,50 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
class FedoraObject { |
||||||
|
function __construct($pid = '') { |
||||||
|
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); |
||||||
|
if (!empty($pid)) { |
||||||
|
|
||||||
|
$this->pid = $pid; |
||||||
|
$this->item = new Fedora_Item($pid); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public function showFieldSets() { |
||||||
|
global $user; |
||||||
|
$objectHelper = new ObjectHelper(); |
||||||
|
$tabset = array(); |
||||||
|
$show_purge_tab = (!empty($_POST['form_id']) && $_POST['form_id'] == 'fedora_repository_purge_object_form'); |
||||||
|
$purge_form = drupal_get_form('fedora_repository_purge_object_form', $this->pid, check_plain(substr(request_uri(), strlen(base_path())))); |
||||||
|
|
||||||
|
$tabset['fedora_object_details'] = array( |
||||||
|
'#type' => 'tabpage', |
||||||
|
'#title' => t('Object Details'), |
||||||
|
'#selected' => $show_purge_tab, |
||||||
|
); |
||||||
|
$tabset['fedora_object_details']['tabset'] = array( |
||||||
|
'#type' => 'tabset', |
||||||
|
); |
||||||
|
$dc_html = $objectHelper->getFormattedDC($this->item); |
||||||
|
|
||||||
|
$ds_list = $objectHelper->getFormattedDatastreamList($this->pid, NULL, $this->item); |
||||||
|
|
||||||
|
|
||||||
|
$tabset['fedora_object_details']['tabset']['view'] = array( |
||||||
|
'#type' => 'tabpage', |
||||||
|
'#title' => t('View'), |
||||||
|
'#content' => $dc_html . $ds_list . $purge_form, |
||||||
|
); |
||||||
|
|
||||||
|
if (fedora_repository_access(OBJECTHELPER :: $EDIT_FEDORA_METADATA, $this->pid, $user)) { |
||||||
|
$editform = drupal_get_form('fedora_repository_edit_qdc_form', $this->pid, 'DC'); |
||||||
|
$tabset['fedora_object_details']['tabset']['edit'] = array( |
||||||
|
'#type' => 'tabpage', |
||||||
|
'#title' => t('Edit'), |
||||||
|
'#content' => $editform, |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
return $tabset; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue