Another improvement for Foundry: It is now possible to set a "no result" text if an object list contains no results. Also

there was bug for object lists which can be filtered by the user: The filter form did not appear if there are no results.


git-svn-id: https://svn.libreccm.org/ccm/trunk@3813 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-01-22 10:09:36 +00:00
parent ad28c9b42d
commit 227b1cb221
1 changed files with 13 additions and 7 deletions

View File

@ -77,13 +77,19 @@
</xsl:choose>
</xsl:variable>
<xsl:if test="count($object-list-datatree/nav:objectList/nav:item) &gt;= 1">
<xsl:apply-templates>
<xsl:with-param name="object-list-datatree"
tunnel="yes"
select="$object-list-datatree"/>
</xsl:apply-templates>
</xsl:if>
<xsl:apply-templates>
<xsl:with-param name="object-list-datatree"
tunnel="yes"
select="$object-list-datatree"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
<xsl:template match="object-list/no-content">
<xsl:param name="object-list-datatree" tunnel="yes"/>
<xsl:if test="$object-list-datatree/nav:noContent">
<xsl:apply-templates select="current()/*"/>
</xsl:if>
</xsl:template>