Work on search in multiple targets.
[egate.git] / www / query.egw
index ba6672f..9a72fe3 100644 (file)
@@ -4,7 +4,12 @@
 </head>
 <body>
 {
-# $Id: query.egw,v 1.8 1995/11/02 16:35:36 adam Exp $
+# $Id: query.egw,v 1.9 1995/11/06 17:44:20 adam Exp $
+
+    if {[info commands saveState] == ""} {
+        source z39util.tcl
+    }
+
 proc fail-response {} {
     global sessionWait
     set sessionWait -1
@@ -55,7 +60,11 @@ proc ok-response {} {
             }
         }
         set sessionWait 0
-        z39 init
+        if {[catch {z39 init}]} {
+            htmlr "Cannot initialize with target ${host} <br>"
+            htmlr "</body></html>"
+            wabort
+        }
         zwait sessionWait
         if {$sessionWait != "1"} {
             htmlr "Cannot initialize with target ${host} <br>"
@@ -92,7 +101,7 @@ proc ok-response {} {
     }
 }
 <hr>
-<strong>Input your search criteria: </strong> <br>
+<h3>Input your search criteria: </h3> <br>
 {
     set fields [lindex $targets($host) 2]
     for {set no 1} {$no < 4} {incr no} {
@@ -117,7 +126,7 @@ Alternatively you can enter your query in
 <a href="ccl.html"> CCL </a> here: <br>
 <input type=text name="cclentry" size=52> <br>
 <hr>
-<strong> Various technical parameters: </strong> <br>
+<h3> Various technical parameters: </h3> <br>
 Max hits: <input type="text" name="hits" value="10" size=3>
 Records are shown in:
 <select name="format">
@@ -143,7 +152,7 @@ and will continue to be so until the end of December 1995.</em>
 }
 {
     html "<hr>\n"
-    html "<strong>Debug information</strong><br>\n"
+    html "<h3>Debug information</h3>\n"
     html "sessionId: $sessionId <br>\n"
     html "sessionParms: $sessionParms <br>\n"
     foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {