⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metadata-iso19115.xsl.svn-base

📁 由国外的一个著名的geonetwork修改而来
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
				<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="{linkage}" target="_blank">							<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>	<!--	protocol	-->	<xsl:template mode="iso19115" match="protocol">		<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(.)"/>						<select name="_{geonet:element/@ref}" size="1">							<xsl:if test="string(.)=''">								<option value=""/>							</xsl:if>							<xsl:for-each select="/root/gui/strings/protocolChoice[@value]">								<option>									<xsl:if test="string(@value)=$value">										<xsl:attribute name="selected"/>									</xsl:if>									<xsl:attribute name="value"><xsl:value-of select="string(@value)"/></xsl:attribute>									<xsl:value-of select="string(.)"/>								</option>							</xsl:for-each>						</select>					</xsl:with-param>				</xsl:apply-templates>			</xsl:when>			<xsl:otherwise>				<xsl:apply-templates mode="element" select=".">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="false()"/>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>		<!--	graphOver	-->	<xsl:template mode="iso19115" match="graphOver">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:if test="$edit=true() and $currTab!='simple'">			<xsl:apply-templates mode="iso19115EditGraphOver" select=".">				<xsl:with-param name="schema" select="$schema"/>			</xsl:apply-templates>		</xsl:if>	</xsl:template>		<xsl:template mode="iso19115EditGraphOver" 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:choose>					<xsl:when test="(string(bgFileDesc)='thumbnail' or string(bgFileDesc)='large_thumbnail') and string(bgFileName)!=''">						<xsl:apply-templates mode="iso19115FileRemove" select="bgFileName"/>					</xsl:when>					<xsl:when test="string(bgFileDesc)='thumbnail' or string(bgFileDesc)='large_thumbnail'">						<xsl:apply-templates mode="iso19115FileUpload" select="bgFileName"/>					</xsl:when>					<xsl:otherwise>						<xsl:apply-templates mode="elementEP" select="bgFileName|geonet:child[string(@name)='bgFileName']">							<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="bgFileDesc|geonet:child[string(@name)='bgFileDesc']">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="true()"/>				</xsl:apply-templates>								<xsl:apply-templates mode="elementEP" select="bgFileType|geonet:child[string(@name)='bgFileType']">					<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>		<!--	bgFileDesc	-->	<xsl:template mode="iso19115" match="bgFileDesc">		<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(.)"/>						<select name="_{geonet:element/@ref}" size="1">							<xsl:if test="string(.)=''">								<option value=""/>							</xsl:if>							<xsl:for-each select="/root/gui/strings/bgFileDescChoice[@value]">								<option value="{string(@value)}">									<xsl:if test="string(@value)=$value">										<xsl:attribute name="selected"/>									</xsl:if>									<xsl:value-of select="string(.)"/>								</option>							</xsl:for-each>						</select>					</xsl:with-param>				</xsl:apply-templates>			</xsl:when>			<xsl:otherwise>				<xsl:apply-templates mode="element" select=".">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="false()"/>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>		<!--	eMailAdd	-->	<xsl:template mode="iso19115" match="eMailAdd">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:choose>			<xsl:when test="$edit=true()">				<xsl:apply-templates mode="element" select=".">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="true()"/>				</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="mailto:{string(.)}"><xsl:value-of select="string(.)"/></a>					</xsl:with-param>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>		<!--	descKeys	-->	<xsl:template mode="iso19115" match="descKeys">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:choose>			<xsl:when test="$edit=true()">				<xsl:apply-templates mode="element" select=".">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="true()"/>				</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">						<xsl:for-each select="keyword">							<xsl:if test="position() &gt; 1">,	</xsl:if>							<xsl:value-of select="."/>						</xsl:for-each>						<xsl:if test="keyTyp/KeyTypCd/@value!=''">							<xsl:text> (</xsl:text>							<xsl:value-of select="keyTyp/KeyTypCd/@value"/>							<xsl:text>)</xsl:text>						</xsl:if>						<xsl:text>.</xsl:text>					</xsl:with-param>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>	<!--	place keyword; only called in edit mode (see descKeys template)	-->	<xsl:template mode="iso19115" match="keyword[following-sibling::keyTyp/KeyTypCd/@value='place']">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:variable name="text">			<xsl:variable name="ref" select="geonet:element/@ref"/>			<xsl:variable name="keyword" select="string(.)"/>						<input class="md" type="text" name="_{$ref}" value="{text()}" size="50" />			<!-- regions combobox -->			<xsl:variable name="lang" select="/root/gui/language"/>			<select name="place" size="1" onChange="document.mainForm._{$ref}.value=this.options[this.selectedIndex].text">				<option value=""/>				<xsl:for-each select="/root/gui/regions/record">					<xsl:sort select="label/child::*[name() = $lang]" order="ascending"/>					<option value="{id}">						<xsl:if test="string(label/child::*[name() = $lang])=$keyword">							<xsl:attribute name="selected"/>						</xsl:if>						<xsl:value-of select="label/child::*[name() = $lang]"/>					</option>				</xsl:for-each>			</select>		</xsl:variable>		<xsl:apply-templates mode="simpleElement" select=".">			<xsl:with-param name="schema" select="$schema"/>			<xsl:with-param name="edit"   select="true()"/>			<xsl:with-param name="text"   select="$text"/>		</xsl:apply-templates>	</xsl:template>			<!--	geoBox	-->	<xsl:template mode="iso19115" match="geoBox">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:variable name="geoBox">			<xsl:apply-templates mode="iso19115GeoBox" select=".">				<xsl:with-param name="schema" select="$schema"/>				<xsl:with-param name="edit"   select="$edit"/>			</xsl:apply-templates>		</xsl:variable>				<xsl:choose>			<xsl:when test="$edit=true()">				<xsl:variable name="places">					<xsl:variable name="ref" select="geonet:element/@ref"/>					<xsl:variable name="keyword" select="string(.)"/>										<xsl:variable name="selection" select="concat(westBL,';',eastBL,';',southBL,';',northBL)"/>					<!-- regions combobox -->					<xsl:variable name="lang" select="/root/gui/language"/>					<select name="place" size="1" onChange="javascript:setRegion(document.mainForm._{westBL/geonet:element/@ref}, document.mainForm._{eastBL/geonet:element/@ref}, document.mainForm._{southBL/geonet:element/@ref}, document.mainForm._{northBL/geonet:element/@ref}, this.options[this.selectedIndex].value)">						<option value=""/>						<xsl:for-each select="/root/gui/regions/record">							<xsl:sort select="label/child::*[name() = $lang]" order="ascending"/>							<xsl:variable name="value" select="concat(west,';',east,';',south,';',north)"/>							<option value="{$value}">								<xsl:if test="$value=$selection">									<xsl:attribute name="selected"/>								</xsl:if>								<xsl:value-of select="label/child::*[name() = $lang]"/>							</option>						</xsl:for-each>					</select>				</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">						<tr>							<td align="center">								<xsl:copy-of select="$geoBox"/>							</td>							<td>								<xsl:copy-of select="$places"/>							</td>						</tr>					</xsl:with-param>				</xsl:apply-templates>			</xsl:when>			<xsl:otherwise>				<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">						<tr>							<td align="center">								<xsl:copy-of select="$geoBox"/>							</td>						</tr>					</xsl:with-param>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>	<xsl:template mode="iso19115GeoBox" match="*">		<xsl:param name="schema"/>		<xsl:param name="edit"/>		<table>			<tr>				<td/>				<td class="padded" align="center">					<xsl:apply-templates mode="iso19115VertElement" select="northBL">						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>					</xsl:apply-templates>				</td>				<td/>			</tr>			<tr>				<td class="padded" align="center">					<xsl:apply-templates mode="iso19115VertElement" select="westBL">						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>					</xsl:apply-templates>				</td>								<!--				<td class="box" width="100" height="100" align="center">				-->				<xsl:variable name="md">					<xsl:apply-templates mode="brief" select="../.."/>				</xsl:variable>				<xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/>				<td width="100" height="100" align="center">					<xsl:call-template name="thumbnail">						<xsl:with-param name="metadata" select="$metadata"/>					</xsl:call-template>				</td>								<td class="padded" align="center">					<xsl:apply-templates mode="iso19115VertElement" select="eastBL">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -