adjust image width
This commit is contained in:
parent
540c26b2a5
commit
18bc013c93
22
data/doc.xsl
22
data/doc.xsl
|
@ -164,21 +164,27 @@
|
||||||
<xsl:for-each select="//Metadata/dataIdInfo/graphOver">
|
<xsl:for-each select="//Metadata/dataIdInfo/graphOver">
|
||||||
|
|
||||||
<xsl:variable name="imgurl" select="concat('http://westdc.westgis.ac.cn/gndata/',$thumburl,'/public/',bgFileName)"/>
|
<xsl:variable name="imgurl" select="concat('http://westdc.westgis.ac.cn/gndata/',$thumburl,'/public/',bgFileName)"/>
|
||||||
<img class="figure" align="center">
|
<xsl:if test="bgFileDesc='large_thumbnail'">
|
||||||
|
<img width="600" class="figure" align="center">
|
||||||
<xsl:attribute name="src">
|
<xsl:attribute name="src">
|
||||||
<xsl:value-of select="$imgurl" disable-output-escaping="yes"/>
|
<xsl:value-of select="$imgurl"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="alt">
|
<xsl:attribute name="alt">
|
||||||
<xsl:value-of select="bgFileDesc"/>
|
<xsl:value-of select="bgFileDesc"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</img>
|
</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>
|
</xsl:for-each>
|
||||||
<xsl:if test="//Metadata/dataIdInfo/graphOver[bgFileName!='' and bgFileName!='http://heihe.westgis.ac.cn/water/thumb.jpg']">
|
|
||||||
<img width="600" height="400" class="figure" align="center"><xsl:attribute name="src">http://test.westgis.ac.cn:8080/geonetwork/srv/cn/graphover.show?id=<xsl:value-of select='$id'/>&fname=<xsl:value-of select='//Metadata/dataIdInfo/graphOver[1]/bgFileName'/>&access=public</xsl:attribute></img>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="//Metadata/dataIdInfo/graphOver[bgFileName='' or bgFileName='http://heihe.westgis.ac.cn/water/thumb.jpg']">
|
|
||||||
<img class="figure" align="center"><xsl:attribute name="src">http://westdc.westgis.ac.cn/images/nothumb.png</xsl:attribute></img>
|
|
||||||
</xsl:if>
|
|
||||||
</div>
|
</div>
|
||||||
</ol>
|
</ol>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
Loading…
Reference in New Issue