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

📄 metadata-iso19115.xsl.svn-base

📁 由国外的一个著名的geonetwork修改而来
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>					</xsl:apply-templates>				</td>			</tr>			<tr>				<td/>				<td class="padded" align="center">					<xsl:apply-templates mode="iso19115VertElement" select="southBL">						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>					</xsl:apply-templates>				</td>				<td/>			</tr>		</table>	</xsl:template>		<xsl:template mode="iso19115VertElement" match="*">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:variable name="title">			<xsl:call-template name="getTitle">				<xsl:with-param name="name"   select="name(.)"/>				<xsl:with-param name="schema" select="$schema"/>			</xsl:call-template>		</xsl:variable>		<xsl:variable name="helpLink">			<xsl:call-template name="getHelpLink">				<xsl:with-param name="name"   select="name(.)"/>				<xsl:with-param name="schema" select="$schema"/>			</xsl:call-template>		</xsl:variable>		<b>			<xsl:choose>				<xsl:when test="$helpLink!=''">					<a href="javascript:popNew('{$helpLink}')"><xsl:value-of select="$title"/></a>				</xsl:when>				<xsl:otherwise>					<xsl:value-of select="$title"/>				</xsl:otherwise>			</xsl:choose>		</b>		<br/>		<xsl:call-template name="getElementText">			<xsl:with-param name="schema" select="$schema"/>			<xsl:with-param name="edit"   select="$edit"/>			<xsl:with-param name="cols"  select="10"/>		</xsl:call-template>	</xsl:template>	<!--	idAbs	-->	<xsl:template mode="iso19115" match="idAbs">		<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:call-template name="getElementText">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>					<xsl:with-param name="rows"   select="10"/>				</xsl:call-template>			</xsl:with-param>		</xsl:apply-templates>	</xsl:template>		<!--	suppInfo	idPurp	-->	<xsl:template mode="iso19115" match="suppInfo|idPurp">		<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:call-template name="getElementText">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>					<xsl:with-param name="rows"   select="5"/>				</xsl:call-template>			</xsl:with-param>		</xsl:apply-templates>	</xsl:template>		<!--	DateTime (format = %Y-%m-%dT%H:%M:00)	measDateTm	stepDateTm	usageDate	planAvDtTm	begin (with TM_Period as parent element)	end (with TM_Period as parent element)	clkTime (should only select time, not date. so not added at this point as the calendar is maybe not the best option for this)	-->	<xsl:template mode="iso19115" match="measDateTm|stepDateTm|usageDate|planAvDtTm|begin[parent::TM_Period]|end[parent::TM_Period]">		<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="ref" select="geonet:element/@ref"/>												<table width="100%"><tr>							<td>								<input class="md" type="text" name="_{$ref}" id="_{$ref}_cal" value="{text()}" size="30" readonly="1"/>							</td>							<td align="center" width="30" valign="middle">								<img src="{/root/gui/url}/scripts/calendar/img.gif"									 id="_{$ref}_trigger"									 style="cursor: pointer; border: 1px solid;"									 title="Date selector"									 onmouseover="this.style.background='red';"									 onmouseout="this.style.background=''" />								<script type="text/javascript">									Calendar.setup(										{											inputField  : &quot;_<xsl:value-of select="$ref"/>_cal&quot;,         // ID of the input field											ifFormat    : "%Y-%m-%dT%H:%M:00",                                // the date format											showsTime   : true, // Show the time											button      : &quot;_<xsl:value-of select="$ref"/>_trigger&quot;  // ID of the button										}									);									Calendar.setup(										{											inputField  : &quot;_<xsl:value-of select="$ref"/>_cal&quot;,         // ID of the input field											ifFormat    : "%Y-%m-%dT%H:%M:00",                                // the date format											showsTime   : true, // Show the time											button      : &quot;_<xsl:value-of select="$ref"/>_cal&quot;  // ID of the button										}									);								</script>							</td>							<td align="left" width="100%">								<xsl:text>  </xsl:text>								<a href="JavaScript:clear{$ref}();"> <xsl:value-of select="/root/gui/strings/clear"/></a>								<script type="text/javascript">									function clear<xsl:value-of select="$ref"/>()	{										document.mainForm._<xsl:value-of select="$ref"/>.value = &quot;&quot;									}								</script>							</td>						</tr></table>					</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="$edit"/>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>	<!--	- Date (format = %Y-%m-%d)	refDate (child from CI_Date)	resEdDate	dateNext	calDate	mdDateSt is not editable (!we use DateTime instead of only Date!)	-->	<xsl:template mode="iso19115" match="refDate|resEdDate|dateNext|calDate">		<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="ref" select="geonet:element/@ref"/>												<table width="100%"><tr>							<td>								<input class="md" type="text" name="_{$ref}" id="_{$ref}_cal" value="{text()}" size="30" readonly="1"/>							</td>							<td align="center" width="30" valign="middle">								<img src="{/root/gui/url}/scripts/calendar/img.gif"									 id="_{$ref}_trigger"									 style="cursor: pointer; border: 1px solid;"									 title="Date selector"									 onmouseover="this.style.background='red';"									 onmouseout="this.style.background=''" />								<script type="text/javascript">									Calendar.setup(										{											inputField  : &quot;_<xsl:value-of select="$ref"/>_cal&quot;,         // ID of the input field											ifFormat    : "%Y-%m-%d",                                // the date format											showsTime : false, // Do not show the time											button      : &quot;_<xsl:value-of select="$ref"/>_trigger&quot;  // ID of the button										}									);									Calendar.setup(										{											inputField  : &quot;_<xsl:value-of select="$ref"/>_cal&quot;,         // ID of the input field											ifFormat    : "%Y-%m-%d",                                // the date format											showsTime : false, // Do not show the time											button      : &quot;_<xsl:value-of select="$ref"/>_cal&quot;  // ID of the button										}									);								</script>							</td>							<td align="left" width="100%">								<xsl:text>  </xsl:text><a href="JavaScript:clear{$ref}();"> clear</a>								<script type="text/javascript">									function clear<xsl:value-of select="$ref"/>()	{										document.mainForm._<xsl:value-of select="$ref"/>.value = &quot;&quot;									}								</script>							</td>						</tr></table>					</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="$edit"/>				</xsl:apply-templates>			</xsl:otherwise>		</xsl:choose>	</xsl:template>	<!--	placeholder	<xsl:template mode="iso19115" match="TAG">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				BODY	</xsl:template>	-->		<!--	file upload/download utilities	-->		<xsl:template mode="iso19115FileUpload" match="*">		<xsl:param name="access" select="'public'"/>			<xsl:call-template name="simpleElementGui">			<xsl:with-param name="title" select="/root/gui/strings/file"/>			<xsl:with-param name="text">				<table width="100%"><tr>					<xsl:variable name="ref" select="geonet:element/@ref"/>					<td width="70%"><input type="file" class="content" name="f_{$ref}" value="{string(.)}"/>&#160;</td>					<td align="right"><button class="content" onclick="javascript:doFileUploadAction('{/root/gui/locService}/resources.upload','{$ref}',document.mainForm.f_{$ref}.value,'{$access}')"><xsl:value-of select="/root/gui/strings/upload"/></button></td>				</tr></table>			</xsl:with-param>			<xsl:with-param name="schema"/>		</xsl:call-template>	</xsl:template>		<xsl:template mode="iso19115FileRemove" match="*">		<xsl:param name="access" select="'public'"/>			<xsl:call-template name="simpleElementGui">			<xsl:with-param name="title" select="/root/gui/strings/file"/>			<xsl:with-param name="text">				<table width="100%"><tr>					<xsl:variable name="ref" select="geonet:element/@ref"/>					<td width="70%"><xsl:value-of select="string(.)"/></td>					<td align="right"><button class="content" onclick="javascript:doFileRemoveAction('{/root/gui/locService}/resources.del','{$ref}','{$access}')"><xsl:value-of select="/root/gui/strings/remove"/></button></td>				</tr></table>			</xsl:with-param>			<xsl:with-param name="schema"/>		</xsl:call-template>	</xsl:template>		<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->	<!-- iso19115 brief formatting -->	<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->		<xsl:template name="iso19115Brief">		<metadata>			<xsl:variable name="id" select="geonet:info/id"/>			<xsl:if test="dataIdInfo/idCitation/resTitle">				<title><xsl:value-of select="dataIdInfo/idCitation/resTitle"/></title>			</xsl:if>			<xsl:if test="dataIdInfo/idAbs">				<abstract><xsl:value-of select="dataIdInfo/idAbs"/></abstract>			</xsl:if>			<xsl:for-each select="dataIdInfo/descKeys/keyword[text()]">				<xsl:copy-of select="."/>			</xsl:for-each>			<xsl:for-each select="distInfo/distTranOps/onLineSrc">				<xsl:choose>					<xsl:when test="starts-with(./protocol,'WWW:DOWNLOAD-') and contains(./protocol,'http--download') and ./orName"> <!-- FIXME -->						<link type="download"><xsl:value-of select="linkage"/></link>					</xsl:when>					<xsl:when test="starts-with(./protocol,'ESRI:AIMS-') and contains(./protocol,'-get-image') and ./orName">						<link type="arcims">							<xsl:value-of select="concat('javascript:popInterMap(&#34;',/root/gui/url,'/intermap/srv/',/root/gui/language,'/map.addServicesExt?url=',linkage,'&amp;service=',orName,'&amp;type=1&#34;)')"/>						</link>					</xsl:when>					<xsl:when test="starts-with(./protocol,'OGC:WMS-') and contains(./protocol,'-get-map') and ./orName">						<link type="wms">							<xsl:value-of select="concat('javascript:popInterMap(&#34;',/root/gui/url,'/intermap/srv/',/root/gui/language,'/map.addServicesExt?url=',linkage,'&amp;service=',orName,'&amp;type=2&#34;)')"/>						</link>					</xsl:when>					<xsl:when test="starts-with(./protocol,'OGC:WMS-') and contains(./protocol,'-get-capabilities') and ./orName">						<link type="wms">							<xsl:value-of select="concat('javascript:popInterMap(&#34;',/root/gui/url,'/intermap/srv/',/root/gui/language,'/map.addServicesExt?url=',linkage,'&amp;type=2&#34;)')"/>						</link>					</xsl:when>					<xsl:when test="linkage[text()]">						<link type="url"><xsl:value-of select="linkage[text()]"/></link>					</xsl:when>				</xsl:choose>			</xsl:for-each>			<xsl:if test="dataIdInfo/geoBox">				<geoBox>					<westBL><xsl:value-of select="dataIdInfo/geoBox/westBL"/></westBL>					<eastBL><xsl:value-of select="dataIdInfo/geoBox/eastBL"/></eastBL>					<southBL><xsl:value-of select="dataIdInfo/geoBox/southBL"/></southBL>					<northBL><xsl:value-of select="dataIdInfo/geoBox/northBL"/></northBL>				</geoBox>			</xsl:if>					<!--			<xsl:if test="not(geonet:info/server) and (string(geonet:info/source)=string(/root/gui/env/siteId))">				<xsl:for-each select="dataIdInfo/graphOver">					<xsl:choose>						<xsl:when test="string(bgFileDesc)='thumbnail' and string(bgFileName)!=''">							<image type="thumbnail"><xsl:value-of select="concat(/root/gui/locService,'/resources.get?id=',$id,'&amp;fname=',bgFileName,'&amp;access=public')"/></image>						</xsl:when>						<xsl:when test="string(bgFileDesc)='large_thumbnail' and string(bgFileName)!=''">							<image type="overview"><xsl:value-of select="concat(/root/gui/locService,'/graphover.show?id=',$id,'&amp;fname=',bgFileName,'&amp;access=public')"/></image>						</xsl:when>					</xsl:choose>				</xsl:for-each>			</xsl:if>			-->			<xsl:if test="not(geonet:info/server)">				<xsl:variable name="siteId" select="string(/root/gui/env/siteId)"/>

⌨️ 快捷键说明

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