From: Adam Dickmeiss Date: Wed, 3 Jan 1996 08:59:41 +0000 (+0000) Subject: Previus/next scan buttons in scan. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=6ceeaa167e3ef2970b6ef0ce2b6c7d9c362eda0a;p=egate.git Previus/next scan buttons in scan. --- diff --git a/www/query.egw b/www/query.egw index 16856a1..618955e 100644 --- a/www/query.egw +++ b/www/query.egw @@ -4,7 +4,7 @@ { -# $Id: query.egw,v 1.22 1996/01/02 15:34:08 adam Exp $ +# $Id: query.egw,v 1.23 1996/01/03 08:59:41 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -25,6 +25,9 @@ proc ok-response {} { global hist set host [lindex $sessionParms 0] + set initSet [lindex $sessionParms 1] + set scanLine [lindex $sessionParms 2] + set scanTerm [lindex $sessionParms 3] if {[catch {set setNo $nextSetNo}]} { set nextSetNo 1 @@ -95,13 +98,21 @@ proc ok-response {} { } set databases [lindex $targets($host) 1] - if {[catch {set prevHost $hist([expr $setNo - 1],host)}]} { +# if {[catch {set prevHost $hist([expr $setNo - 1],host)}]} { +# set databaseDefault [lindex $databases 0] +# set oSetNo 0 +# } else { +# set oSetNo [expr $setNo - 1] +# set databaseDefault $hist($oSetNo,database) +# } + if {$initSet == ""} { set databaseDefault [lindex $databases 0] set oSetNo 0 } else { - set oSetNo [expr $setNo - 1] + set oSetNo $initSet set databaseDefault $hist($oSetNo,database) } + html {
} \n set nodb [llength $databases] @@ -142,8 +153,11 @@ proc ok-response {} { } html "\n" html {} \n - html {} + html {} if {$no < 3} { html {