<form xmlns="http://echo.nasa.gov/v9/echoforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://provider_refer_system_must_match_this">

<!-- ECHO_SYSTEM_OPTIONS_V2 -->
<!-- This form intends to create a standard order option definition in ECHO system. 
   Provider form importing this form needs to use reference control to take advantage 
   of the selections in the ui section of this form.
   Provider form can add more control by using relavent attribute to group different 
   elements.
   Author: Lei Fang lfang@sesda2.com   
-->

<!-- V2: added more selections for processing options originated from ASF
         added processing resolution in processing options and validated the selections
         Also renamed deliveryCarrier to more generic term shippingMethod
-->
 
<model>
  <instance>
    <systemOptions xmlns="http://schema_verify_system_instance_and_match_alias" xmlns:echo="http://schema_verify_system_instance_and_match_alias">
        <mediaOptions>
          <mediaType/>
          <ftpPush>
            <user/>
            <password/>
            <host/>
            <port>21</port>
            <directory/>
          </ftpPush>
          <mediaFormat/>
          <shippingMethod/>
       </mediaOptions>
       <processingOptions>
         <processingType/>
         <processingOption/>
         <processingResolution/>
       </processingOptions>        
    </systemOptions>
</instance>
</model>
<ui>
    <group id="mediaOptionsGroup" label="Media Options" ref="echo:mediaOptions">
      <select id="mediaTypeSelect" label="Media Type" multiple="false" open="false" ref="echo:mediaType" type="xsd:string" valueElementName="value">
        <item label="8MM Tape 5GB" value="TAPE8MM_5GB"/>
        <item label="8MM Tape 2.5GB" value="TAPE8MM_2AND1HALFGB"/>
        <item label="FTP Push" value="FTPPUSH"/>
        <item label="FTP Pull" value="FTPPULL"/>
        <item label="Compact Disc (CDROM)" value="CDROM"/>
        <item label="Digital Versatile Disc (DVD)" value="DVD"/>
        <item label="Digital Linear Tape (DLT) 20GB" value="DLT_20GB"/>
        <item label="Digital Linear Tape (DLT) 30GB" value="DLT_30GB"/>
      </select>
      <group id="ftpPushGroup" label="FTP Push Fields" ref="echo:ftpPush" relevant="echo:mediaType/echo:value =  'FTPPUSH'">
        <input label="FTP User" ref="echo:user" type="xsd:string"/>
        <secret label="FTP Password" ref="echo:password" type="xsd:string"/>
        <input label="FTP Host" ref="echo:host" type="xsd:string"/>
        <input label="FTP Port" ref="echo:port" type="xsd:int">
          <help>The port used when making an FTP connection to the server.</help>
        </input>
        <input label="FTP Directory" ref="echo:directory" type="xsd:string"/>
      </group>
      <select id="mediaFormatSelect" label="Media Format" multiple="false" open="false" ref="echo:mediaFormat" type="xsd:string" valueElementName="value">
        <item label="Rockridge Format" value="ROCKRIDGE"/>
        <item label="File Format" value="FILE"/>
        <item label="Tape Archive Format (TAR)" value="TAR"/>
        <item label="Gzipped Tape Archive Format (TARGZ)" value="TARGZ"/>
        <item label="Bzipped Tape Archive Format (TARBZ)" value="TARBZ"/>
        <item label="PK/Win Zip Format" value="WINZIP"/>
      </select>
      <select id="shippingMethodSelect" label="Shipping Method" multiple="false" open="false" ref="echo:shippingMethod" type="xsd:string" valueElementName="value">
        <item label="United Parcel Service (UPS)" value="UPS"/>
        <item label="US Postal Service (USPS)" value="USPS"/>
        <item label="Federal Express (FEDEX)" value="FEDEX"/>
        <item label="Pick Up" value="PICKUP"/>
      </select>
    </group>
    <group id="processingOptionsGroup" label="Processing  Options" ref="echo:processingOptions">
      <select id="processingTypeSelect" label="Processing Type" multiple="false" open="false" ref="echo:processingType" type="xsd:string" valueElementName="value">
        <item label="Processing Polar Stereo" value="PS"/>
        <item label="Processing Detected" value="DETECTED"/>
        <item label="Processing Complex" value="COMPLEX"/>
        <item label="Processing L0" value="L0"/>
        <item label="Processing Off The Shelf" value="OTS"/>
        <item label="Processing UTM" value="UTM"/>
        <item label="Processing Lambert" value="LAMBERT"/>
      </select>
      <select id="processingOptionSelect" label="Processing Option" multiple="false" open="false" ref="echo:processingOption" type="xsd:string" valueElementName="value">
        <item label="Normal" value="NORMAL"/>
        <item label="Deskew" value="DESKEW"/>
        <item label="CEOS" value="CEOS"/>
        <item label="STF" value="STF"/>
        <item label="Unity LUT w/SPLC" value="UNITY"/>
        <item label="Ice LUT w/SPLC" value="ICE"/>
        <item label="Ocean LUT w/SPLC" value="OCEAN"/>
        <item label="Land LUT w/SPLC" value="LAND"/>
      </select>
      <select id="processingResolutionSelect" label="Processing Resolution" multiple="false" open="false" ref="echo:processingResolution" type="xsd:string" valueElementName="value">
        <item label="Full" value="FULL"/>
        <item label="Medium" value="MEDIUM"/>
        <item label="Low" value="LOW"/>
     </select>
   </group>
 </ui>
</form>