fixed bug with pdf-link in article pages

svn path=/branches/design/; revision=17809
This commit is contained in:
samtuke 2010-10-20 12:15:46 +00:00
parent 04e3a458a0
commit a9d7101e7a

View File

@ -125,7 +125,11 @@
<span class="label"> <xsl:apply-templates select="/buildinfo/textset/text[@id='published']/node()" />: </span><xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" />
<xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)">
<span class="label">PDF: </span><xsl:value-of select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
<span class="label">PDF: </span>
<xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='author-link-3']/@content" />
<a href='{$pdf-link}'>download</a>
<xsl:value-of select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
</xsl:if>
</xsl:element>