X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=e39a03a25d0dece699414014324795e696584632;hb=f35c96c59f3d3e6e272de3e20ad6b4f5466cfa84;hp=7e1eb0ab94027c318b29e2b20b3fa3f6df1af6d3;hpb=312363781e0ab6ff0ef10b1784a8985fd07bf501;p=irspy-moved-to-github.git
diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc
index 7e1eb0a..e39a03a 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.29 2007-04-27 14:04:40 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");
}
@@ -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,28 +127,26 @@ 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;
%perl>
<% $i %> |
"><% xml_encode($title, "[untitled]") %> |
+ %>"><% xml_encode($title) %>
<% xml_encode($reliability, "", { nbsp => 1 }) %> |
<% xml_encode($host, "") %> |
<% xml_encode($port, "") %> |
<% xml_encode($db, "") %> |
- " title="Test this target">Test " title="Edit this target's record">Edit 0, "Prev", $count < $skip ? $skip-$count : 0);
print_navlink(\%params, $last < $n, "Next", $skip+$count);
%perl>
- ">[Test all targets on this list]
+
+ ">[Statistics for targets on this list]
+
% }
|