X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fmsearch.egw;h=01fa9aba0de372c6748b8444e42cc4fed71cf5b6;hb=71ad5b6272d0bc6320bea6c1ec10f5e10bbfe8ef;hp=efe43b926360f39cea959960c950e848197eb8e7;hpb=b52740e82ab92e99a6982bf5c99a30ac404bd557;p=egate.git diff --git a/www/msearch.egw b/www/msearch.egw index efe43b9..01fa9ab 100644 --- a/www/msearch.egw +++ b/www/msearch.egw @@ -1,6 +1,6 @@ { -# $Id: msearch.egw,v 1.5 1995/11/13 15:41:42 adam Exp $ +# $Id: msearch.egw,v 1.10 1996/01/08 08:42:13 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -27,7 +27,7 @@ incr nextSetNo for {set i 1} {$i <= $hist($setNo,0,host)} {incr i} { - set hist($setNo,$i,query) [build-query $hist($setNo,$i,host)] + set hist($setNo,$i,query) [build-query $hist($setNo,$i,host) 3] } set hist($setNo,maxPresent) [wform hits] if {$hist($setNo,maxPresent) == ""} { @@ -40,35 +40,50 @@ set not $hist($setNo,0,host) for {set i 1} {$i <= $not} {incr i} { if {$zstatus($i) != 2} continue - html "
" [lindex $targets($hist($setNo,$i,host)) 0] ": " + html "

" [lindex $targets($hist($setNo,$i,host)) 0] ": " set status [z39$i.$setNo responseStatus] if {[lindex $status 0] == "NSD"} { z39$i.$setNo nextResultSetPosition 0 set code [lindex $status 1] set msg [lindex $status 2] set addinfo [lindex $status 3] - html "Error\n
NSD$code: $msg: $addinfo" + html "Error

\n
NSD$code: $msg: $addinfo" } else { set r [z39$i.$setNo resultCount] - html "$r hits\n
\n" + html "$r hits\n
\n" } html "\n" } html "\n" } - -
{ + global useIcons + + if {$useIcons} { + html {} + } html { New target } " | \n" + html / $sessionId {/mtargets.egw} + if {$useIcons} { + html {">} + } else { + html {"> New target } " | \n" + } html { New query } + html / $sessionId {/mquery.egw/} $setNo + if {$useIcons} { + html {">} + } else { + html {"> New query } + } } { + if {!$debug} return html "
\n" html "

Debug information

\n" html "sessionId: $sessionId
\n"