[GeoNetwork-devel] input field with plus button in edit mode

Dear List,

I try to configure input fields for an attribute with a "+" button in
edit mode, but I didn't get correct configuration. I tried to copy some
code from the layout.xsl of ISO19139 schema and modify it - could you
please help me to correct it?

The attribute is "xlink:title" (in element ows:Metadata). It looks like
this in the XML:
<ows:Metadata xlink:title="keyword_1"/>
<ows:Metadata xlink:title="keyword_2"/>
<ows:Metadata xlink:title="keyword_3"/>
And I like to get an input field for each of the values (keyword1-3) and
"+" button below (to add new keywords).

The modified template looks like this:

<xsl:template mode="mode-mcp" priority="200" match="//ows:Metadata">
      <xsl:param name="schema" select="$schema" required="no"/>
      <xsl:param name="labels" select="$labels" required="no"/>

      <xsl:variable name="name" select="concat(@prefix, ':', @name)"/>
      <xsl:variable name="flatModeException"
select="gn-fn-metadata:getFieldFlatModeException($viewConfig, $name)"/>
      <xsl:variable name="directive" select="'text'"/>

      <xsl:call-template name="render-element-to-add">
          <xsl:with-param name="label"
select="/root/gui/schemas/mcp/strings/metadata"/>
          <xsl:with-param name="directive" select="if($directive !=
'text') then $directive else ''"/>
          <xsl:with-param name="childEditInfo" select="@xlink:title"/>
          <xsl:with-param name="parentEditInfo" select="../gn:element"/>
          <xsl:with-param name="isFirst"
select="count(preceding-sibling::*[name() = $name]) = 0"/>
      </xsl:call-template>
   </xsl:template>

What parameters should I modify and how? Or maybe there is a
documentation of how to do this and I just could not find it on the Web?

Christin.