X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=0f441969a6ed69f9571f2e181802ecd65ad54da1;hb=3ed6954f13f2b2e60374412fef7615e6a2358fd4;hp=e39a03a25d0dece699414014324795e696584632;hpb=d8931f76879e7d7b5d0cb8340291b7d2dac65c91;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index e39a03a..0f44196 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.29 2007-04-27 14:04:40 mike Exp $ +%# $Id: found.mc,v 1.33 2009-04-15 18:16:46 wosch Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -19,26 +19,11 @@ sub navlink { return $url; } -# Identical to the same-named function in full.mc -# So maybe this should go into IRSpy::Utils.pm? -# -sub calc_reliability { - my($xc) = @_; - - my @allpings = $xc->findnodes("i:status/i:probe"); - my $nall = @allpings; - return "[untested]" if $nall == 0; - my @okpings = $xc->findnodes('i:status/i:probe[@ok = "1"]'); - my $nok = @okpings; - return "$nok/$nall = " . int(100*$nok/$nall) . "%"; -} - - # Just make this once; forge the connection on first use our $conn = undef; %once> <%perl> -my %params = map { ( $_, $r->param($_)) } grep { $r->param($_) } $r->param(); +my %params = map { ( $_, utf8param($r, $_)) } grep { &utf8param($r, $_) } &utf8param($r); my $query; if ($params{_query}) { $query = $params{_query}; @@ -71,6 +56,7 @@ if (!defined $conn) { OPEN: $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1"); $conn->option(elementSetName => "zeerex"); + $conn->option(count => 20); } my $rs; @@ -115,7 +101,7 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count);