Add instructions to proxy /toroid/ to localhost:3000
[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 $db = ZOOM::IRSpy::connect_to_registry();
11 my $conn = new ZOOM::Connection($db);
12 $conn->option(elementSetName => "zeerexNoAuth");
13 my $rs = $conn->search(new ZOOM::Query::CQL(cql_target($id)));
14 my $n = $rs->size();
15 if ($n == 0) {
16     $m->comp("/chrome/layout.mc", component => "/details/error.mc",
17              title => "Error", message => xml_encode("No such ID '$id'"));
18 } else {
19     my $xml = $rs->record(0)->render();
20     $r->content_type("text/xml");
21     print $xml;
22 }
23 </%perl>