Commit 3b029735 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Fixes to duplicate template names

parent 78b2f1cb
......@@ -42,7 +42,7 @@
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 +50,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"
......@@ -210,7 +210,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 +248,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 +276,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 +319,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 +359,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 +382,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 +429,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 +456,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 +464,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 +487,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 +514,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">
<xsl:call-template name="complexElementGuiWrapper">
<xsl:call-template name="complexElementGuiWrapperMER">
<xsl:with-param name="title"
select="string(/root/gui/*[name(.)=$schema]/element[@name='gmi:MI_Metadata']/label)"/>
<xsl:with-param name="content">
......
......@@ -119,7 +119,7 @@
</xsl:template>
<!-- Get lang codeListValue in metadata PT_Locale section, if not return eng by default -->
<xsl:template name="getLangCode">
<xsl:template name="getLangCodeMER">
<xsl:param name="md"/>
<xsl:param name="langId"/>
......@@ -140,7 +140,7 @@
Title is loaded from current language index if available.
If not, default title is returned.
If failed, return uuid. -->
<xsl:template name="getMetadataTitle">
<xsl:template name="getMetadataTitleMER">
<xsl:param name="uuid"/>
<xsl:variable name="metadataTitle"
select="java:getIndexField(string(substring(/root/gui/url, 2)), string($uuid), 'title', string(/root/gui/language))"/>
......@@ -175,7 +175,7 @@
In view mode link to related resources are displayed
In edit mode link to add elements are provided.
-->
<xsl:template name="relatedResources">
<xsl:template name="relatedResourcesMER">
<xsl:param name="edit"/>
<xsl:variable name="metadata"
......@@ -199,7 +199,7 @@
<!-- The GetCapabilities URL -->
<xsl:variable name="capabilitiesUrl">
<xsl:call-template name="getServiceURL">
<xsl:call-template name="getServiceURLMER">
<xsl:with-param name="metadata" select="$metadata"/>
</xsl:call-template>
</xsl:variable>
......@@ -217,7 +217,7 @@
<ul>
<li>
<a class="arrow" href="metadata.show?uuid={uuid}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="uuid"/>
</xsl:call-template>
</a>
......@@ -248,7 +248,7 @@
<xsl:if test="normalize-space($parent)!=''">
<li>
<a class="arrow" href="metadata.show?uuid={$parent}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="$parent"/>
</xsl:call-template>
</a>
......@@ -257,7 +257,7 @@
<li>
<ul>
<li>
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="$uuid"/>
</xsl:call-template>
</li>
......@@ -267,7 +267,7 @@
<xsl:for-each select="$children">
<li>
<a class="arrow" href="metadata.show?uuid={geonet:info/uuid}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="geonet:info/uuid"/>
</xsl:call-template>
</a>
......@@ -339,7 +339,7 @@
<xsl:for-each select="$services">
<li>
<a class="arrow" href="metadata.show?uuid={geonet:info/uuid}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="geonet:info/uuid"/>
</xsl:call-template>
</a>
......@@ -380,7 +380,7 @@
select="$metadata/gmd:identificationInfo/(srv:SV_ServiceIdentification | *[contains(@gco:isoType, 'SV_ServiceIdentification')])/srv:operatesOn[@uuidref!='']">
<li>
<a class="arrow" href="metadata.show?uuid={@uuidref}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="@uuidref"/>
</xsl:call-template>
</a>
......@@ -431,7 +431,7 @@
<xsl:for-each select="$relatedRecords">
<li>
<a class="arrow" href="metadata.show?uuid={geonet:info/uuid}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="geonet:info/uuid"/>
</xsl:call-template>
</a>
......@@ -451,7 +451,7 @@
<xsl:for-each select="$relatedRecords">
<li>
<a class="arrow" href="metadata.show?uuid={geonet:info/uuid}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="geonet:info/uuid"/>
</xsl:call-template>
</a>
......@@ -518,7 +518,7 @@
</xsl:template>
<!-- Create a service URL for a service metadata record. -->
<xsl:template name="getServiceURL">
<xsl:template name="getServiceURLMER">
<xsl:param name="metadata"/>
<!-- Get Service URL from GetCapabilities Operation, if null from distribution information-->
......
......@@ -259,7 +259,7 @@
</xsl:when>
<xsl:otherwise>
<a href="metadata.show?uuid={@uuidref}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="@uuidref"/>
</xsl:call-template>
</a>
......@@ -312,7 +312,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>
......@@ -333,7 +333,7 @@
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="text">
<a href="metadata.show?uuid={gco:CharacterString}">
<xsl:call-template name="getMetadataTitle">
<xsl:call-template name="getMetadataTitleMER">
<xsl:with-param name="uuid" select="gco:CharacterString"/>
</xsl:call-template>
</a>
......@@ -463,7 +463,7 @@
<!-- ==================================================================== -->
<xsl:template name="translatedString">
<xsl:template name="translatedStringMER">
<xsl:param name="schema"/>
<xsl:param name="edit"/>
<xsl:param name="rows" select="1"/>
......@@ -526,7 +526,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="rows" select="$rows"/>
<xsl:with-param name="cols" select="$cols"/>
......@@ -709,7 +709,7 @@
<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"/>
......@@ -762,7 +762,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"/>
......@@ -778,7 +778,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"/>
......@@ -1247,7 +1247,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">
......@@ -1555,7 +1555,7 @@
</xsl:if>
<xsl:if test="/root/gui/config/editor-metadata-relation">
<div style="float:right;">
<xsl:call-template name="relatedResources">
<xsl:call-template name="relatedResourcesMER">
<xsl:with-param name="edit" select="$edit"/>
</xsl:call-template>
</div>
......@@ -1726,7 +1726,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"/>
......@@ -1755,7 +1755,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()">
......@@ -1838,7 +1838,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">
......@@ -1865,7 +1865,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"
......@@ -1895,7 +1895,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"
......@@ -1925,7 +1925,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"
......@@ -1957,7 +1957,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"
......@@ -2004,7 +2004,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">
......@@ -2088,7 +2088,7 @@
to override default values (eg. id are used for collapsible fieldset).
-->
<xsl:template name="complexElementGuiWrapper">
<xsl:template name="complexElementGuiWrapperMER">
<xsl:param name="title"/>
<xsl:param name="content"/>
<xsl:param name="schema"/>
......@@ -2227,7 +2227,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">
......@@ -2843,13 +2843,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"/>
......@@ -4291,7 +4291,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>
......@@ -4502,7 +4502,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="rows" select="$rows"/>
......@@ -4596,7 +4596,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="rows" select="1"/>
......@@ -4612,7 +4612,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>
<xsl:variable name="ptFreeTextTree" select="exslt:node-set($tmpFreeText)"/>
......@@ -4811,7 +4811,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"
......@@ -4822,7 +4822,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)"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment