2008-06-04 20:13:21 +02:00
|
|
|
$setmap{prefix,title,S}
|
2008-07-17 12:37:08 +02:00
|
|
|
$setmap{prefix,link,XLINK}
|
2008-06-03 21:29:54 +02:00
|
|
|
$set{thousand,$.}$set{decimal,.}$setmap{BN,,Any Country,uk,England,fr,France}
|
|
|
|
${
|
|
|
|
$def{PREV,
|
|
|
|
$if{$ne{$topdoc,0},<INPUT TYPE=image NAME="<" ALT="<"
|
|
|
|
SRC="/images/xapian-omega/prev.png" BORDER=0 HEIGHT=30 WIDTH=30>,
|
|
|
|
<IMG ALT="" SRC="/images/xapian-omega/prevoff.png" HEIGHT=30 WIDTH=30>}
|
|
|
|
}
|
|
|
|
|
|
|
|
$def{NEXT,
|
|
|
|
$if{$ne{$last,$msize},<INPUT TYPE=image NAME=">" ALT=">"
|
|
|
|
SRC="/images/xapian-omega/next.png" BORDER=0 HEIGHT=30 WIDTH=30>,
|
|
|
|
<IMG ALT="" SRC="/images/xapian-omega/nextoff.png" HEIGHT=30 WIDTH=30>}
|
|
|
|
}
|
|
|
|
|
|
|
|
$def{P,<INPUT TYPE=image NAME="$1" VALUE="$1" SRC="/images/xapian-omega/page-$2.png" BORDER=0$opt{a} ALT="$1">}
|
|
|
|
$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,<IMG SRC="/images/xapian-omega/page-$2s.png"$opt{a} ALT=$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},<INPUT TYPE=submit NAME="<" VALUE="Previous">}}
|
|
|
|
|
|
|
|
$def{PAGE,<INPUT TYPE=submit NAME="[" VALUE="$1">}
|
|
|
|
|
|
|
|
$def{SPAGE,<INPUT TYPE=submit NAME="[" VALUE="$1" DISABLED=disabled>}
|
|
|
|
|
|
|
|
$def{NEXT,$if{$ne{$last,$msize},<INPUT TYPE=submit NAME=">" VALUE="Next">}}
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<FORM NAME=P METHOD=GET
|
|
|
|
ACTION="$html{$env{CGIURL}}" TARGET="_top">
|
2014-11-09 16:48:33 +01:00
|
|
|
<div class="searchquery" style="text-align:center">
|
|
|
|
<INPUT class="searchbox" NAME=P VALUE="$html{$query}" SIZE=65>
|
2008-06-03 21:29:54 +02:00
|
|
|
<INPUT TYPE=SUBMIT VALUE="Search">
|
2008-06-04 21:24:05 +02:00
|
|
|
$env{HELPLINK}
|
2008-06-03 21:29:54 +02:00
|
|
|
<hr>
|
|
|
|
<SELECT NAME=DEFAULTOP>
|
|
|
|
<OPTION VALUE=or $if{$eq{$defaultop,or},SELECTED}>Matching any words
|
|
|
|
<OPTION VALUE=and $if{$eq{$defaultop,and},SELECTED}>Matching all words
|
|
|
|
</SELECT>
|
|
|
|
$or{$html{$error},
|
|
|
|
$if{$eq{$msize,0},
|
|
|
|
$if{$query,No documents match your query,
|
|
|
|
<hr>Searching $nice{$dbsize} documents
|
|
|
|
},
|
|
|
|
$if{$not{$msizeexact},
|
|
|
|
$nice{$add{$topdoc,1}}-$nice{$last} of about $nice{$msize} matches,
|
|
|
|
$if{$and{$eq{$last,$msize},$eq{$topdoc,0}},
|
|
|
|
All $nice{$msize} matches,
|
|
|
|
$nice{$add{$topdoc,1}}$if{$ne{$add{$topdoc,1},$last},-$nice{$last}} of exactly $nice{$msize} matches}
|
|
|
|
}
|
|
|
|
<hr>
|
2010-05-02 03:14:05 +02:00
|
|
|
</div>
|
2008-06-03 21:29:54 +02:00
|
|
|
$list{$map{$queryterms,$list{$html{$uniq{$unstem{$_}}},<b>,</b>/<b>,</b>}: $nice{$freq{$_}}},Term frequencies: ,$. ,}
|
|
|
|
<br><small>Search took $time seconds</small>
|
|
|
|
<table>
|
|
|
|
$hitlist{<tr><td valign=top>
|
|
|
|
${<IMG SRC="/images/xapian-omega/score-$div{$percentage,10}.png" ALT="$percentage%" HEIGHT=16 WIDTH=32>}
|
|
|
|
<div title="$percentage%" style='float:left;width:60px;height:10px;border:1px solid black;margin-top:4px;'>
|
|
|
|
<div style='width:$div{$mul{$percentage,6},10}px; height:10px; background-color: red;'>
|
|
|
|
</div></div>
|
|
|
|
<div style='float:left;margin-top:2px;font-size:x-small;'>
|
|
|
|
<span title="$html{$date{$field{modtime},%Y-%m-%d %H:%M:%S}}">
|
|
|
|
Modified:<br><b>$html{$date{$field{modtime},%Y-%m-%d}}</b></span><br>
|
|
|
|
$if{$field{language},Language: <b>$html{$field{language}}</b><br>}
|
|
|
|
$if{$field{size},<span title="$html{$field{size}} bytes">Size: <b>$html{$filesize{$field{size}}}</b></span><br>}
|
|
|
|
</div>
|
|
|
|
</td>
|
2011-09-27 16:45:21 +02:00
|
|
|
<td><B><A HREF="$html{$field{url}}">$html{$or{$field{caption},$field{title},$field{url},Untitled}}</A></B><BR>
|
2008-06-03 21:29:54 +02:00
|
|
|
<small>$highlight{$field{sample},$terms}$if{$field{sample},...}</small><br>
|
|
|
|
<small>
|
|
|
|
$percentage% relevant$. matching:
|
|
|
|
<i>$list{$map{$terms,$html{$prettyterm{$_}}},$. ,</i> and <i>}</i></small>${for lynx:}<p></td></tr>}
|
|
|
|
</table>
|
|
|
|
|
2010-05-02 03:14:05 +02:00
|
|
|
<br />
|
2008-06-03 21:29:54 +02:00
|
|
|
|
2010-05-02 03:14:05 +02:00
|
|
|
<div style="text-align:center">
|
2008-06-03 21:29:54 +02:00
|
|
|
${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
|
|
|
|
}
|
|
|
|
}}
|
2010-05-02 03:14:05 +02:00
|
|
|
</div><br />
|
2008-06-03 21:29:54 +02:00
|
|
|
$if{$dbname,<INPUT TYPE=hidden NAME=DB VALUE="$html{$dbname}">}
|
|
|
|
$if{$ne{$topdoc,0},<INPUT TYPE=hidden NAME=TOPDOC VALUE=$topdoc>}
|
|
|
|
$if{$ne{$hitsperpage,10},<INPUT TYPE=hidden NAME=HITSPERPAGE VALUE=$hitsperpage>}
|
|
|
|
$if{$fmt,<INPUT TYPE=hidden NAME=FMT VALUE="$html{$fmt}">}
|
|
|
|
$if{$cgi{COLLAPSE},<INPUT TYPE=hidden NAME=COLLAPSE VALUE="$html{$cgi{COLLAPSE}}">}
|
|
|
|
$if{$queryterms,<INPUT TYPE=hidden NAME=xP VALUE="$html{$queryterms}">}
|
|
|
|
<INPUT TYPE=hidden NAME=xDB VALUE="$html{$dbname}">
|
|
|
|
<INPUT TYPE=hidden NAME=xFILTERS VALUE="$html{$filters}">
|
|
|
|
$list{$relevants,<INPUT TYPE=hidden NAME=R VALUE=",.,">}
|
|
|
|
$if{$cgi{THRESHOLD},<INPUT TYPE=hidden NAME=THRESHOLD VALUE="$html{$cgi{THRESHOLD}}">}
|
|
|
|
</FORM>
|
|
|
|
<hr><div align=right><i><small><a href="http://www.xapian.org/">$html{$version}</a></small></i></div>
|