<?xml version="1.0" encoding="UTF-8"?>
<!--This model is incomplete only the showStreams in Fieldset is currently used-->
<content_model name="CRITTERS">
    <display_in_fieldset>
        <datastream id="QDC">
            <method>
                <file>plugins/ShowStreamsInFieldSets.inc</file>
                <class_name>ShowStreamsInFieldSets</class_name>
                <method_name>showQdc</method_name>
            </method>
        </datastream>
        <datastream id="CRITTERS">
            <method>
                <file>plugins/ShowStreamsInFieldSets.inc</file>
                <class_name>ShowStreamsInFieldSets</class_name>
                <method_name>showCritter</method_name>
            </method>
        </datastream>
    </display_in_fieldset>
    <mimetypes>
        <type>text/xml</type>
        <type>text/plain</type>
        <type>application/xml</type>

    </mimetypes>
    <ingest_rules>
        <rule>
            <applies_to>
                text/xml
            </applies_to>
            <applies_to>
                text/plain
            </applies_to>
            <applies_to>

                application/xml
            </applies_to>
            <methods>

            </methods>
            <disseminators>
                <disseminator>
                    <name>dis1</name>
                    <parameters>
                        <parameter name="param1">

                            200
                        </parameter>
                    </parameters>
                </disseminator>
            </disseminators>
        </rule>
        <rule>
            <!--Method will be called for all text/xml datastreams added so we would have to check that namespace=critters in the xml or something to only do critters schema-->
            <applies_to>text/xml</applies_to>

            <methods>
                <method>
                    <name>addCritterToDCStream</name>
                    <datastream_id>critter</datastream_id>
                </method>
                <method>
                    <name>another XMLFile</name>

                    <datastream_id>someotherstream</datastream_id>
                </method>
            </methods>
        </rule>
    </ingest_rules>
    <ingest_form dsid="QDC" page="2">
        <form_builder_method>
            <file>plugins/Refworks.inc</file>
            <class_name>Refworks</class_name>

            <method_name>buildForm</method_name>
            <form_handler>handleForm</form_handler>
            <!--need validation method as well-->
        </form_builder_method>
        <form_elements>
            <element>
                <label>Ingest</label>

                <name>hiddenvalue</name>
                <value>hidden</value>
                <type>hidden</type>
                <prefix>We now have all the information we need to ingest.</prefix>
                <description>The name given to the resource</description>
                <required>false</required>

            </element>
        </form_elements>
    </ingest_form>
    <!-- show the external links on the objects page -->
    <external_links>
        <link url="http://www.romeo.com">
            <url_parameters>
                <parameter name="file">
                    dc.title
                </parameter>

                <parameter/>
            </url_parameters>
        </link>
    </external_links>
</content_model>