Attempt to inform user if session has really terminated.
[egate.git] / www / tform.egw
1 <html>
2 {
3 # $Id: tform.egw,v 1.6 1996/03/14 11:50:50 adam Exp $
4
5     if {[info commands saveState] == ""} {
6         source z39util.tcl
7         if {![info exists debug]} {
8             session-lost
9             egw_abort
10         }
11     }
12     html {<head><title>WWW/Z39.50 Gateway Target Definition</title>}
13     html {</head><body>}
14
15     set useIcons 1
16     button-main
17     button-new-target
18
19     html "<h2>Target definition form</h2><br>\n"
20     html {<form action="http:} $env(SCRIPT_NAME)
21     html / $sessionId {/tdefine.egw} {" method=post>} \n
22
23     html "<dl>"
24     html "\n<dt>Target name\n"
25     html {<dd><input type="text" size=20 maxlength=20 name="name">}
26     html "\n<br><font size=2>This name serves as a short nickname of "
27     html "the target</font>"
28
29     html "\n<dt>Description\n"
30     html {<dd><textarea rows=3 cols=55 name="description"></textarea>}
31     html "\n<br><font size=2>A description of the server and what data "
32     html "it provides.</font>"
33
34     html "\n<dt>Host and port\n"
35     html {<dd><input type="text" size=55 name="host">}
36     html "\n<br><font size=2>For example myhost.com:210</font>"
37
38     html "\n<dt>Authentication\n"
39     html {<dd><input type="text" size=55 name="authentication">}
40     html "\n<br><font size=2>Some targets require authentication strings, "
41     html "i.e. passwords. Leave this field empty if no authentication "
42     html "string is required.</font>"
43
44     html "\n<dt>Record type:\n"
45     html {<dd><select name="recordtype">}
46     html {<option> USmarc} \n
47     html {<option> WAIS} \n
48     html {<option> SUTRS} \n
49     html {<option> UNImarc} \n
50     html {<option> UKmarc} \n
51     html {<option> Danmarc} \n
52     html {<option> Normarc} \n
53     html {<option> Librismarc} \n
54     html {</select>}
55     html "\n<br><font size=2>Select WAIS for a WAIS server. The "
56     html "other formats apply to Z39.50 servers</font>"
57
58     html "\n<dt>Databases\n"
59     html {<dd><textarea rows=3 cols=55 name="databases"></textarea>}
60     html "\n<br><font size=2>Separate each database by blanks</font>"
61
62     html "\n<dt>Search fields\n"
63     html {<dd><textarea rows=8 cols=55 name="fields">} 
64     html "Title    1=4\n"
65     html "Author   1=1003\n"
66     html "Abstract 1=62\n"
67     html "Date     1=30\n"
68     html "Doc Id   1=1032\n"
69     html "All      1=1016\n"
70     html "Ranked   1=1016 4=105\n"
71     html {</textarea>}
72     html "\n<br><font size=2>"
73     html {Specify search fields, such as Title/Author,ISBN, etc. and }
74     html {their mappings to the Bib-1 attribute for this target.}
75     html { Note: If you don't know how to set these - leave them untouched!}
76     html "</font>"
77     html "\n</dl><br>\n"
78     html {<input type=submit name=submit value="Submit">}
79     html {<input type=reset value="Reset">}
80     html "\n<br>\n"
81
82     set useIcons 0
83     button-main
84     button-new-target
85 }
86 </body></html>