X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=dc7caeebff04aec40e3edea7cc5d6b18d90e58d8;hb=ff3589bc175b51e067d7b32de9009d2efa7b0e96;hp=dab6199e458926ab89c9191776ba088811b82b71;hpb=d5a78c57cbd06e19c3186999a05172a8aa9eb6d7;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index dab6199..dc7caee 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.26 2007-02-20 19:20:23 mike Exp $ +%# $Id: found.mc,v 1.30 2007-05-03 14:15:56 mike Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -38,7 +38,7 @@ sub calc_reliability { our $conn = undef; <%perl> -my %params = map { ( $_, $r->param($_)) } grep { $r->param($_) } $r->param(); +my %params = map { ( $_, utf8param($r, $_)) } grep { $r->param($_) } $r->param(); my $query; if ($params{_query}) { $query = $params{_query}; @@ -115,7 +115,8 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count); # Title - Reliability + Reliability <& /help/link.mc, help => "info/reliability" &> + Host Port DB @@ -126,20 +127,18 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count); % foreach my $i ($first .. $last) { <%perl> my $xc = irspy_xpath_context($rs->record($i-1)); -my $title = $xc->find("e:databaseInfo/e:title"); +my $title = $xc->find("e:databaseInfo/e:title") || "[UNTITLED]"; my $reliability = calc_reliability($xc); my $host = $xc->find("e:serverInfo/e:host"); my $port = $xc->find("e:serverInfo/e:port"); my $db = $xc->find("e:serverInfo/e:database"); -my $id = $xc->find("concat(e:serverInfo/e:host, ':', - e:serverInfo/e:port, '/', - e:serverInfo/e:database)"); +my $id = irspy_record2identifier($xc); push @ids, $id; <% $i %> <% xml_encode($title, "[untitled]") %> + %>"><% xml_encode($title) %> <% xml_encode($reliability, "", { nbsp => 1 }) %> <% xml_encode($host, "") %> <% xml_encode($port, "") %>