From 4e5e6bdfad61e8e60ae8901794dba184c9845fab Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sat, 7 May 2005 13:05:04 +0000 Subject: [PATCH] fix search git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-625 --- templates/xnet/recherche.tpl | 47 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 36 deletions(-) diff --git a/templates/xnet/recherche.tpl b/templates/xnet/recherche.tpl index 25b819c..a5b98f2 100644 --- a/templates/xnet/recherche.tpl +++ b/templates/xnet/recherche.tpl @@ -58,9 +58,9 @@ d'affiner la recherche sur ces crit {else}
{if $exalead_data->estimated} -
Votre recherche a retourné environ nmatches;?> résultats.
+
Votre recherche a retourné environ {$exalead_data->nmatches} résultats.
{else} -
Votre recherche a retourné nmatches;?> résultats.
+
Votre recherche a retourné {$exalead_data->nmatches} résultats.
{/if}
{/if} @@ -140,25 +140,26 @@ d'affiner la recherche sur ces crit {if $exalead_data->start < 9} query->context}&_s=0">[1-10] {else} - [-10]"; + [{$exalead_data->start-9}-{$exalead_data->end-9}] {/if} {/if} - [Classer par date] - [Classer par pertinence] + Classer + [par date] + [par pertinence] - {if $exalead_data->end < $exalead_data->nhits} + {if $exalead_data->end + 1 < $exalead_data->nhits} {if $exalead_data->end + 11 > $exalead_data->nhits} - [{$exalead_data->nhits-10}-{$exalead_data->nhits}] + [{$exalead_data->start+11}-{$exalead_data->nhits}] {else} - [{$exalead_data->end+2}-{$exalead_data->end+12}] + [{$exalead_data->start+11}-{$exalead_data->end+11}] {/if} {/if} {foreach from=$exalead_data->hits item=hit}
{foreach from=$hit->hitgroups item=hitgroup}
@@ -166,7 +167,7 @@ d'affiner la recherche sur ces crit {if $hitgroup->hitcategories[0]->browsehref} {$hitgroup->hitcategories[0]->display} {else} - echo $hitgroup->hitcategories[0]->display; + {$hitgroup->hitcategories[0]->display} {/if}
{/foreach} @@ -178,30 +179,4 @@ d'affiner la recherche sur ces crit {/if} - -{* - -
Debug :
-
Nb matches : {$exalead_data->nmatches}
-
Nb hits : {$exalead_data->nhits}
-
estimated : {$exalead_data->estimated}
-
start : {$exalead_data->start}
-
end : {$exalead_data->end}
-
last : {$exalead_data->last}
-
Query :
-
-
query : {$exalead_data->query->query}
-
time : {$exalead_data->query->time}
-
Terms :
-foreach( $exalead_data->query->query_terms as $key => $term){ - echo "
level : {$term->level} | regexp : {$term->regexp}
"; -} -
Parameters :
-foreach($exalead_data->query->query_parameters as $key=>$parameter){ - echo "
name : {$parameter->name} | value : {$parameter->value}
"; -} -
- -*} - {* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4