Opened 11 years ago

Last modified 11 years ago

#1222 new enhancement

Editor / Wiki formatting / Configure per schema

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

Description

Add mechanism to configure field with wiki syntax per schema.

Change History (1)

comment:1 by fxp, 11 years ago

Proposal:

  • use saxon:call template using schema identifier in template name in layout.xsl
            <saxon:call-template name="{concat('permitMarkup-',$schema)}"/>
    
  • add mode for configuration in <schema>/present/metadata-markup.xsl
    	<xsl:template name="permitMarkup-iso19139">
    		<xsl:apply-templates mode="permitMarkup-iso19139" select="."/>
    	</xsl:template>
    
    	<xsl:template mode="permitMarkup-iso19139"
    		match="gmd:abstract | gmd:description | gmd:statement | gmd:purpose | gmd:supplementalInformation">
    		<xsl:value-of select="true()"/>
    	</xsl:template>
    	<xsl:template mode="permitMarkup-iso19139" match="*">
    		<xsl:value-of select="false()"/>
    	</xsl:template>
    
Note: See TracTickets for help on using tickets.