X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fquery.egw;h=9a72fe31b94ddc7d8a232239a5fdf4ac18c1e9ba;hb=94e0e8ff10cdb5142f983cd76156310461f9eb89;hp=d07e2c3d0a11ef9970c67af389c1403810e7ed28;hpb=949f8c4efedfe6d191264853690c84f527e1790b;p=egate.git diff --git a/www/query.egw b/www/query.egw index d07e2c3..9a72fe3 100644 --- a/www/query.egw +++ b/www/query.egw @@ -4,7 +4,12 @@ { -# $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 @@ -19,14 +24,17 @@ proc ok-response {} { 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}]} { @@ -52,7 +60,11 @@ proc ok-response {} { } } set sessionWait 0 - z39 init + if {[catch {z39 init}]} { + htmlr "Cannot initialize with target ${host}
" + htmlr "" + wabort + } zwait sessionWait if {$sessionWait != "1"} { htmlr "Cannot initialize with target ${host}
" @@ -89,7 +101,7 @@ proc ok-response {} { } }
-Input your search criteria:
+

Input your search criteria:


{ set fields [lindex $targets($host) 2] for {set no 1} {$no < 4} {incr no} { @@ -114,8 +126,8 @@ Alternatively you can enter your query in CCL here:


- Various technical parameters:
-Max hits: +

Various technical parameters:


+Max hits: Records are shown in: