[Yanel-commits] rev 43995 -
public/yanel/trunk/src/contributions/resources/search/htdocs
michi at wyona.com
michi at wyona.com
Wed Aug 5 10:32:52 CEST 2009
Author: michi
Date: 2009-08-05 10:32:51 +0200 (Wed, 05 Aug 2009)
New Revision: 43995
Modified:
public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
Log:
check if title exists
Modified: public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl 2009-08-05 08:29:37 UTC (rev 43994)
+++ public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl 2009-08-05 08:32:51 UTC (rev 43995)
@@ -59,7 +59,9 @@
</xsl:template>
<xsl:template match="y:result">
- <li><a href="{$yarep.back2realm}{@url}"><xsl:value-of select="@url"/></a></li>
+ <li>
+ <a href="{$yarep.back2realm}{@url}"><xsl:choose><xsl:when test="y:title"><xsl:value-of select="y:title"/></xsl:when><xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise></xsl:choose></a>
+ </li>
</xsl:template>
<xsl:template match="y:exception">
More information about the Yanel-commits
mailing list