Additional tag @file-label@ for file attachments which displays the description of the attachment and if there is no description displays the file name.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3136 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
8c295036d1
commit
9dc4f40441
|
|
@ -133,4 +133,14 @@
|
||||||
<xsl:value-of select="$description"/>
|
<xsl:value-of select="$description"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="file-attachment//file-label">
|
||||||
|
<xsl:param name="file-name" tunnel="yes"/>
|
||||||
|
<xsl:param name="description" tunnel="yes"/>
|
||||||
|
|
||||||
|
<xsl:value-of select="if (string-length($description) > 0)
|
||||||
|
then $description
|
||||||
|
else $file-name"/>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
Loading…
Reference in New Issue