projects
/
egate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some bugs with escape sequences.
[egate.git]
/
www
/
tdefine.egw
diff --git
a/www/tdefine.egw
b/www/tdefine.egw
index
ca5f862
..
e928334
100644
(file)
--- a/
www/tdefine.egw
+++ b/
www/tdefine.egw
@@
-1,14
+1,18
@@
<html>
<html>
-<head>
-<title> WWW/Z39.50 Gateway Target Definition Response</title>
-</head>
-<body>
{
{
-# $Id: tdefine.egw,v 1.5 1996/03/13 14:07:31 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 commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
}
+
+ html {<head><title> WWW/Z39.50 Gateway Target Definition Response</title>}
+ html {</head><body>}
+
set useIcons 1
button-main
button-define-target
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 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} {
set ok 1
if {[string length $name] == 0} {
@@
-39,6
+44,11
@@
html "<em>must</em> be specified.<br>\n"
set ok 0
}
html "<em>must</em> be specified.<br>\n"
set ok 0
}
+ if {[string length $recordType] == 0} {
+ html "You didn't specify any record type. One record type "
+ html "<em>must</em> be specified.<br>\n"
+ set ok 0
+ }
catch {unset item}
catch {unset attrList}
set fname {}
catch {unset item}
catch {unset attrList}
set fname {}
@@
-72,11
+82,12
@@
global targets
set targets($hostSpec) [list \
[join $name] \
global targets
set targets($hostSpec) [list \
[join $name] \
- USMARC \
+ $recordType \
$attrList \
$authentication \
$description \
$attrList \
$authentication \
$description \
- 1 ]
+ 1 \
+ user ]
html "Target successfully defined<br>\n"
}
html "<p>\n"
html "Target successfully defined<br>\n"
}
html "<p>\n"
@@
-90,7
+101,7
@@
if {!$debug} return
if {!$debug} return
- html "name=" $name "<br>\n"
+ html "\n<br>name=" $name "<br>\n"
html "description=" $description "<br>\n"
html "host=" $host "<br>\n"
html "databases=" $databases "<br>\n"
html "description=" $description "<br>\n"
html "host=" $host "<br>\n"
html "databases=" $databases "<br>\n"