📄 metadata-iso19115.xsl.svn-base
字号:
</xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="envirDesc|geonet:child[string(@name)='envirDesc']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:variable> <xsl:apply-templates mode="complexElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> <xsl:with-param name="content" select="$content"/> </xsl:apply-templates> </xsl:template> <!-- rpCntInfo: ISO order is: - rpIndName - rpOrgName - rpPosName - rpCntInfo - role --> <xsl:template mode="iso19115" match="mdContact|idPoC"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:variable name="content"> <xsl:if test="*"> <td class="padded-content" width="100%" colspan="2"> <table width="100%"> <tr> <td width="50%" valign="top"> <table width="100%"> <xsl:apply-templates mode="elementEP" select="rpIndName|geonet:child[string(@name)='rpIndName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="rpOrgName|geonet:child[string(@name)='rpOrgName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="rpPosName|geonet:child[string(@name)='rpPosName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="role|geonet:child[string(@name)='role']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </table> </td> <td valign="top"> <table width="100%"> <xsl:apply-templates mode="elementEP" select="rpCntInfo|geonet:child[string(@name)='rpCntInfo']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </table> </td> </tr> </table> </td> </xsl:if> </xsl:variable> <xsl:apply-templates mode="complexElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> <xsl:with-param name="content" select="$content"/> </xsl:apply-templates> </xsl:template> <!-- codelists --> <xsl:template mode="iso19115" match="*[(substring(name(*), string-length(name(*))-1, 2)='Cd' and name(.)!='mdChar') or name(*)='languageCode']"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:call-template name="iso19115Codelist"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:call-template> </xsl:template> <xsl:template name="iso19115Codelist"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> <xsl:with-param name="text"> <xsl:apply-templates mode="iso19115GetAttributeText" select="*/@value"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:with-param> </xsl:apply-templates> </xsl:template> <xsl:template mode="iso19115GetAttributeText" match="@*"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:call-template name="getAttributeText"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:call-template> </xsl:template> <!-- make the following fields always not editable: mdDateSt mdStanName mdStanVer mdFileID mdChar --> <xsl:template mode="iso19115" match="mdDateSt|mdStanName|mdStanVer|mdFileID"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:apply-templates mode="element" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="false()"/> </xsl:apply-templates> </xsl:template> <xsl:template mode="iso19115" match="mdChar"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:call-template name="iso19115Codelist"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="false()"/> </xsl:call-template> </xsl:template> <!-- online resources --> <xsl:template mode="iso19115" match="onLineSrc"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19115EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="text"> <a href="{linkage}" target="_new"> <xsl:choose> <xsl:when test="string(orDesc)!=''"> <xsl:value-of select="orDesc"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="linkage"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template mode="iso19115EditOnlineRes" match="*"> <xsl:param name="schema"/> <xsl:apply-templates mode="complexElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> <xsl:with-param name="content"> <xsl:apply-templates mode="elementEP" select="linkage|geonet:child[string(@name)='linkage']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="protocol|geonet:child[string(@name)='protocol']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="appProfile|geonet:child[string(@name)='appProfile']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:choose> <xsl:when test="protocol='WWW:DOWNLOAD-1.0-http--download' and string(orName)!=''"> <xsl:apply-templates mode="iso19115FileRemove" select="orName"> <xsl:with-param name="access" select="'private'"/> </xsl:apply-templates> </xsl:when> <xsl:when test="protocol='WWW:DOWNLOAD-1.0-http--download' and orName"> <xsl:apply-templates mode="iso19115FileUpload" select="orName"> <xsl:with-param name="access" select="'private'"/> </xsl:apply-templates> </xsl:when> <xsl:when test="protocol='WWW:LINK-1.0-http--link'"/> <!-- hide orName for www links --> <xsl:otherwise> <xsl:apply-templates mode="elementEP" select="orName|geonet:child[string(@name)='orName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> <xsl:apply-templates mode="elementEP" select="orDesc|geonet:child[string(@name)='orDesc']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="orFunct|geonet:child[string(@name)='orFunct']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> </xsl:with-param> </xsl:apply-templates> </xsl:template> <!-- online resources: WMS get map --> <xsl:template mode="iso19115" match="onLineSrc[starts-with(protocol,'OGC:WMS-') and contains(protocol,'-get-map') and orName]"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19115EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(../../../geonet:info/dynamic)='true'"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="title" select="/root/gui/strings/interactiveMap"/> <xsl:with-param name="text"> <a href="javascript:popInterMap('{/root/gui/url}/intermap/srv/{/root/gui/language}/map.addServicesExt?url={linkage}&service={orName}&type=2')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(orDesc)!=''"> <xsl:value-of select="orDesc"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="orName"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- online resources: WMS get capabilities --> <xsl:template mode="iso19115" match="onLineSrc[starts-with(protocol,'OGC:WMS-') and contains(protocol,'-get-capabilities') and orName]"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19115EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(../../../geonet:info/dynamic)='true'"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="title" select="/root/gui/strings/interactiveMap"/> <xsl:with-param name="text"> <a href="javascript:popInterMap('{/root/gui/url}/intermap/srv/{/root/gui/language}/map.addServicesExt?url={linkage}&type=2')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(orDesc)!=''"> <xsl:value-of select="orDesc"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="orName"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- online resources: ARCIMS --> <xsl:template mode="iso19115" match="onLineSrc[starts-with(./protocol,'ESRI:AIMS-') and contains(./protocol,'-get-image') and ./orName]"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19115EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(../../../geonet:info/dynamic)='true'"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="title" select="/root/gui/strings/interactiveMap"/> <xsl:with-param name="text"> <a href="javascript:popInterMap('{/root/gui/url}/intermap/srv/{/root/gui/language}/map.addServicesExt?url={linkage}&service={orName}&type=1')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(orDesc)!=''"> <xsl:value-of select="orDesc"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="orName"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- online resources: download --> <xsl:template mode="iso19115" match="onLineSrc[starts-with(./protocol,'WWW:DOWNLOAD-') and contains(./protocol,'http--download') and ./orName]"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19115EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(../../../geonet:info/download)='true'">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -