[Yanel-commits] rev 50055 - public/yanel/trunk/src/contributions/resources/search/htdocs

michi at wyona.com michi at wyona.com
Tue Jun 1 12:26:31 CEST 2010


Author: michi
Date: 2010-06-01 12:26:30 +0200 (Tue, 01 Jun 2010)
New Revision: 50055

Modified:
   public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
Log:
link added and excerpt started

Modified: public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl	2010-06-01 08:33:21 UTC (rev 50054)
+++ public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl	2010-06-01 10:26:30 UTC (rev 50055)
@@ -53,15 +53,18 @@
 
   <xsl:template match="y:results">
     <h2>All Results (<a href="?q={../y:query}&amp;provider={../y:provider}&amp;yanel.resource.viewid=xml">as XML</a>)</h2>
-    <ul>
+    <br/>
     <xsl:apply-templates select="y:result"/>
-    </ul>
   </xsl:template>
 
   <xsl:template match="y:result">
-    <li>
-      <a><xsl:attribute name="href"><xsl:choose><xsl:when test="starts-with(@url, 'http')"><xsl:value-of select="@url"/></xsl:when><xsl:otherwise><xsl:value-of select="$yarep.back2realm"/><xsl:value-of select="substring(@url, 2)"/><!-- NOTE: Omit leading slash --></xsl:otherwise></xsl:choose></xsl:attribute><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:variable name="href"><xsl:choose><xsl:when test="starts-with(@url, 'http')"><xsl:value-of select="@url"/></xsl:when><xsl:otherwise><xsl:value-of select="$yarep.back2realm"/><xsl:value-of select="substring(@url, 2)"/><!-- NOTE: Omit leading slash --></xsl:otherwise></xsl:choose></xsl:variable>
+
+    <p class="hit">
+      <a href="{$href}" style="font-size: 11pt;"><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>
+      <!-- TODO <br/><xsl:value-of select="y:excerpt"/> -->
+      <br/><a href="{$href}" style="color: #228822; text-decoration: none;"><xsl:value-of select="$href"/></a>
+    </p>
   </xsl:template>
 
   <xsl:template match="y:exception">



More information about the Yanel-commits mailing list