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

<!--

Action buttons (Previous/Save/Next) can be shown "top", "bottom" or "both":
<stage name="type" action_buttons="both">
  <component><field ref="type" required="yes" /></component>
</stage>

-->

<workflow xmlns="http://eprints.org/ep3/workflow" xmlns:epc="http://eprints.org/ep3/control">
  <flow>
    <stage ref="files"/>
    <stage ref="core"/>
    <stage ref="subjects"/>
  </flow>

  <stage name="files">
    <component type="Upload" show_help="always" />
    <component type="Documents">
      <field ref="content" />
      <field ref="format" />
      <field ref="formatdesc" />
      <field ref="security" />
      <field ref="license" />
      <field ref="date_embargo" />
      <field ref="embargo_reason" />
      <field ref="language" />
    </component>
  </stage>


  <stage name="core">
    <component><field ref="title" required="yes" input_lookup_url="{$config{rel_cgipath}}/users/lookup/title_duplicates" input_lookup_params="id={eprintid}&amp;dataset=eprint&amp;field=title" /></component>
  </stage>

  <stage name="subjects">
    <component type="Field::Subject"><field ref="subjects" required="no" /></component>
  </stage>

</workflow>
