X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=www%2Ftdefine.egw;h=e928334ee50918057a6da18c4c3f8a1f949a1858;hb=HEAD;hp=6f9e1af227aa36b86077297862c8932c5557dc87;hpb=84081f9782ee28f9236b0974891f1d6b865992be;p=egate.git
diff --git a/www/tdefine.egw b/www/tdefine.egw
index 6f9e1af..e928334 100644
--- a/www/tdefine.egw
+++ b/www/tdefine.egw
@@ -1,14 +1,23 @@
-
- WWW/Z39.50 Gateway Target Definition Response
-
-
{
-# $Id: tdefine.egw,v 1.2 1996/01/24 16:59:28 adam Exp $
+# $Id: tdefine.egw,v 1.7 1996/08/28 09:36:03 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
+
+ html { WWW/Z39.50 Gateway Target Definition Response}
+ html {}
+
+ set useIcons 1
+ button-main
+ button-define-target
+ button-new-target
+
html "Target definition response
\n"
set name [lindex [egw_form name] 0]
@@ -17,6 +26,7 @@
set databases [lindex [egw_form databases] 0]
set authentication [egw_form authentication]
set fields [lindex [egw_form fields] 0]
+ set recordType [lindex [egw_form recordtype] 0]
set ok 1
if {[string length $name] == 0} {
@@ -34,6 +44,11 @@
html "must be specified.
\n"
set ok 0
}
+ if {[string length $recordType] == 0} {
+ html "You didn't specify any record type. One record type "
+ html "must be specified.
\n"
+ set ok 0
+ }
catch {unset item}
catch {unset attrList}
set fname {}
@@ -67,26 +82,26 @@
global targets
set targets($hostSpec) [list \
[join $name] \
- $databases \
+ $recordType \
$attrList \
$authentication \
$description \
- 1 ]
+ 1 \
+ user ]
html "Target successfully defined
\n"
}
+ html "\n"
+ set useIcons 0
+ button-main
+ button-define-target
+ button-new-target
}
{
- button-europagate
- button-define-target 1
- button-new-target 0
-}
-
-{
global debug
if {!$debug} return
- html "name=" $name "
\n"
+ html "\n
name=" $name "
\n"
html "description=" $description "
\n"
html "host=" $host "
\n"
html "databases=" $databases "
\n"