X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffull.mc;h=d5b1799a15a72ef9503f9ffc1d8d5952d8e1a8cb;hb=7e87ee15785ae0693ec585186dce9e0a405f69d7;hp=dd48c28e50532e80279d6722d4b2bcacd27b2c8d;hpb=590cadab4a73c2eda6c3395f23326eaa1a3d3e53;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/full.mc b/web/htdocs/details/full.mc index dd48c28..d5b1799 100644 --- a/web/htdocs/details/full.mc +++ b/web/htdocs/details/full.mc @@ -1,13 +1,11 @@ -%# $Id: full.mc,v 1.22 2007-02-02 11:31:30 mike Exp $ +%# $Id: full.mc,v 1.28 2007-05-11 13:32:57 mike Exp $ <%args> $id %args> <%perl> my $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1"); $conn->option(elementSetName => "zeerex"); -my $qid = $id; -$qid =~ s/"/\\"/g; -my $query = qq[rec.id="$qid"]; +my $query = cql_target($id); my $rs = $conn->search(new ZOOM::Query::CQL($query)); my $n = $rs->size(); if ($n == 0) { @@ -25,10 +23,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 +41,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" ], @@ -54,8 +50,9 @@ if ($n == 0) { [ "Record syntaxes" => \&calc_recsyn, $xc ], [ "Explain" => \&calc_explain, $xc ], ); + my $title = $xc->find("e:databaseInfo/e:title"); %perl> -
<% xml_encode($caption) %> | +% $caption =~ s/\/(.*)//; +% my $help = $1; +<% xml_encode($caption) %><% + !defined $help ? "" : $m->comp("/help/link.mc", help =>"info/$help") + %> | <% xml_encode($data) %> |
---|