X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fedit.mc;h=917c9f3f94cf438d6e17fdadf53af5ecd5f9ab2a;hb=713149feeca669b0bf5702f55a89cd681a648f1e;hp=96a2948ff80f149d89d0a9a5e7decd7d3390f471;hpb=ffff14134a767a31948cb44d8c7695ab8e947aad;p=irspy-moved-to-github.git
diff --git a/web/htdocs/details/edit.mc b/web/htdocs/details/edit.mc
index 96a2948..917c9f3 100644
--- a/web/htdocs/details/edit.mc
+++ b/web/htdocs/details/edit.mc
@@ -1,16 +1,15 @@
-%# $Id: edit.mc,v 1.13 2006-11-16 11:53:33 mike Exp $
+%# $Id: edit.mc,v 1.17 2006-11-16 17:27:15 mike Exp $
<%args>
$id => undef
%args>
<%perl>
my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1", 0,
- user => "admin", password => "fruitbat");
+ user => "admin", password => "fruitbat",
+ elementSetName => "zeerex");
my $rec = '
You must specify host, port and database name.
\n]; + $r->param(update => 0); + } + + my $query = cql_target($host, $port, $dbname); } my $xc = irspy_xpath_context($rec); @@ -59,7 +72,7 @@ my @fields = my $nchanges = 0; my $update = $r->param("update"); -if (defined $update) { +if ($update) { # Update record with submitted data my %fieldsByKey = map { ( $_->[0], $_) } @fields; my %data; @@ -102,9 +115,9 @@ foreach my $ref (@fields) { % } % } elsif ($nlines) { - + % } else { - + % }