20 rows of Implementation IDs.
[irspy-moved-to-github.git] / web / htdocs / raw.html
1 %# $Id: raw.html,v 1.9 2007-05-11 13:53:40 mike Exp $
2 <%args>
3 $id
4 </%args>
5 <%once>
6 use ZOOM;
7 use ZOOM::IRSpy::Utils qw(cql_target);
8 </%once>
9 <%perl>
10 my $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
11 $conn->option(elementSetName => "zeerexNoAuth");
12 my $rs = $conn->search(new ZOOM::Query::CQL(cql_target($id)));
13 my $n = $rs->size();
14 if ($n == 0) {
15     $m->comp("/chrome/layout.mc", component => "/details/error.mc",
16              title => "Error", message => xml_encode("No such ID '$id'"));
17 } else {
18     my $xml = $rs->record(0)->render();
19     $r->content_type("text/xml");
20     print $xml;
21 }
22 </%perl>