Commit f101a7ef authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Merge branch 'coordinate-formating' into 'master'

Coordinate formating

See merge request Infrastructure/iso19115.MERIDIAN!9
parents 78b2f1cb ecacbec6
......@@ -7,7 +7,7 @@
xmlns:java="java:org.fao.geonet.util.XslUtil"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:georss="http://www.georss.org/georss"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:MER="https://meridian.cs.dal.ca/"
......
......@@ -7,7 +7,7 @@
xmlns:java="java:org.fao.geonet.util.XslUtil"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:georss="http://www.georss.org/georss"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:MER="https://meridian.cs.dal.ca/"
......
......@@ -24,7 +24,7 @@
-->
<xsl:stylesheet xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
......@@ -534,11 +534,9 @@
<gml:Polygon gml:id="{generate-id()}" srsName="{@srsName}">
<gml:exterior>
<gml:LinearRing>
<gml:coordinates><xsl:value-of select="$ymin"/>,<xsl:value-of select="$xmax"/>,
<xsl:value-of select="$ymax"/>,<xsl:value-of select="$xmax"/>, <xsl:value-of
select="$ymax"/>,<xsl:value-of select="$xmin"/>, <xsl:value-of select="$ymin"/>,<xsl:value-of
select="$xmin"/>, <xsl:value-of select="$ymin"/>,<xsl:value-of select="$xmax"/>
</gml:coordinates>
<gml:posList>
<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmax"/>&#160;<xsl:value-of select="$ymax"/>&#160;<xsl:value-of select="$xmax"/>&#160;<xsl:value-of select="$ymax"/>&#160;<xsl:value-of select="$xmin"/>&#160;<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmin"/>&#160;<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmax"/>
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
......
......@@ -24,7 +24,7 @@
-->
<xsl:stylesheet xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
......@@ -479,12 +479,9 @@
<gml:Polygon gml:id="{generate-id()}" srsName="{@srsName}">
<gml:exterior>
<gml:LinearRing>
<gml:coordinates><xsl:value-of select="$ymin"/>,<xsl:value-of select="$xmax"/>,
<xsl:value-of select="$ymax"/>,<xsl:value-of select="$xmax"/>, <xsl:value-of
select="$ymax"/>,<xsl:value-of select="$xmin"/>, <xsl:value-of
select="$ymin"/>,<xsl:value-of select="$xmin"/>, <xsl:value-of
select="$ymin"/>,<xsl:value-of select="$xmax"/>
</gml:coordinates>
<gml:posList>
<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmax"/>&#160;<xsl:value-of select="$ymax"/>&#160;<xsl:value-of select="$xmax"/>&#160;<xsl:value-of select="$ymax"/>&#160;<xsl:value-of select="$xmin"/>&#160;<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmin"/>&#160;<xsl:value-of select="$ymin"/>&#160;<xsl:value-of select="$xmax"/>
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
......
......@@ -36,7 +36,7 @@
xmlns:wps="http://www.opengeospatial.net/wps"
xmlns:wps1="http://www.opengis.net/wps/1.0.0"
xmlns:wps2="http://www.opengis.net/wps/2.0"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:math="http://exslt.org/math"
xmlns:exslt="http://exslt.org/common"
xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0"
......
......@@ -34,7 +34,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:MER="https://meridian.cs.dal.ca/"
......
......@@ -26,7 +26,7 @@
xmlns:nc="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:util="java:java.util.UUID"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
......
......@@ -26,7 +26,7 @@
xmlns:nc="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:util="java:java.util.UUID"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
......
......@@ -25,7 +25,7 @@
<xsl:stylesheet xmlns:app="http://www.deegree.org/app"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
......
......@@ -25,7 +25,7 @@
<xsl:stylesheet xmlns:gn="http://geonetwork-opensource.org"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
......
......@@ -28,7 +28,7 @@
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
......
......@@ -24,7 +24,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gco="http://www.isotc211.org/2005/gco"
version="2.0">
......@@ -66,11 +66,9 @@
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:coordinates><xsl:value-of select="$w"/>,<xsl:value-of select="$n"/>, <xsl:value-of
select="$e"/>,<xsl:value-of select="$n"/>, <xsl:value-of select="$e"/>,<xsl:value-of
select="$s"/>, <xsl:value-of select="$w"/>,<xsl:value-of select="$s"/>, <xsl:value-of
select="$w"/>,<xsl:value-of select="$n"/>
</gml:coordinates>
<gml:posList>
<xsl:value-of select="$w"/>&#160;<xsl:value-of select="$n"/>&#160;<xsl:value-of select="$e"/>&#160;<xsl:value-of select="$n"/>&#160;<xsl:value-of select="$e"/>&#160;<xsl:value-of select="$s"/>&#160;<xsl:value-of select="$w"/>&#160;<xsl:value-of select="$s"/>&#160;<xsl:value-of select="$w"/>&#160;<xsl:value-of select="$n"/>
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
......
......@@ -34,7 +34,7 @@
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/dwcrecord/"
xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:MER="https://meridian.cs.dal.ca/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:daobs="http://daobs.org"
......
......@@ -34,8 +34,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gss="http://www.isotc211.org/2005/gss"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/dwcrecord/"
......@@ -56,7 +54,7 @@
match="gmi:MI_Metadata|*[@gco:isoType='gmd:MD_Metadata']" priority="2">
<!-- The GetCapabilities URL -->
<xsl:variable name="capabilitiesUrl">
<xsl:call-template name="getServiceURL">
<xsl:call-template name="getServiceURLMER">
<xsl:with-param name="metadata" select="."/>
</xsl:call-template>
</xsl:variable>
......@@ -282,7 +280,7 @@
</xsl:when>
<xsl:otherwise>
<a href="#" onclick="javascript:catalogue.metadataShow('{@uuidref}');return false;">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="@uuidref"/>
</xsl:call-template>
</a>
......@@ -339,7 +337,7 @@
<xsl:if test="@uuidref = $currentUuid">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="@uuidref"/>
</xsl:call-template>
</option>
......@@ -361,7 +359,7 @@
<xsl:with-param name="text">
<a href="#"
onclick="javascript:catalogue.metadataShow('{gco:CharacterString}');return false;">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="gco:CharacterString"/>
</xsl:call-template>
</a>
......@@ -498,7 +496,7 @@
<!-- ==================================================================== -->
<xsl:template name="translatedString">
<xsl:template name="translatedStringMER">
<xsl:param name="schema"/>
<xsl:param name="langId"/>
<xsl:param name="edit" select="false()"/>
......@@ -553,7 +551,7 @@
<!-- Having only gmd:PT_FreeText is allowed by schema.
So using a PT_FreeText to set a translation even
in main metadata language could be valid.-->
<xsl:call-template name="translatedString">
<xsl:call-template name="translatedStringMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="langId" select="$langId"/>
......@@ -727,13 +725,13 @@
gco:CharacterString. To turn this on add a schema
suggestion.
-->
<xsl:template mode="iso19139.MERIDIAN" name="file-upload" match="*[gmx:FileName]">
<xsl:template name="file-uploadMER" mode="iso19139.MERIDIAN" match="*[gmx:FileName]">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:variable name="src" select="gmx:FileName/@src"/>
<xsl:call-template name="file-or-logo-upload">
<xsl:call-template name="file-or-logo-uploadMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="ref" select="gmx:FileName/geonet:element/@ref"/>
......@@ -782,7 +780,7 @@
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:call-template name="file-or-logo-upload">
<xsl:call-template name="file-or-logo-uploadMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="ref" select="gmx:FileName/geonet:element/@ref"/>
......@@ -798,7 +796,7 @@
</xsl:call-template>
</xsl:template>
<xsl:template name="file-or-logo-upload">
<xsl:template name="file-or-logo-uploadMER">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:param name="ref"/>
......@@ -1496,7 +1494,7 @@
<!-- The element identifier in the metadocument-->
<xsl:variable name="elementRef" select="../geonet:element/@ref"/>
<xsl:call-template name="snippet-editor">
<xsl:call-template name="snippet-editorMER">
<xsl:with-param name="elementRef" select="$elementRef"/>
<xsl:with-param name="widgetMode" select="$widgetMode"/>
<xsl:with-param name="thesaurusId" select="$thesaurusId"/>
......@@ -1508,7 +1506,7 @@
</xsl:template>
<xsl:template name="snippet-editor">
<xsl:template name="snippet-editorMER">
<xsl:param name="elementRef"/>
<xsl:param name="widgetMode" select="''"/>
<xsl:param name="thesaurusId"/>
......@@ -1626,7 +1624,7 @@
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="translatedString">
<xsl:call-template name="translatedStringMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="langId">
<xsl:call-template name="getLangIdMER">
......@@ -2067,7 +2065,7 @@
<!-- INSPIRE tab -->
<xsl:when test="$currTab='inspire'">
<xsl:call-template name="inspiretabs">
<xsl:call-template name="inspiretabsMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="dataset" select="$dataset"/>
......@@ -2098,7 +2096,7 @@
<!-- dataset or resource info in its own box -->
<xsl:for-each select="gmd:identificationInfo/*">
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title">
<xsl:choose>
<xsl:when test="$dataset=true()">
......@@ -2147,7 +2145,7 @@
<xsl:if test="$dataset">
<xsl:for-each select="gmd:extent/gmd:EX_Extent">
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:EX_Extent']/label"/>
<xsl:with-param name="content">
......@@ -2174,7 +2172,7 @@
<!-- scope and lineage in their own box -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:LI_Lineage']/label"/>
<xsl:with-param name="id"
......@@ -2198,7 +2196,7 @@
<!-- referenceSystemInfo in its own box -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:referenceSystemInfo']/label"/>
<xsl:with-param name="id"
......@@ -2225,7 +2223,7 @@
<!-- distribution Format and onlineResource(s) in their own box -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:distributionInfo']/label"/>
<xsl:with-param name="id"
......@@ -2257,7 +2255,7 @@
<!-- metadata info in its own box -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmi:MI_Metadata']/label"/>
<xsl:with-param name="id"
......@@ -2279,7 +2277,7 @@
<xsl:for-each select="gmd:contact">
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:contact']/label"/>
<xsl:with-param name="content">
......@@ -2348,7 +2346,7 @@
<xsl:with-param name="edit" select="$edit"/>
</xsl:apply-templates>
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title" select="'Metadata Info'"/>
<xsl:with-param name="content">
......@@ -2697,13 +2695,13 @@
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:call-template name="contactTemplate">
<xsl:call-template name="contactTemplateMER">
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="schema" select="$schema"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="contactTemplate">
<xsl:template name="contactTemplateMER">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
......@@ -3914,7 +3912,7 @@
<xsl:with-param name="text">
<xsl:variable name="metadataTitle">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="gco:CharacterString"></xsl:with-param>
</xsl:call-template>
</xsl:variable>
......@@ -4156,7 +4154,7 @@
</xsl:choose>
</xsl:variable>
<xsl:call-template name="localizedCharStringField">
<xsl:call-template name="localizedCharStringFieldMER">
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
<xsl:with-param name="class" select="$class"/>
......@@ -4249,7 +4247,7 @@
Change this template to defined another multilingual widget.
-->
<xsl:template name="localizedCharStringField">
<xsl:template name="localizedCharStringFieldMER">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:param name="class" select="''"/>
......@@ -4265,7 +4263,7 @@
<xsl:variable name="widget">
<xsl:if test="$edit=true()">
<xsl:variable name="tmpFreeText">
<xsl:call-template name="PT_FreeText_Tree"/>
<xsl:call-template name="PT_FreeText_TreeMER"/>
</xsl:variable>
......@@ -4440,7 +4438,7 @@
The lang prefix for geonet:element is used by the DataManager
to clean multilingual content and add required attribute (xsi:type).
-->
<xsl:template name="PT_FreeText_Tree">
<xsl:template name="PT_FreeText_TreeMER">
<xsl:variable name="mainLang"
select="string(/root/*/gmd:language/gco:CharacterString|/root/*/gmd:language/gmd:LanguageCode/@codeListValue)"/>
<xsl:variable name="languages"
......@@ -4451,7 +4449,7 @@
<xsl:variable name="langId"
select="concat('&#35;',string(../../../@id))"/>
<xsl:variable name="code">
<xsl:call-template name="getLangCode">
<xsl:call-template name="getLangCodeMER">
<xsl:with-param name="md"
select="ancestor-or-self::*[name(.)='gmi:MI_Metadata' or @gco:isoType='gmd:MD_Metadata']"/>
<xsl:with-param name="langId" select="substring($langId,2)"/>
......
......@@ -26,14 +26,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gss="http://www.isotc211.org/2005/gss"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/dwcrecord/"
xmlns:MER="https://meridian.cs.dal.ca/"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"
......
......@@ -33,9 +33,7 @@
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gss="http://www.isotc211.org/2005/gss"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/dwcrecord/"
......
......@@ -29,20 +29,14 @@
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:gmi="http://standards.iso.org/iso/19115/-2/gmi/1.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gss="http://www.isotc211.org/2005/gss"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/dwcrecord/"
xmlns:MER="https://meridian.cs.dal.ca/"
xmlns:java="java:org.fao.geonet.util.XslUtil" version="2.0">
<!--
Template for INSPIRE tab
http://inspire.jrc.ec.europa.eu/reports/ImplementingRules/metadata/MD_IR_and_ISO_20090218.pdf
-->
<xsl:template name="inspiretabs">
<xsl:template name="inspiretabsMER">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:param name="dataset"/>
......@@ -50,7 +44,7 @@
<xsl:for-each
select="gmd:identificationInfo/*[namespace-uri() != 'http://www.fao.org/geonetwork']">
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/identification/title"/>
<xsl:with-param name="id"
......@@ -93,7 +87,7 @@
</xsl:apply-templates>
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/iso19139.MERIDIAN/element[@name='srv:operatesOn']/label"/>
<xsl:with-param name="content">
......@@ -210,7 +204,7 @@
<!-- Classification of spatial data and services -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/classification/title"/>
<xsl:with-param name="id"
......@@ -248,7 +242,7 @@
<!-- Keywords -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/keywords/title"/>
<xsl:with-param name="id"
......@@ -276,7 +270,7 @@
</xsl:call-template>
<!-- Extent information -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/geoloc/title"/>
<xsl:with-param name="id"
......@@ -319,7 +313,7 @@
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/temporal/title"/>
<xsl:with-param name="id"
......@@ -359,7 +353,7 @@
<!-- Reference system info -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/schemas/iso19139.MERIDIAN/labels/element[@name='gmd:referenceSystemInfo']/label"/>
<xsl:with-param name="id"
......@@ -382,7 +376,7 @@
<!-- Quality and validity -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/quality/title"/>
<xsl:with-param name="id"
......@@ -429,7 +423,7 @@
<!-- Conformity -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/conformity/title"/>
<xsl:with-param name="id"
......@@ -456,7 +450,7 @@
</xsl:call-template>
<!-- Constraint -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/constraint/title"/>
<xsl:with-param name="id"
......@@ -464,7 +458,7 @@
<xsl:with-param name="content">
<xsl:variable name="schematitle"
select="string(/root/gui/iso19139.MERIDIAN/element[@name='gmd:resourceConstraints']/label)"/>
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title" select="$schematitle"/>
<xsl:with-param name="content">
<xsl:apply-templates mode="complexElement"
......@@ -487,7 +481,7 @@
</xsl:call-template>
<!-- Organisation -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/org/title"/>
<xsl:with-param name="id"
......@@ -514,14 +508,14 @@
</xsl:call-template>
<!-- Metadata -->
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="/root/gui/strings/inspireSection/metadata/title"/>
<xsl:with-param name="id"
select="generate-id(/root/gui/strings/inspireSection/metadata/title)"/>
<xsl:with-param name="content">