<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2001-2016 Food and Agriculture Organization of the
  ~ United Nations (FAO-UN), United Nations World Food Programme (WFP)
  ~ and United Nations Environment Programme (UNEP)
  ~
  ~ This program is free software; you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation; either version 2 of the License, or (at
  ~ your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful, but
  ~ WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program; if not, write to the Free Software
  ~ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  ~
  ~ Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
  ~ Rome - Italy. email: geonetwork@osgeo.org
  -->

<editor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:dct="http://purl.org/dc/terms/"
        xsi:noNamespaceSchemaLocation="../../../../../../config-editor.xsd">

  <!-- Form field type configuration. Default is text. -->
  <fields>
    <for name="dc:description" use="textarea"/>
    <for name="dct:abstract" use="textarea"/>
    <for name="dc:source" use="textarea"/>
    <for name="dc:rights" use="textarea"/>

    <for name="dct:created" use="date"/>
    <for name="dct:dateSubmitted" use="date"/>
    <for name="dct:dateAccepted" use="date"/>
    <for name="dct:dateCopyrighted" use="date"/>

    <for name="dc:creator" use="data-gn-directory-entry-picker"/>
    <for name="dc:publisher" use="data-gn-directory-entry-picker"/>
    <for name="dc:contributor" use="data-gn-directory-entry-picker"/>
    <for name="dct:mediator" use="data-gn-directory-entry-picker"/>
    <for name="dc:subject" use="data-gn-keyword-picker"/>
    <for name="dc:language" use="data-gn-language-picker"/>
  </fields>


  <!-- View configuration -->
  <views>
    <view name="default" default="true" upAndDownControlHidden="true">
      <sidePanel>
        <directive data-gn-need-help="creating-metadata"/>
        <directive data-gn-validation-report=""/>

        <directive data-gn-overview-manager=""
                   data-file-types=".png,.gif,.jpeg,.jpg"/>

        <directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
                   data-mode="viewConfig.distributionConfig.layout || ''"
                   data-editor-config="default"
                   data-related-config="[{
                                          title: 'links',
                                          filter: 'protocol:.*',
                                          editActions: ['addOnlinesrc']
                                        }]"/>

        <directive data-gn-associated-resources-panel="gnCurrentEdit.metadata" />
      </sidePanel>
      <tab id="default" default="true" mode="flat">
        <section xpath="/simpledc"/>
      </tab>
      <flatModeExceptions>
        <for name="dc:subject"/>
      </flatModeExceptions>
    </view>
    <view name="advanced" upAndDownControlHidden="true">
      <sidePanel>
        <directive data-gn-need-help="creating-metadata"/>
        <directive data-gn-validation-report=""/>

        <directive data-gn-overview-manager=""
                   data-file-types=".png,.gif,.jpeg,.jpg"/>

        <directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
                   data-mode="viewConfig.distributionConfig.layout || ''"
                   data-editor-config="default"
                   data-related-config="[{
                                          title: 'links',
                                          filter: 'protocol:.*',
                                          editActions: ['addOnlinesrc']
                                        }]"/>

        <directive data-gn-associated-resources-panel="gnCurrentEdit.metadata" />
      </sidePanel>
      <tab id="advanced" default="true">
        <section xpath="/simpledc"/>
      </tab>
    </view>
    <view name="xml">
      <sidePanel>
        <directive data-gn-need-help="creating-metadata"/>
        <directive data-gn-validation-report=""/>

        <directive data-gn-overview-manager=""
                   data-file-types=".png,.gif,.jpeg,.jpg"/>

        <directive data-gn-distribution-resources-panel="gnCurrentEdit.metadata"
                   data-mode="viewConfig.distributionConfig.layout || ''"
                   data-editor-config="default"
                   data-related-config="[{
                                          title: 'links',
                                          filter: 'protocol:.*',
                                          editActions: ['addOnlinesrc']
                                        }]"/>

        <directive data-gn-associated-resources-panel="gnCurrentEdit.metadata" />

      </sidePanel>
      <tab id="xml" default="true"/>
    </view>
  </views>
  <batchEditing>
    <section name="identification">
      <field name="title" xpath="dc:title"></field>
    </section>
  </batchEditing>
</editor>
