X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftdefine.egw;h=28f27c8dada7163825039f0a373e223dfab63a6c;hb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;hp=ca5f862045543e4284be5e958f9a56c92cc50dea;hpb=a61ad0378b93e99e362a1d92c33d701dbf103eba;p=egate.git
diff --git a/www/tdefine.egw b/www/tdefine.egw
index ca5f862..28f27c8 100644
--- a/www/tdefine.egw
+++ b/www/tdefine.egw
@@ -1,14 +1,18 @@
-
- WWW/Z39.50 Gateway Target Definition Response
-
-
{
-# $Id: tdefine.egw,v 1.5 1996/03/13 14:07:31 adam Exp $
+# $Id: tdefine.egw,v 1.6 1996/03/14 11:50:49 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
@@ -22,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} {
@@ -39,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,16 +77,20 @@
html " search fields must be present
\n"
set ok 0
}
+ if {![string compare recordType WAIS]} {
+ set attrList { {Free-text} {} }
+ }
set hostSpec [mergeHostSpec $host $databases]
if {$ok} {
global targets
set targets($hostSpec) [list \
[join $name] \
- USMARC \
+ $recordType \
$attrList \
$authentication \
$description \
- 1 ]
+ 1 \
+ user ]
html "Target successfully defined
\n"
}
html "\n"
@@ -90,7 +104,7 @@
if {!$debug} return
- html "name=" $name "
\n"
+ html "\n
name=" $name "
\n"
html "description=" $description "
\n"
html "host=" $host "
\n"
html "databases=" $databases "
\n"