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-94f89814c4df
master
jensp 2015-02-12 08:32:29 +00:00
parent 8c295036d1
commit 9dc4f40441
1 changed files with 10 additions and 0 deletions

View File

@ -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) &gt; 0)
then $description
else $file-name"/>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>