<html>
{
-# $Id: nwi.egw,v 1.4 1996/03/14 11:50:46 adam Exp $
+# $Id: nwi.egw,v 1.5 1996/03/15 14:43:44 adam Exp $
source ztargets.conf
set scriptQuery nwi.egw
foreach t {
{nwi.ub2.lu.se/sverige}
{nwi.ub2.lu.se/new_nor_lib}
- {localhost:9999/test}
- {localhost:210/Default}
} {
html {<input type="checkbox" name="host" }
if {[info exists curTargets]} {
#
-# $Id: nwiutil.tcl,v 1.2 1996/03/14 11:50:46 adam Exp $
+# $Id: nwiutil.tcl,v 1.3 1996/03/15 14:43:44 adam Exp $
#
proc button-main {} {
proc maintenance {} {
html {<hr>This page is maintained by }
html {<a href="mailto:adam@index.ping.dk"> Adam Dickmeiss </a>.}
- html {Last modified March 14, 1996. <br>}
+ html {Last modified March 15, 1996. <br>}
}
#
-# $Id: z39util.tcl,v 1.41 1996/03/14 11:50:51 adam Exp $
+# $Id: z39util.tcl,v 1.42 1996/03/15 14:43:45 adam Exp $
#
proc saveState {} {
uplevel #0 {
}
while {$zleft > 0} {
egw_log debug "Waiting for init response"
- if {[catch {egw_wait zleft 20}]} {
+ if {[catch {egw_wait zleft 20} reason]} {
+ if {![string compare $reason cancel]} {
+ for {set i 1} {$i <= $not} {incr i} {
+ set zstatus($i) -1
+ catch {z39$i disconnect}
+ }
+ return
+ } else {
+ for {set i 1} {$i <= $not} {incr i} {
+ if {$zstatus($i) == -1} {
+ catch {z39$i disconnect}
+ }
+ }
+ }
break
}
}
}
}
}
+
+
while {$zleft > 0} {
egw_log debug "Waiting for search/present response"
- if {[catch {egw_wait zleft 60}]} {
+ if {[catch {egw_wait zleft 60} reason]} {
+ if {![string compare $reason cancel]} {
+ for {set i 1} {$i <= $not} {incr i} {
+ catch {z39$i disconnect}
+ set zstatus($i) -1
+ }
+ return
+ } else {
+ for {set i 1} {$i <= $not} {incr i} {
+ if {$zstatus($i) != 2} {
+ catch {z39$i disconnect}
+ }
+ }
+ }
break
}
}
proc maintenance {} {
html {<hr>This page is maintained by }
html {<a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.}
- html {Last modified 29. january 1996. <br>}
- html {<em> This and the following pages are under construction and }
- html {will continue to be so until the end of January 1996.</em>}
+ html {Last modified March 15, 1996. <br>}
}
proc splitHostSpec {host} {