[GeoNetwork-devel] Error in adding suggestions for specification title in editor form

Good Morning All,

I am looking to add some suggestions to gmd:title (under gmd:specification) in the editor form.

I’ll need to add them as options in helper element in the Schema’s labels.xml (my record is in ISO19139).

The issue is how can I differentiate the gmd:title (of gmd:specification) from other gmd:title.

Reason being I added a new element in labels.xml like:

... ...

I even added the following in iso19139/present/metadata-edit.xsl (for calling the geonet:getHelper)

<xsl:template mode=“iso19139” match=“gmd:specification/gmd:CI_Citation/gmd:title” priority=“2”>
<xsl:param name=“schema”/>
<xsl:param name=“edit”/>

xsl:choose
<xsl:when test=“$edit=true()”>
<xsl:call-template name=“simpleElementGui”>
<xsl:with-param name=“schema” select=“$schema”/>
<xsl:with-param name=“edit” select=“$edit”/>
<xsl:with-param name=“title”>
<xsl:call-template name=“getTitle”>
<xsl:with-param name=“name” select=“name(.)”/>
<xsl:with-param name=“schema” select=“$schema”/>
</xsl:call-template>
</xsl:with-param>

<xsl:with-param name=“helpLink”>
<xsl:call-template name=“getHelpLink”>
<xsl:with-param name=“name” select=“name(.)”/>
<xsl:with-param name=“schema” select=“$schema”/>
</xsl:call-template>
</xsl:with-param>

<xsl:with-param name=“text”>
<xsl:variable name=“value” select=“string(gco:CharacterString)”/>
<xsl:variable name=“ref” select=“gco:CharacterString/geonet:element/@ref”/>
<xsl:variable name=“isXLinked” select=“count(ancestor-or-self::node()[@xlink:href]) > 0”/>
<xsl:variable name=“fref” select=“…/gmd:name/gco:CharacterString/geonet:element/@ref|…/gmd:name/gmx:MimeFileType/geonet:element/@ref”/>
<xsl:variable name=“relatedJsAction”>
<xsl:value-of select=“concat(‘checkForFileUpload("’,$fref,‘", "’,$ref,‘", this.options[this.selectedIndex].value);’)” />
</xsl:variable>

<xsl:variable name=“helper” select=“geonet:getHelper($schema, ., /root/gui)”/>

display:none;

But I don’t see suggestions for it. Any help?

Thanks

Ameet