#1267: Editor / Expand element error
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: minor | Milestone: v2.9.0
Component: General | Version: v2.9.0
Keywords: |
---------------------+------------------------------------------------------
There is an issue when requesting expansion of an element with or without
suggestion. Improve mechanism. The following cases are documented:
{{{
<!-- Expand optional element gmd:type (gmd:keyword is mandatory
and will be expanded) -->
<!--<field name="gmd:MD_Keywords">
<suggest name="gmd:type"/>
</field>-->
<!-- Expand optional element gmd:type and gmd:thesaurusName.
gmd:thesaurusName will
be expanded including all its mandatory children and optional
suggestion. In that
case, thesaurus title and date type will be expanded.
Unfortunately, the date is a choice
between date and dateTime and will not be expanded. -->
<!-- <field name="gmd:MD_Keywords">
<suggest name="gmd:type"/>
<suggest name="gmd:thesaurusName"/>
</field>-->
<!--
This is not supported because gmd:date is an OR element
with Date or DateTime choice.
<field name="gmd:date">
<suggest name="gco:Date"/>
</field>-->
<!-- Control substitute of gco:CharacterString -->
<!-- Only propose gco:CharacterString and expand it when
gmd:keyword is created. For this,
set no suggestion. Adding :
<field name="gmd:keyword">
<suggest name="gco:CharacterString"/>
</field>
will not change anything because gco:CharacterString is the
default element.
-->
<!-- Propose 2 substitutes. A selection list will be displayed to
choose between the 2 elements -->
<field name="gmd:keyword">
<suggest name="gco:CharacterString"/>
<suggest name="gmx:Anchor"/>
</field>
}}}
Related topic: http://osgeo-org.1560.x6.nabble.com/Issue-adding-elements-
in-metadata-editor-td5040124.html#a5040329
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1267>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.