X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Flayout.mc;h=ad7d4c9b18a7715b91fec470808e499f4d7cd8f3;hb=4b15b6b8f210b1bd664e33c84c55a307fed4bf0c;hp=db224299dfc5a3e7a39e1f36f6ab9982759bd8e0;hpb=1ea61ba35126286896fc158104e9bb0c8fa11e2c;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/layout.mc b/web/htdocs/chrome/layout.mc index db22429..ad7d4c9 100644 --- a/web/htdocs/chrome/layout.mc +++ b/web/htdocs/chrome/layout.mc @@ -1,35 +1,15 @@ -%# $Id: layout.mc,v 1.17 2006-11-16 11:49:30 mike Exp $ +%# $Id: layout.mc,v 1.19 2006-11-29 18:19:17 mike Exp $ <%args> $debug => undef $title $component -<%perl> -{ - # Make up ID for newly created records. It would be more - # rigorously correct, but insanely inefficient, to submit the - # record to Zebra and then search for it; but since we know the - # formula for IDs anyway, we just build one by hand. - my $id = $r->param("id"); - my $host = $r->param("host"); - my $port = $r->param("port"); - my $dbname = $r->param("dbname"); - #warn "id='$id', host='$host', port='$port', dbname='$dbname'"; - #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n"; - if ((!defined $id || $id eq "") && - defined $host && defined $port && defined $dbname) { - $id = "$host:$port/$dbname"; - $r->param(id => $id); - $ARGS{id} = $id; - #warn "id set to '$id'"; - } -} - <%once> use URI::Escape; use ZOOM; use ZOOM::IRSpy::Web; -use ZOOM::IRSpy::Utils qw(irspy_xpath_context xml_encode modify_xml_document); +use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target + irspy_xpath_context modify_xml_document); <& /chrome/head.mc, title => $title &>