X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=d4b6d66624d17abfd9a0caf7df8ebefa01d46f36;hb=4106328950233f27c6e8fdf0e94e8fab8bc7761e;hp=7e1eb0ab94027c318b29e2b20b3fa3f6df1af6d3;hpb=9ce4f15f1b0949f2f38e4099a0a07f427c552fa7;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index 7e1eb0a..d4b6d66 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.22 2006-12-05 17:18:30 mike Exp $ +%# $Id: found.mc,v 1.27 2007-02-22 11:49:46 mike Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -52,7 +52,7 @@ if ($params{_query}) { $query .= "$key = ($val)"; } } -$query = 'cql.allRecords=x' if $query eq ""; +$query = 'cql.allRecords=1' if $query eq ""; my $sort = $params{"_sort"}; if ($sort) { @@ -69,7 +69,7 @@ if ($sort) { my $tried_to_open = 0; if (!defined $conn) { OPEN: - $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1"); + $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1"); $conn->option(elementSetName => "zeerex"); } @@ -126,7 +126,7 @@ 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"); @@ -139,15 +139,15 @@ push @ids, $id; <% $i %> <% xml_encode($title, "[untitled]") %> + %>"><% xml_encode($title) %> <% xml_encode($reliability, "", { nbsp => 1 }) %> <% xml_encode($host, "") %> <% xml_encode($port, "") %> <% xml_encode($db, "") %> - Test  " title="Edit this target's record">Edit 

- [Test all targets on this list]

+

+ [Statistics for targets on this list] +

% }