X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fsearch.egw;h=eabe4b9344aa2b75185065f9c40d5636e6348149;hb=3871eda3b3a1518d4d18c1ffc0ed0375cb88bdf5;hp=13333edba7ff7c82f6846955ebac9c8c1bf4e27b;hpb=b52740e82ab92e99a6982bf5c99a30ac404bd557;p=egate.git diff --git a/www/search.egw b/www/search.egw index 13333ed..eabe4b9 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,53 +1,206 @@ { -# $Id: search.egw,v 1.15 1995/11/13 15:41:44 adam Exp $ +# $Id: search.egw,v 1.32 1996/02/12 13:39:40 adam Exp $ -proc buttons {setNo setMax startPos after} { +proc start-scan {scanNo cache dir initSet} { global sessionId - global env + global sessionParms + global sessionWait + global setNo global hist + global targets + global nextSetNo + global env + global useIcons + global debug - if {$after && $setMax < [z39.$setNo resultCount]} { - html "
\n" - html "
\n" - if {$setMax < [z39.$setNo resultCount]} { html {Next records} " | \n" + html / $sessionId {/search.egw/} $setNo + [expr $scanNo + 1] + f {">} + if {$useIcons} { + html {} + } else { + html {Next Terms | } + } + html {} } - if {$startPos != "" && $startPos != "1"} { - html {Previous records} " | \n" + button-new-query 0 $setNo + + set databases [lindex $targets($host) 1] + + if {$initSet == ""} { + set databaseDefault [lindex $databases 0] + set oSetNo 0 + } else { + set oSetNo $initSet + set databaseDefault $hist($oSetNo,database) + } + + html {
\n" + display-scan $setNo $scanNo 0 + html "
\n" + + button-europagate + html {New query} " | \n" + html / $sessionId {/search.egw/} $setNo + [expr $scanNo - 1] + b {">} + if {$useIcons} { + html {} + } else { + html {Previous Terms | } + } html {New target} "
\n" + html / $sessionId {/search.egw/} $setNo + [expr $scanNo + 1] + f {">} + if {$useIcons} { + html {} + } else { + html {Next Terms | } + } + html {} + button-new-query 0 $setNo - if {!$after && $startPos != "" && $startPos != "1"} { - html "
\n" + button-europagate + if {$setMax > 0 && $setMax < [z39.$setNo resultCount]} { + html {} + } else { + html {">Next Records} " | \n" + } + } + if {$setMax > 0 && $startPos != "" && $startPos != "1"} { html {} - html "
\n" + if {$useIcons} { + html {">} + } else { + html {">Previous Records} " | \n" + } } + button-new-query 1 $setNo + button-new-target 1 + button-view-history 0 + html "
\n"
}
if {[info commands saveState] == ""} {
@@ -59,84 +212,188 @@ proc buttons {setNo setMax startPos after} {
global hist
set setNo [lindex $sessionParms 0]
- if {[wform menu1] != ""} {
+ set startPos [lindex $sessionParms 1]
+ set endPos [lindex $sessionParms 2]
+
+ if {[egw_form] != ""} {
set hist($nextSetNo,idAuthentication) $hist($setNo,idAuthentication)
set hist($nextSetNo,host) $hist($setNo,host)
- set setNo $nextSetNo
- html "using host " $hist($setNo,host) "
\n"
+ egw_abort
+ return
+ }
+ set query [build-query $hist($setNo,host) 3]
+ if {"x$query" == "x"} {
+ html "