</head>
<body>
{
-# $Id: query.egw,v 1.7 1995/11/01 16:15:44 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
global nextSetNo
global hist
- set host $sessionParms
+ set host [lindex $sessionParms 0]
if {[info exists setNo]} {
set oldHost $hist($setNo,host)
} else {
set oldHost ""
}
- set setNo $nextSetNo
+ if {[catch {set setNo $nextSetNo}]} {
+ set nextSetNo 1
+ set setNo 1
+ }
set hist($setNo,host) $host
if {[catch {z39 failback fail-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>"
}
}
<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} {
<a href="ccl.html"> CCL </a> here: <br>
<input type=text name="cclentry" size=52> <br>
<hr>
-<strong> Various technical parameters: </strong> <br>
-Max hits: <input type="text" name="hits" value="50" size=3>
+<h3> Various technical parameters: </h3> <br>
+Max hits: <input type="text" name="hits" value="10" size=3>
Records are shown in:
<select name="format">
<option> Long format
}
{
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} {