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

📄 metadata-iso19139.xsl.svn-base

📁 由国外的一个著名的geonetwork修改而来
💻 SVN-BASE
📖 第 1 页 / 共 4 页
字号:
					<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="iso19139VertElement" select="gmd:eastBoundLongitude/gco:Decimal">						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>						<xsl:with-param name="name"   select="'eastBoundLongitude'"/>					</xsl:apply-templates>				</td>			</tr>			<tr>				<td/>				<td class="padded" align="center">					<xsl:apply-templates mode="iso19139VertElement" select="gmd:southBoundLatitude/gco:Decimal">						<xsl:with-param name="schema" select="$schema"/>						<xsl:with-param name="edit"   select="$edit"/>						<xsl:with-param name="name"   select="'southBoundLatitude'"/>					</xsl:apply-templates>				</td>				<td/>			</tr>		</table>	</xsl:template>		<xsl:template mode="iso19139VertElement" match="*">		<xsl:param name="schema"/>		<xsl:param name="edit"/>		<xsl:param name="name"/>				<xsl:variable name="title">			<xsl:call-template name="getTitle">				<xsl:with-param name="schema" select="$schema"/>				<xsl:with-param name="name"   select="$name"/>			</xsl:call-template>		</xsl:variable>		<xsl:variable name="helpLink">			<xsl:call-template name="getHelpLink">				<xsl:with-param name="schema" select="$schema"/>				<xsl:with-param name="name"   select="$name"/>			</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>	<!--	abstract	-->	<xsl:template mode="iso19139" match="gmd:abstract" priority="2">		<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>		<!--	supplementalInformation	purpose	-->	<xsl:template mode="iso19139" match="gmd:supplementalInformation|gmd:purpose" priority="2">		<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)	usageDateTime	plannedAvailableDateTime	-->	<xsl:template mode="iso19139" match="gmd:dateTime|gmd:usageDateTime|gmd:plannedAvailableDateTime" 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="ref" select="gco:DateTime/geonet:element/@ref"/>												<table width="100%"><tr>							<td>								<input class="md" type="text" name="_{$ref}" id="_{$ref}_cal" value="{gco:DateTime/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:call-template name="iso19139String">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:call-template>			</xsl:otherwise>		</xsl:choose>	</xsl:template>	<!--	date (format = %Y-%m-%d)	editionDate	dateOfNextUpdate	mdDateSt is not editable (!we use DateTime instead of only Date!)	-->	<xsl:template mode="iso19139" match="gmd:date[gco:DateTime]|gmd:editionDate|gmd:dateOfNextUpdate" 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="ref" select="gco:DateTime/geonet:element/@ref"/>												<table width="100%"><tr>							<td>								<input class="md" type="text" name="_{$ref}" id="_{$ref}_cal" value="{gco:DateTime/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:call-template name="iso19139String">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:call-template>			</xsl:otherwise>		</xsl:choose>	</xsl:template>		<!-- subtemplates -->	<xsl:template mode="iso19139" match="*[geonet:info/isTemplate='s']" priority="3">		<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="$edit"/>		</xsl:apply-templates>	</xsl:template>		<!--	placeholder	<xsl:template mode="iso19139" match="TAG">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				BODY	</xsl:template>	-->	<!--	Metadata	-->	<xsl:template mode="iso19139" match="gmd:DS_DataSet">		<xsl:param name="schema"/>		<xsl:param name="edit"/>				<xsl:choose>					<!-- metadata tab -->			<xsl:when test="$currTab='metadata'">							<!-- 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/*[name(.)!='identificationInfo' and name(.)!='metadataMaintenance' and name(.)!='metadataConstraints' and name(.)!='spatialRepresentationInfo' and name(.)!='referenceSystemInfo' and name(.)!='distributionInfo' and name(.)!='dataQualityInfo' and name(.)!='applicationSchemaInfo' and name(.)!='portrayalCatalogueInfo']">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- identification tab -->			<xsl:when test="$currTab='identification'">							<!-- 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/gmd:identificationInfo/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- maintenance tab -->			<xsl:when test="$currTab='maintenance'">				<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:metadataMaintenance/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- constraints tab -->			<xsl:when test="$currTab='constraints'">				<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:metadataConstraints/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- spatial tab -->			<xsl:when test="$currTab='spatial'">				<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:spatialRepresentationInfo/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- refSys tab -->			<xsl:when test="$currTab='refSys'">				<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:referenceSystemInfo/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- distribution tab -->			<xsl:when test="$currTab='distribution'">				<xsl:apply-templates mode="elementEP" select="gmd:has/gmd:MD_Metadata/gmd:distributionInfo/*">					<xsl:with-param name="schema" select="$schema"/>					<xsl:with-param name="edit"   select="$edit"/>				</xsl:apply-templates>			</xsl:when>			<!-- dataQuality tab -->			<xsl:when test="$currTab='dataQuality'">

⌨️ 快捷键说明

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