Help link for Reliability.
[irspy-moved-to-github.git] / web / htdocs / details / full.mc
index 7f74932..19f74a2 100644 (file)
@@ -1,4 +1,4 @@
-%# $Id: full.mc,v 1.23 2007-04-16 10:37:05 mike Exp $
+%# $Id: full.mc,v 1.26 2007-04-26 14:00:33 mike Exp $
 <%args>
 $id
 </%args>
@@ -25,10 +25,8 @@ if ($n == 0) {
                  [ Port => "e:serverInfo/e:port" ],
                  [ "Database Name" => "e:serverInfo/e:database" ],
                  [ "Type of Library" => "i:status/i:libraryType" ],
-                 [ "Username (if needed)" =>
-                   "e:serverInfo/e:authentication/e:user" ],
-                 [ "Password (if needed)" =>
-                   "e:serverInfo/e:authentication/e:password" ],
+#                [ "Username (if needed)" => "e:serverInfo/e:authentication/e:user" ],
+#                [ "Password (if needed)" => "e:serverInfo/e:authentication/e:password" ],
                  [ "Server ID" => 'i:status/i:serverImplementationId/@value' ],
                  [ "Server Name" => 'i:status/i:serverImplementationName/@value' ],
                  [ "Server Version" => 'i:status/i:serverImplementationVersion/@value' ],
@@ -45,7 +43,7 @@ if ($n == 0) {
                  [ "Implementation ID" => "i:status/i:implementationId" ],
                  [ "Implementation Name" => "i:status/i:implementationName" ],
                  [ "Implementation Version" => "i:status/i:implementationVersion" ],
-                 [ "Reliability" => \&calc_reliability, $xc ],
+                 [ "Reliability/reliability" => \&calc_reliability, $xc ],
                  [ "Services" => \&calc_init_options, $xc ],
                  [ "Bib-1 Use attributes" => \&calc_ap, $xc, "bib-1" ],
                  [ "Dan-1 Use attributes" => \&calc_ap, $xc, "dan-1" ],
@@ -70,7 +68,11 @@ if ($n == 0) {
        if ($data) {
 </%perl>
       <tr>
-       <th><% xml_encode($caption) %></th>
+% $caption =~ s/\/(.*)//;
+% my $help = $1;
+       <th><% xml_encode($caption) %><%
+       !defined $help ? "" : $m->comp("/help/link.mc", help =>"info/$help")
+       %></th>
        <td><% xml_encode($data) %></td>
       </tr>
 %      }
@@ -79,8 +81,8 @@ if ($n == 0) {
      <p>
       <a href="<% xml_encode("http://targettest.indexdata.com/targettest/search/index.zap?" .
        join("&",
-            "target=" . uri_escape($id),
-            "name=" . uri_escape($title),
+            "target=" . uri_escape_utf8($id),
+            "name=" . uri_escape_utf8($title),
             "attr=" . join(" ", list_ap($xc, "bib-1")),
             "formats=" . calc_recsyn($xc, " ")))
        %>">Search this target.</a>