$set{flag_spelling,$ne{$cgi{SPELL},0}} $set{stemmer,$if{$cgi{STEMMER},$cgi{STEMMER},none}} $set{flag_spelling_correction,true} $set{thousand,$.}$set{decimal,.} $setmap{prefix,,$split{ S B F},title,S,author,A,topic,B} ${ $def{PREV, $if{$ne{$topdoc,0},, } } $def{NEXT, $if{$ne{$last,$msize},, } } $def{P,} $def{PAGE,$if{$gt{$1,9},$if{$gt{$1,99},$P{$1,$div{$1,100}}}$P{$1,$mod{$div{$1,10},10}}}$P{$1,$mod{$1,10}}} $def{S,$1} $def{SPAGE,$if{$gt{$1,9},$if{$gt{$1,99},$S{$1,$div{$1,100}}}$S{$1,$mod{$div{$1,10},10}}}$S{$1,$mod{$1,10}}} } $def{PREV,$if{$ne{$topdoc,0},}} $def{PAGE,} $def{SPAGE,} $def{NEXT,$if{$ne{$last,$msize},}} $if{$query,Omega Search: $html{$query},Omega Search}
"
]]>]]> $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{}
${$percentage%}
$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} ]]>