X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=inline;f=www%2Fsearch.egw;h=eabe4b9344aa2b75185065f9c40d5636e6348149;hb=a124021540d0bb0854668f509b28921b771c70fd;hp=d6d871754f9b3ae88475637061cc9b5154bd5c45;hpb=dc96146a41b92065d4fbb398dd1c66afd338f0c7;p=egate.git diff --git a/www/search.egw b/www/search.egw index d6d8717..eabe4b9 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,6 +1,6 @@ { -# $Id: search.egw,v 1.29 1996/01/12 13:39:22 adam Exp $ +# $Id: search.egw,v 1.32 1996/02/12 13:39:40 adam Exp $ proc start-scan {scanNo cache dir initSet} { global sessionId @@ -16,9 +16,50 @@ proc start-scan {scanNo cache dir initSet} { set host $hist($setNo,host) - html "
\n" display-scan $setNo $scanNo 0 html "
\n" @@ -149,10 +157,10 @@ proc start-scan {scanNo cache dir initSet} { foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} { html $e {: } $env($e) {} \n } - html "form: " [wform] " \n" + html "form: " [egw_form] " \n" html "target: " $host " \n" html "databases: " $hist($setNo,database) " \n" - html "selected: " [wform base] " \n" + html "selected: " [egw_form base] " \n" html "setNo: " $setNo " \n" html "nextSetNo: " $nextSetNo " \n" } @@ -165,7 +173,7 @@ proc buttons {setNo setMax startPos after} { html "
\n" button-europagate - if {$setMax < [z39.$setNo resultCount]} { + if {$setMax > 0 && $setMax < [z39.$setNo resultCount]} { html {Next Records} " | \n" } } - if {$startPos != "" && $startPos != "1"} { + if {$setMax > 0 && $startPos != "" && $startPos != "1"} { html {\n" - wabort + egw_abort return } set query [build-query $hist($setNo,host) 3] @@ -270,17 +280,35 @@ proc buttons {setNo setMax startPos after} { displayError "Empty query" \ "You must specify at least one search word" html "\n" - wabort + egw_abort } set hist($setNo,query) $query - } else { - if {[lindex $sessionParms 1] == "scan"} { - set scanNo 1000 - set hist($setNo,$scanNo,scanTerm) {} - start-scan $scanNo 0 {} {} - html "