[Yanel-commits] rev 26514 -
public/yanel/trunk/src/contributions/resources/nutch/xslt
michi at wyona.com
michi at wyona.com
Mon Aug 6 12:18:21 CEST 2007
Author: michi
Date: 2007-08-06 12:18:20 +0200 (Mon, 06 Aug 2007)
New Revision: 26514
Modified:
public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl
Log:
total hits fixed
Modified: public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl 2007-08-06 10:18:00 UTC (rev 26513)
+++ public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl 2007-08-06 10:18:20 UTC (rev 26514)
@@ -18,17 +18,14 @@
<xsl:param name="translation.language" select="'TRANSLATION_LANG_IS_NULL'"/>
<xsl:param name="group" select="''"/>
-<!--
- <xsl:param name="group" select="'GROUP_IS_NULL'"/>
--->
<xsl:variable name="query" select="/yanel:nutch/yanel:query"/>
<!--
<xsl:param name="query" select="'QUERY_IS_NULL'"/>
-->
- <xsl:param name="totalHits" select="/yanel:nutch/yanel:results/@yanel:totalHits" />
- <xsl:param name="hitsPerPage" select="/yanel:nutch/yanel:results/@yanel:hitsPerPage" />
+ <xsl:variable name="totalHits" select="/yanel:nutch/yanel:results/@yanel:totalHits" />
+ <xsl:variable name="hitsPerPage" select="/yanel:nutch/yanel:results/@yanel:hitsPerPage" />
<xsl:variable name="currentPageNo" select="/yanel:nutch/yanel:results/@yanel:currentPageNo" />
<xsl:variable name="numberOfPagesShown" select="/yanel:nutch/yanel:results/@yanel:numberOfPagesShown" />
<xsl:variable name="range" select="number($numberOfPagesShown div 2)" />
@@ -52,7 +49,7 @@
</head>
<body>
- <span id="pageInfo" itemsPerPage="{$hitsPerPage}"/>
+ <span id="pageInfo" itemsPerPage="{$hitsPerPage}" totalHits="{$totalHits}"/>
<div style="text-align:right;font-size:smaller;width:auto;float:right;">
<a href="?query={$query}&hitsPerPage={$hitsPerPage}&start={number(@yanel:start)}&group={$group}&yanel.resource.viewid=source"><i18n:message key="viewResultsAsXml"/></a>
</div>
More information about the Yanel-commits
mailing list