%# $Id: raw.html,v 1.6 2006-11-29 12:31:25 mike Exp $
<%args>
$id
%args>
<%once>
use ZOOM;
%once>
<%perl>
my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
my $qid = $id;
$qid =~ s/"/\\"/g;
my $query = qq[rec.id="$qid"];
my $rs = $conn->search(new ZOOM::Query::CQL($query));
my $n = $rs->size();
if ($n == 0) {
$m->comp("/chrome/layout.mc", component => "/details/error.mc",
title => "Error", message => "No such ID '$id'");
} else {
my $xml = $rs->record(0)->render();
$r->content_type("text/xml");
print $xml;
}
%perl>