使用限制修改为使用声明
This commit is contained in:
parent
0a8ee1ef14
commit
aaeb52e720
226
data/doc.xsl
226
data/doc.xsl
|
@ -5,27 +5,27 @@
|
|||
<xsl:output method="html" encoding="utf-8" indent="no"/>
|
||||
<xsl:param name="thumburl" select="defaultstring"/>
|
||||
<xsl:param name="abstract" select="defaultstring"/>
|
||||
<xsl:param name="projection" select="defaultstring"/>
|
||||
<xsl:param name="reference" select="defaultstring"/>
|
||||
<xsl:template match="/">
|
||||
<img aligh="center" class="figure">
|
||||
<xsl:attribute name="src">http://westdc.westgis.ac.cn/images/westdc-banner.jpg</xsl:attribute>
|
||||
<xsl:param name="projection" select="defaultstring"/>
|
||||
<xsl:param name="reference" select="defaultstring"/>
|
||||
<xsl:template match="/">
|
||||
<img aligh="center" class="figure">
|
||||
<xsl:attribute name="src">http://westdc.westgis.ac.cn/images/westdc-banner.jpg</xsl:attribute>
|
||||
</img>
|
||||
<div id="uuid" style="color:red"><u>
|
||||
<xsl:variable name="uuid" select="//Metadata/mdFileID"/>
|
||||
<a href="http://westdc.westgis.ac.cn/data/{$uuid}">
|
||||
本数据地址:<xsl:value-of select="//Metadata/mdFileID"/>
|
||||
</a>
|
||||
<div id="uuid" style="color:red"><u>
|
||||
<xsl:variable name="uuid" select="//Metadata/mdFileID"/>
|
||||
<a href="http://westdc.westgis.ac.cn/data/{$uuid}">
|
||||
本数据地址:<xsl:value-of select="//Metadata/mdFileID"/>
|
||||
</a>
|
||||
</u></div>
|
||||
<center><span style="font-size:20px;background-color:grey;"><xsl:value-of select="//Metadata/dataIdInfo/idCitation/resTitle"/></span></center>
|
||||
<div><span id="etitle">英文标题:</span><xsl:value-of select="//Metadata/dataIdInfo/idCitation/resAltTitle"/></div>
|
||||
<ol>
|
||||
<li><h4 style="background-color:#DEE2E4">摘要</h4>
|
||||
<p>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$abstract!=''">
|
||||
<xsl:value-of select="$abstract" disable-output-escaping="yes"/>
|
||||
</xsl:when>
|
||||
<p>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$abstract!=''">
|
||||
<xsl:value-of select="$abstract" disable-output-escaping="yes"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="//Metadata/dataIdInfo/idAbs"/></xsl:otherwise></xsl:choose></p></li>
|
||||
<li><h4 style="background-color:#DEE2E4">关键词</h4>
|
||||
<ul>
|
||||
|
@ -53,35 +53,35 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">数据细节</h4>
|
||||
<ol>
|
||||
<xsl:if test="//rfDenom">
|
||||
<xsl:for-each select="//rfDenom">
|
||||
<li>比例尺:<xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="//scaleDist">
|
||||
<xsl:for-each select="//scaleDist">
|
||||
<li>分辨率:<xsl:value-of select="value/Decimal"/><xsl:value-of select="//uomName"/></li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="$projection!=''">
|
||||
<li>投影:<xsl:value-of select="$projection"/></li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//transSize">
|
||||
<xsl:for-each select="//transSize">
|
||||
<li>数据大小:<xsl:value-of select="."/>MB</li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="//distorFormat">
|
||||
<xsl:for-each select="//distorFormat">
|
||||
<xsl:if test="formatName!=''">
|
||||
<li>数据格式:<xsl:value-of select="formatName"/></li>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">数据细节</h4>
|
||||
<ol>
|
||||
<xsl:if test="//rfDenom">
|
||||
<xsl:for-each select="//rfDenom">
|
||||
<li>比例尺:<xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="//scaleDist">
|
||||
<xsl:for-each select="//scaleDist">
|
||||
<li>分辨率:<xsl:value-of select="value/Decimal"/><xsl:value-of select="//uomName"/></li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="$projection!=''">
|
||||
<li>投影:<xsl:value-of select="$projection"/></li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//transSize">
|
||||
<xsl:for-each select="//transSize">
|
||||
<li>数据大小:<xsl:value-of select="."/>MB</li>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="//distorFormat">
|
||||
<xsl:for-each select="//distorFormat">
|
||||
<xsl:if test="formatName!=''">
|
||||
<li>数据格式:<xsl:value-of select="formatName"/></li>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">地理范围</h4>
|
||||
<div>
|
||||
<table border="1" cellspacing="0" cellpadding="4" style="text-align:center" align="center">
|
||||
|
@ -102,44 +102,44 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">时间范围</h4>
|
||||
<ol><xsl:for-each select="//Metadata/dataIdInfo/dataExt/tempEle/TempExtent/exTemp/TM_GeometricPrimitive/TM_Period">
|
||||
<li>开始时间:<xsl:value-of select="begin"/></li>
|
||||
<li>结束时间:<xsl:value-of select="end"/></li>
|
||||
</xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">时间范围</h4>
|
||||
<ol><xsl:for-each select="//Metadata/dataIdInfo/dataExt/tempEle/TempExtent/exTemp/TM_GeometricPrimitive/TM_Period">
|
||||
<li>开始时间:<xsl:value-of select="begin"/></li>
|
||||
<li>结束时间:<xsl:value-of select="end"/></li>
|
||||
</xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">本数据的引用</h4>
|
||||
<ol>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idCitation/otherCitDet">
|
||||
<li><xsl:value-of select="."/></li>
|
||||
<li><xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">建议参考文献</h4>
|
||||
<xsl:if test="$reference!=''">
|
||||
<xsl:value-of select="$reference" disable-output-escaping="yes"/>
|
||||
</xsl:if>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">数据DOI</h4>
|
||||
<xsl:if test="//idCitation/citIdType='DOI'">
|
||||
<ul>
|
||||
<xsl:for-each select="//idCitation/citId">
|
||||
<li><xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">建议参考文献</h4>
|
||||
<xsl:if test="$reference!=''">
|
||||
<xsl:value-of select="$reference" disable-output-escaping="yes"/>
|
||||
</xsl:if>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">数据DOI</h4>
|
||||
<xsl:if test="//idCitation/citIdType='DOI'">
|
||||
<ul>
|
||||
<xsl:for-each select="//idCitation/citId">
|
||||
<li><xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">项目支持信息</h4>
|
||||
<p><xsl:value-of select="//Metadata/dataIdInfo/suppInfo"/></p>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">数据使用限制</h4>
|
||||
<li><h4 style="background-color:#DEE2E4">数据使用声明</h4>
|
||||
<ol><xsl:for-each select="//Metadata/dataIdInfo/resConst/Consts/useLimit">
|
||||
<li><xsl:value-of select="."/></li>
|
||||
</xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">相关链接</h4>
|
||||
<ol><xsl:for-each select="//Metadata/distInfo/distTranOps/onLineSrc">
|
||||
<li><xsl:value-of select="orName"/><![CDATA[:]]><xsl:value-of select="linkage"/></li>
|
||||
|
@ -147,36 +147,36 @@
|
|||
</ol>
|
||||
</li>
|
||||
<li><h4 style="background-color:#DEE2E4">缩略图</h4></li>
|
||||
<div style="text-align:center;">
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/graphOver">
|
||||
|
||||
<xsl:variable name="imgurl" select="concat('http://westdc.westgis.ac.cn/gndata/',$thumburl,'/public/',bgFileName)"/>
|
||||
<xsl:if test="bgFileDesc='large_thumbnail'">
|
||||
<img width="600" class="figure" align="center">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$imgurl"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="bgFileDesc"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:if>
|
||||
<xsl:if test="bgFileDesc='thumbnail'">
|
||||
<img class="figure" align="center">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$imgurl"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="bgFileDesc"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:if>
|
||||
<div style="text-align:center;">
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/graphOver">
|
||||
|
||||
<xsl:variable name="imgurl" select="concat('http://westdc.westgis.ac.cn/gndata/',$thumburl,'/public/',bgFileName)"/>
|
||||
<xsl:if test="bgFileDesc='large_thumbnail'">
|
||||
<img width="600" class="figure" align="center">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$imgurl"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="bgFileDesc"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:if>
|
||||
<xsl:if test="bgFileDesc='thumbnail'">
|
||||
<img class="figure" align="center">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$imgurl"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="bgFileDesc"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
<xsl:if test="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='principalInvestigator']">
|
||||
<li><h4 style="background-color:#DEE2E4">数据调查者</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='principalInvestigator']">
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='principalInvestigator']">
|
||||
<li>调查者:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -186,12 +186,12 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='resourceProvider']">
|
||||
<li><h4 style="background-color:#DEE2E4">资源提供者</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='resourceProvider']">
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idCitation/citRespParty[role/RoleCd/@value='resourceProvider']">
|
||||
<li>调查者:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -201,12 +201,12 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/dataIdInfo/idPoC[role/RoleCd/@value='pointOfContact']">
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/dataIdInfo/idPoC[role/RoleCd/@value='pointOfContact']">
|
||||
<li><h4 style="background-color:#DEE2E4">数据联系人</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idPoC[role/RoleCd/@value='pointOfContact']">
|
||||
<xsl:for-each select="//Metadata/dataIdInfo/idPoC[role/RoleCd/@value='pointOfContact']">
|
||||
<li>联系人:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -218,12 +218,12 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/mdContact[role/RoleCd/@value='author']">
|
||||
<li><h4 style="background-color:#DEE2E4">元数据作者</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/mdContact[role/RoleCd/@value='author']">
|
||||
<xsl:for-each select="//Metadata/mdContact[role/RoleCd/@value='author']">
|
||||
<li>作者:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -235,12 +235,12 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/mdContact[role/RoleCd/@value='publisher']">
|
||||
<li><h4 style="background-color:#DEE2E4">元数据发布者</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/mdContact[role/RoleCd/@value='publisher']">
|
||||
<xsl:for-each select="//Metadata/mdContact[role/RoleCd/@value='publisher']">
|
||||
<li>发布者:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -252,12 +252,12 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:if>
|
||||
<xsl:if test="//Metadata/distInfo/distributor/distorCont[role/RoleCd/@value='distributor']">
|
||||
<li><h4 style="background-color:#DEE2E4">数据分发者</h4>
|
||||
<ol>
|
||||
<xsl:for-each select="//Metadata/distInfo/distributor/distorCont[role/RoleCd/@value='distributor']">
|
||||
<xsl:for-each select="//Metadata/distInfo/distributor/distorCont[role/RoleCd/@value='distributor']">
|
||||
<li>分发者:
|
||||
<ul>
|
||||
<li><span style="background-color:#dedede">姓名:</span><xsl:value-of select="rpIndName"/></li>
|
||||
|
@ -270,8 +270,8 @@
|
|||
</ul>
|
||||
</li></xsl:for-each>
|
||||
</ol>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</ol>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Reference in New Issue