Opened 12 years ago

Closed 12 years ago

#1001 closed defect (fixed)

Profile / Can't create custom tabs for more than one profile

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

Description

extraTabs mode is overriden when having more than one iso19139 profile loaded. Use a call template instead iso19139ExtraTab, iso19139.sextantExtraTab, ...

Change History (1)

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

https://github.com/geonetwork/core-geonetwork/commit/26b92fdf727ebc6d328dff53c0169dc48580ac92

To customize complete tab (and add new ones) use:

 <xsl:template name="iso19139.profileIdCompleteTab">
    <xsl:param name="tabLink"/>
    <xsl:param name="schema"/>
    <xsl:call-template name="iso19139CompleteTab">
      <xsl:with-param name="tabLink" select="$tabLink"/>
      <xsl:with-param name="schema" select="$schema"/>
    </xsl:call-template>
    
    <xsl:call-template name="mainTab">
      <xsl:with-param name="title" select="/root/gui/schemas/*[name()=$schema]/strings/tab"/>
      <xsl:with-param name="default">profileId</xsl:with-param>
      <xsl:with-param name="menu">
      <item label="profileIdTab">profileId</item>
      </xsl:with-param>
    </xsl:call-template>
    </xsl:template>
Note: See TracTickets for help on using tickets.