X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffull.mc;h=d5b1799a15a72ef9503f9ffc1d8d5952d8e1a8cb;hb=935768897bb39ec321f9918e26e2fddfdbcd08ac;hp=a5f41100ac1f02427b081e6f311733265aabf45d;hpb=3f6a8ba142920105285e7b5b7621a33e70f90321;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/full.mc b/web/htdocs/details/full.mc index a5f4110..d5b1799 100644 --- a/web/htdocs/details/full.mc +++ b/web/htdocs/details/full.mc @@ -1,13 +1,11 @@ -%# $Id: full.mc,v 1.25 2007-04-18 12:06:25 mike Exp $ +%# $Id: full.mc,v 1.28 2007-05-11 13:32:57 mike Exp $ <%args> $id <%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) { @@ -43,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" ], @@ -68,7 +66,11 @@ if ($n == 0) { if ($data) { - <% xml_encode($caption) %> +% $caption =~ s/\/(.*)//; +% my $help = $1; + <% xml_encode($caption) %><% + !defined $help ? "" : $m->comp("/help/link.mc", help =>"info/$help") + %> <% xml_encode($data) %> % } @@ -77,7 +79,7 @@ if ($n == 0) {