"
]]>]]>
$map{$topterms,$html{$prettyterm{$_}} }
}
$if{$suggestion,]]>
$html{$suggestion}
}
$or{$html{$error},
$if{$eq{$msize,0},
$if{$query,]]>
]]>
$if{$map{$queryterms,$set{U,$unstem{$_}}$set{F_$opt{U},$add{$opt{F_$opt{U}},$freq{$_}}}},$list{$unique{$map{$queryterms,$set{U,$unstem{$_}}$list{$html{$unique{$opt{U}}},
,/
,}: $nice{$opt{F_$opt{U}}}}},]]>
]]>
$hitlist{
${}
$if{$and{$field{modtime},$ne{$field{modtime},-1}},
}
$if{$field{language},]]> $html{$field{language}} }
$if{$field{size}, ]]>$html{$filesize{$field{size}}}}
|
$html{$or{$field{caption},$field{title},$prettyurl{$field{url}},Untitled}}
$snippet{$field{sample}}
$html{$prettyurl{$field{url}}}
]]>$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}}}
${1-W ... X-(this)-Y ...}
$set{w,$min{3,$add{$thispage,-1}}}
$set{x,$max{$add{$opt{w},1},$add{$thispage,-3}}}
$set{y,$min{$lastpage,$add{$thispage,8}}}
$PREV
$map{$range{1,$opt{w}},$PAGE{$_}}
$if{$ne{$add{$opt{w},1},$opt{x}},...}
$map{$range{$opt{x},$add{$thispage,-1}},$PAGE{$_}}
$SPAGE{$thispage}
$map{$range{$add{$thispage,1},$opt{y}},$PAGE{$_}}
$if{$ne{$opt{y},$lastpage},...}
$NEXT
}
}}
$if{$ne{$topdoc,0},}
$if{$ne{$hitsperpage,10},}
$if{$cgi{COLLAPSE},}
$if{$queryterms,}
$list{$relevants,}
$if{$cgi{THRESHOLD},}
${Preserve any B filters used - this needs modifying if you modify this template
to have B on radio buttons, SELECT, etc}
$map{$cgilist{B},}
$log{query.log}
]]>