<?xml version="1.0" encoding="utf-8"?>

<workflow xmlns="http://eprints.org/ep3/workflow" xmlns:epc="http://eprints.org/ep3/control">

  <flow>
    <stage ref="details"/>
    <stage ref="subjects_etc"/>
  </flow>
   
  <stage name="details">

    <component type="Field::Multi">
      <title><epc:phrase ref="container_workflow_name_section" /></title>
      <field ref="name" required="yes" />
      <field ref="description" required="yes" />
    </component>

    <component type="Field::ItemrefLookupjs">
      <title><epc:phrase ref="container_workflow_eprint_section" /></title>
      <field ref="eprints" />
    </component>

    <component type="XHTML">
      Editor: <epc:print expr="ownerid" />
      Last Modified: <epc:print expr="lastmod" />
    </component>
  </stage>

  <stage name="subjects_etc">
     <component type="XHTML">
        <div id="container_subject_titlebar" class="ep_sr_title_bar ">
           <div class="ep_sr_title"><epc:phrase ref="container_workflow_subject_section" /></div>
        </div>
	<epc:print type= "XHTML" expr="$item.get_subjects_from_children('subjects')" />
     </component>

     <component type="Field::Subject">
      <title><epc:phrase ref="container_workflow_additional_subject_section" /></title>
      <field ref="subjects"/>
    </component>


     <component type="XHTML">
        <div id="container_subject_titlebar" class="ep_sr_title_bar ">
           <div class="ep_sr_title"><epc:phrase ref="container_workflow_category_section" /></div>
        </div>
	<epc:print type= "XHTML" expr="$item.get_field_from_children('category')" /> 
     </component>

    <component type="Field::Multi">
      <title><epc:phrase ref="container_workflow_additional_category_section" /></title>
      <field ref="category"/>
    </component>

     <component type="XHTML">
        <div id="container_subject_titlebar" class="ep_sr_title_bar ">
           <div class="ep_sr_title"><epc:phrase ref="container_workflow_funder_section" /></div>
        </div>
	<epc:print type= "XHTML" expr="$item.get_field_from_children('funders')" /> 
     </component>

    <component type="Field::Multi">
      <title><epc:phrase ref="container_workflow_additional_funder_section" /></title>
      <field ref="funders"/>
    </component>

      <component type="XHTML">
        <div id="container_subject_titlebar" class="ep_sr_title_bar ">
           <div class="ep_sr_title"><epc:phrase ref="container_workflow_division_section" /></div>
        </div>
	<epc:print type= "XHTML" expr="$item.get_subjects_from_children('divisions')" />
     </component>

   <component type="Field::Multi">
      <title><epc:phrase ref="container_workflow_additional_division_section" /></title>
      <field ref="divisions"/>
    </component>

    <component type="Field::ItemrefLookupjs">
      <title><epc:phrase ref="container_workflow_parent_section" /></title>
      <field ref="parentid" />
    </component>

  </stage>


</workflow>
