projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exactly the same as 4cb4863eab0eaabf4265a494592f0ea63a081bb4, stupid git
[irspy-moved-to-github.git]
/
web
/
htdocs
/
raw.html
diff --git
a/web/htdocs/raw.html
b/web/htdocs/raw.html
index
5b86379
..
fc8bec2
100644
(file)
--- a/
web/htdocs/raw.html
+++ b/
web/htdocs/raw.html
@@
-1,21
+1,20
@@
-%# $Id: raw.html,v 1.8 2007-05-11 08:30:11 mike Exp $
<%args>
$id
</%args>
<%once>
use ZOOM;
<%args>
$id
</%args>
<%once>
use ZOOM;
+use ZOOM::IRSpy;
+use ZOOM::IRSpy::Utils qw(cql_target);
</%once>
<%perl>
</%once>
<%perl>
-my $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
+my $db = ZOOM::IRSpy::connect_to_registry();
+my $conn = new ZOOM::Connection($db);
$conn->option(elementSetName => "zeerexNoAuth");
$conn->option(elementSetName => "zeerexNoAuth");
-my $qid = $id;
-$qid =~ s/"/\\"/g;
-my $query = qq[rec.id="$qid"];
-my $rs = $conn->search(new ZOOM::Query::CQL($query));
+my $rs = $conn->search(new ZOOM::Query::CQL(cql_target($id)));
my $n = $rs->size();
if ($n == 0) {
$m->comp("/chrome/layout.mc", component => "/details/error.mc",
my $n = $rs->size();
if ($n == 0) {
$m->comp("/chrome/layout.mc", component => "/details/error.mc",
- title => "Error", message => "No such ID '$id'");
+ title => "Error", message => xml_encode("No such ID '$id'"));
} else {
my $xml = $rs->record(0)->render();
$r->content_type("text/xml");
} else {
my $xml = $rs->record(0)->render();
$r->content_type("text/xml");