X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=13143c6f452c95d4277663c0f6785db0994eeb58;hp=d4b6d66624d17abfd9a0caf7df8ebefa01d46f36;hb=0b57258ec2d28940302af3bd7c721311810b2302;hpb=34fd524e6436cd1bfa7e9b8493227eadbd68cb28 diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index d4b6d66..13143c6 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.27 2007-02-22 11:49:46 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) = @_; @@ -21,8 +21,9 @@ sub navlink { # Identical to the same-named function in full.mc # So maybe this should go into IRSpy::Utils.pm? +# Name changed (append 2) to prevent inadvertent clashes in Mason namespace # -sub calc_reliability { +sub calc_reliability2 { my($xc) = @_; my @allpings = $xc->findnodes("i:status/i:probe"); @@ -38,7 +39,7 @@ sub calc_reliability { 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 +72,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 +117,8 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count);