X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftdefine.egw;h=ca5f862045543e4284be5e958f9a56c92cc50dea;hb=a61ad0378b93e99e362a1d92c33d701dbf103eba;hp=bd8453bdce7f13f3650f2ed33c8b5799bab857e7;hpb=fa0ddb755d3a836e4e13cc05a6ba3eb6b0010958;p=egate.git
diff --git a/www/tdefine.egw b/www/tdefine.egw
index bd8453b..ca5f862 100644
--- a/www/tdefine.egw
+++ b/www/tdefine.egw
@@ -4,11 +4,16 @@
{
-# $Id: tdefine.egw,v 1.1 1996/01/24 14:14:19 adam Exp $
+# $Id: tdefine.egw,v 1.5 1996/03/13 14:07:31 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
}
+ set useIcons 1
+ button-main
+ button-define-target
+ button-new-target
+
html "Target definition response
\n"
set name [lindex [egw_form name] 0]
@@ -20,18 +25,18 @@
set ok 1
if {[string length $name] == 0} {
- html "You didn't specify a target name. You must specify"
- html " a target name
\n"
+ html "You didn't specify a target name. A target name must "
+ html "be specified.
\n"
set ok 0
}
if {[string length $host] == 0} {
- html "You didn't specify a target name. You must specify"
- html " a host name
\n"
+ html "You didn't specify a target name. A host must "
+ html "be specified.
\n"
set ok 0
}
if {[string length $databases] == 0} {
- html "You didn't specify any database(s). You must specify"
- html " at least one database\n"
+ html "You didn't specify any database(s). At least one database "
+ html "must be specified.
\n"
set ok 0
}
catch {unset item}
@@ -62,25 +67,25 @@
html " search fields must be present
\n"
set ok 0
}
+ set hostSpec [mergeHostSpec $host $databases]
if {$ok} {
global targets
- set targets($host) [list \
+ set targets($hostSpec) [list \
[join $name] \
- $databases \
+ USMARC \
$attrList \
$authentication \
$description \
1 ]
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