Attempt to inform user if session has really terminated.
[egate.git] / www / query.egw
index 5c5e033..74ad296 100644 (file)
@@ -1,13 +1,13 @@
 <html>
-<head>
-<title> WWW/Z39.50 Gateway Query Form</title>
-</head>
-<body>
 {
-# $Id: query.egw,v 1.37 1996/03/12 16:30:27 adam Exp $
+# $Id: query.egw,v 1.39 1996/03/14 11:50:47 adam Exp $
 
     if {[info commands saveState] == ""} {
         source z39util.tcl
+        if {![info exists debug]} {
+            session-lost
+            egw_abort
+        }
     }
 
 proc fail-response {} {
@@ -24,6 +24,8 @@ proc ok-response {} {
     global nextSetNo
     global hist
 
+    html {<head><title> WWW/Z39.50 Gateway Query Form</title></head><body>}
+
     set initSet [lindex $sessionParms 0]
     set host [lindex $sessionParms 1]
     set scanLine [lindex $sessionParms 2]
@@ -96,11 +98,11 @@ proc ok-response {} {
 
     set useIcons 1
     button-main
-    button-new-target 1
+    button-new-target
     if {[lsearch [z390 options] scan] >= 0} {
-        button-scan-window 1 $setNo
+        button-scan-window $setNo
     }
-    button-view-history 0 
+    button-view-history
 
     html "<h2>" [lindex $targets($host) 0] "</h2><br>\n"
 
@@ -139,7 +141,7 @@ proc ok-response {} {
             html [concat $databases] {"> All <br>} \n
         }
     }
-    html "Input your search criteria:<br>\n"
+    html "<b>Fill-in this search form:</b><br>\n"
     set fields [lindex $targets($host) 2]
     for {set no 1} {$no < 4} {incr no} {
         html {<select name="menu} $no {">} \n
@@ -206,11 +208,11 @@ proc ok-response {} {
 
     set useIcons 0
     button-main
-    button-new-target 1
+    button-new-target
     if {[lsearch [z390 options] scan] >= 0} {
-        button-scan-window 1 $setNo
+        button-scan-window $setNo
     }
-    button-view-history 0 
+    button-view-history
 }
 
 {