X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fraw.html;h=cd797c73a960bc292347566d0c35418a23cd82aa;hp=5a5f468a2d25a3f25ff0ec4348f60835f55e318a;hb=cd3d317d80ff34632912322d63c7ea9b0d92812a;hpb=6d72bfc088c25ef16e385885666baeb49a85676e diff --git a/web/htdocs/raw.html b/web/htdocs/raw.html index 5a5f468..cd797c7 100644 --- a/web/htdocs/raw.html +++ b/web/htdocs/raw.html @@ -1,7 +1,10 @@ -%# $Id: raw.html,v 1.4 2006-11-16 11:48:40 mike Exp $ +%# $Id: raw.html,v 1.6 2006-11-29 12:31:25 mike Exp $ <%args> $id +<%once> +use ZOOM; + <%perl> my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1"); $conn->option(elementSetName => "zeerex"); @@ -14,8 +17,7 @@ if ($n == 0) { $m->comp("/chrome/layout.mc", component => "/details/error.mc", title => "Error", message => "No such ID '$id'"); } else { - my $rec = $rs->record(0); - my $xml = $rec->render(); + my $xml = $rs->record(0)->render(); $r->content_type("text/xml"); print $xml; }