X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/46f7dcb362da5d043c758453384a447f0360462c..68e333e0bd6538a649e6c2592b4e6de72aab9a39:/templates/searchquery.tmpl diff --git a/templates/searchquery.tmpl b/templates/searchquery.tmpl index 33a7cb6fa..5b9fbbf7f 100644 --- a/templates/searchquery.tmpl +++ b/templates/searchquery.tmpl @@ -1,3 +1,5 @@ +$setmap{prefix,title,S} +$setmap{prefix,link,XLINK} $set{thousand,$.}$set{decimal,.}$setmap{BN,,Any Country,uk,England,fr,France} ${ $def{PREV, @@ -31,21 +33,15 @@ $def{NEXT,$if{$ne{$last,$msize},}}
-
+
+$env{HELPLINK}
-$if{$opt{topterms}, -
- $map{$topterms,$prettyterm{$_} } -
-
-} $or{$html{$error}, $if{$eq{$msize,0}, $if{$query,No documents match your query, @@ -58,7 +54,7 @@ $if{$not{$msizeexact}, $nice{$add{$topdoc,1}}$if{$ne{$add{$topdoc,1},$last},-$nice{$last}} of exactly $nice{$msize} matches} }
-
+ $list{$map{$queryterms,$list{$html{$uniq{$unstem{$_}}},,/,}: $nice{$freq{$_}}},Term frequencies: ,$. ,}
Search took $time seconds @@ -81,8 +77,9 @@ $percentage% relevant$. matching: $list{$map{$terms,$html{$prettyterm{$_}}},$. , and }${for lynx:}

}

-
+
+
${suppress next, prev, and page links if there's only one page} $if{$ne{$lastpage,1}, $set{a,$if{$opt{pagelink_height}, HEIGHT=$opt{pagelink_height}}$if{$opt{pagelink_width}, WIDTH=$opt{pagelink_width}}} @@ -101,7 +98,7 @@ $if{$ne{$opt{y},$lastpage},...} $NEXT } }} -

+
$if{$dbname,} $if{$ne{$topdoc,0},} $if{$ne{$hitsperpage,10},}