adjust image width

This commit is contained in:
wlx 2011-09-22 03:17:08 +00:00
parent 540c26b2a5
commit 18bc013c93
1 changed files with 14 additions and 8 deletions

View File

@ -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'/>&amp;fname=<xsl:value-of select='//Metadata/dataIdInfo/graphOver[1]/bgFileName'/>&amp;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>