Opened 11 years ago

Closed 11 years ago

#1267 closed defect (fixed)

Editor / Expand element error

Reported by: fxp Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.10.0 RC0
Component: General Version: v2.9.0
Keywords: Cc:

Description

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

Attachments (1)

1267.patch (19.2 KB ) - added by fxp 11 years ago.

Download all attachments as: .zip

Change History (2)

by fxp, 11 years ago

Attachment: 1267.patch added

comment:1 by fxp, 11 years ago

Resolution: fixed
Status: newclosed

master commit 3022a51a9d3eddc6e1bfb7e435a120976226c95c

Note: See TracTickets for help on using tickets.