X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fsearch.egw;h=dd7162d93599f1d5f813cdaefd0be5917363c820;hb=5bbe4c302d2d105aea7806317e9f31d5773a9536;hp=ebd2e66fdfb411cedbe2a5496e77367392ecaa0a;hpb=6315a552d51ac08b60d25d8500da5574a83ba530;p=egate.git diff --git a/www/search.egw b/www/search.egw index ebd2e66..dd7162d 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,32 +1,53 @@ { -# $Id: search.egw,v 1.10 1995/11/08 12:42:17 adam Exp $ +# $Id: search.egw,v 1.16 1995/11/13 18:17:48 adam Exp $ -proc buttons {setNo setMax startPos} { +proc buttons {setNo setMax startPos after} { global sessionId global env global hist + if {$after && $setMax < [z39.$setNo resultCount]} { + html "
\n" + html "
\n" if {$setMax < [z39.$setNo resultCount]} { - html { Next } "| \n" + html + [expr $setMax + $hist($setNo,maxPresent)] + html {">Next records} " | \n" } if {$startPos != "" && $startPos != "1"} { - html { 1} { - html + [expr $startPos - $hist($setNo,maxPresent)] - html + [expr $startPos - 1] - } - html {"> Prev } "| \n" + html + [expr $startPos - $hist($setNo,maxPresent)] + html + [expr $startPos - 1] + html {">Previous records} " | \n" } - html { New target } " | \n" - html { New query } "
\n" + html {">New query} " | \n" + + html {New target} "
\n" + + if {!$after && $startPos != "" && $startPos != "1"} { + html "
\n"
+ }
+
}
if {[info commands saveState] == ""} {
@@ -37,19 +58,35 @@ proc buttons {setNo setMax startPos} {
global setNo
global hist
- set oldHost $hist($setNo,host)
-
- if {[wform menu1] == ""} {
- set setNo [lindex $sessionParms 0]
- } else {
- if {![info exists hist($nextSetNo,host)]} {
- set hist($nextSetNo,host) $oldHost
- }
+ set setNo [lindex $sessionParms 0]
+ if {[wform menu1] != ""} {
+ set hist($nextSetNo,idAuthentication) $hist($setNo,idAuthentication)
+ set hist($nextSetNo,host) $hist($setNo,host)
set setNo $nextSetNo
html "using host " $hist($setNo,host) "