📄 metadata-iso19139.xsl.svn-base
字号:
<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:dataQualityInfo/*"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:when> <!-- appSchInfo tab --> <xsl:when test="$currTab='appSchInfo'"> <xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:applicationSchemaInfo/*"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:when> <!-- porCatInfo tab --> <xsl:when test="$currTab='porCatInfo'"> <xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:portrayalCatalogueInfo/*"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:when> <!-- default --> <xsl:otherwise> <!-- thumbnail --> <tr> <td class="padded" align="center" valign="center" colspan="2"> <xsl:variable name="md"> <xsl:apply-templates mode="brief" select="."/> </xsl:variable> <xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/> <xsl:call-template name="thumbnail"> <xsl:with-param name="metadata" select="$metadata"/> </xsl:call-template> </td> </tr> <xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/*"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- FIXME rpCntInfo: ISO order is: - rpIndName - rpOrgName - rpPosName - rpCntInfo - role --> <xsl:template mode="iso19139" 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> <!-- online resources --> <xsl:template mode="iso19139" match="gmd:CI_OnlineResource" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19139EditOnlineRes" 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="{gmd:linkage/gmd:URL}" target="_new"> <xsl:choose> <xsl:when test="string(gmd:description/gco:CharacterString)!=''"> <xsl:value-of select="gmd:description/gco:CharacterString"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="gmd:linkage/gmd:URL"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template mode="iso19139EditOnlineRes" 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="gmd: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="gmd: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="gmd:applicationProfile|geonet:child[string(@name)='applicationProfile']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:choose> <xsl:when test="string(gmd:protocol/gco:CharacterString)='WWW:DOWNLOAD-1.0-http--download' and string(gmd:name/gco:CharacterString)!=''"> <xsl:apply-templates mode="iso19139FileRemove" select="gmd:name/gco:CharacterString"> <xsl:with-param name="access" select="'private'"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(gmd:protocol/gco:CharacterString)='WWW:DOWNLOAD-1.0-http--download' and gmd:name"> <xsl:apply-templates mode="iso19139FileUpload" select="gmd:name/gco:CharacterString"> <xsl:with-param name="access" select="'private'"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(gmd:protocol/gco:CharacterString)='WWW:LINK-1.0-http--link'"/> <!-- hide orName for www links --> <xsl:otherwise> <xsl:apply-templates mode="elementEP" select="gmd:name/gco:CharacterString|geonet:child[string(@name)='name']"> <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="gmd:description|geonet:child[string(@name)='description']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="true()"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="gmd:function|geonet:child[string(@name)='function']"> <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="iso19139" match="gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'OGC:WMS-') and contains(gmd:protocol/gco:CharacterString,'-get-map') and gmd:name]" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19139EditOnlineRes" 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={gmd:linkage/gmd:URL}&service={gmd:name/gco:CharacterString}&type=2')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(gmd:description/gco:CharacterString)!=''"> <xsl:value-of select="gmd:description/gco:CharacterString"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="gmd:name/gco:CharacterString"/> </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="iso19139" match="gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'OGC:WMS-') and contains(gmd:protocol/gco:CharacterString,'-get-capabilities') and gmd:name]" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19139EditOnlineRes" 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={gmd:linkage/gmd:URL}&type=2')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(gmd:description/gco:CharacterString)!=''"> <xsl:value-of select="gmd:description/gco:CharacterString"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="gmd:name/gco:CharacterString"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- online resources: ARCIMS --> <xsl:template mode="iso19139" match="gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'ESRI:AIMS-') and contains(gmd:protocol/gco:CharacterString,'-get-image') and gmd:name]" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19139EditOnlineRes" 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={gmd:linkage/gmd:URL}&service={gmd:name/gco:CharacterString}&type=1')" title="{/root/strings/interactiveMap}"> <xsl:choose> <xsl:when test="string(gmd:description/gco:CharacterString)!=''"> <xsl:value-of select="gmd:description/gco:CharacterString"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="gmd:name/gco:CharacterString"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- online resources: download --> <xsl:template mode="iso19139" match="gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'WWW:DOWNLOAD-') and contains(gmd:protocol/gco:CharacterString,'http--download') and gmd:name]" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="iso19139EditOnlineRes" select="."> <xsl:with-param name="schema" select="$schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="string(../../../../../../../../geonet:info/download)='true'"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="title" select="/root/gui/strings/downloadData"/> <xsl:with-param name="text"> <a href="{gmd:linkage/gmd:URL}" target="_blank"> <xsl:choose> <xsl:when test="string(gmd:description/gco:CharacterString)!=''"> <xsl:value-of select="gmd:description/gco:CharacterString"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="gmd:name/gco:CharacterString"/> </xsl:otherwise> </xsl:choose> </a> </xsl:with-param> </xsl:apply-templates> </xsl:when> </xsl:choose> </xsl:template> <!-- protocol --> <xsl:template mode="iso19139" match="gmd:protocol" priority="2"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=true()"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="text"> <xsl:variable name="value" select="string(gco:CharacterString)"/> <select name="_{gco:CharacterString/geonet:element/@ref}" size="1"> <xsl:if test="$value=''"> <option value=""/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -