From: Mike Taylor Date: Tue, 19 Sep 2006 11:12:33 +0000 (+0000) Subject: Include database title and link to raw ZeeRex XML. X-Git-Tag: CPAN-v1.02~54^2~1053 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=4da9c82345c2a97a927391aefdf78c5db5e9801c Include database title and link to raw ZeeRex XML. --- diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index 677bb68..a358498 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.3 2006-09-18 19:26:37 mike Exp $ +%# $Id: found.mc,v 1.4 2006-09-19 11:12:33 mike Exp $ <%once> use XML::LibXML; use XML::LibXML::XPathContext; @@ -64,10 +64,12 @@ if ($last < $n) { + + % foreach my $i ($first .. $last) { <%perl> @@ -77,6 +79,7 @@ my $doc = $parser->parse_string($xml); my $root = $doc->getDocumentElement(); my $xc = XML::LibXML::XPathContext->new($root); $xc->registerNs(e => 'http://explain.z3950.org/dtd/2.0/'); +my $title = $xc->find("e:databaseInfo/e:title"); my $host = $xc->find("e:serverInfo/e:host"); my $port = $xc->find("e:serverInfo/e:port"); my $db = $xc->find("e:serverInfo/e:database"); @@ -86,10 +89,12 @@ my $id = $xc->find("concat(e:serverInfo/e:host, ':', + + %}
#Title Host Port DB
<% $i %><% $title %> <% $host %> <% $port %> <% $db %> ">[Check]">[Raw]