X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fmsearch.egw;h=efe43b926360f39cea959960c950e848197eb8e7;hb=e1652b5355c529be09d2c847ca0354bfb8db8067;hp=7f41697c9863731c3580e709bab278abca43644f;hpb=b443634fbd412cea15ea527188c3e241bb1edf21;p=egate.git
diff --git a/www/msearch.egw b/www/msearch.egw
index 7f41697..efe43b9 100644
--- a/www/msearch.egw
+++ b/www/msearch.egw
@@ -1,6 +1,6 @@
{
-# $Id: msearch.egw,v 1.2 1995/11/08 16:14:33 adam Exp $
+# $Id: msearch.egw,v 1.5 1995/11/13 15:41:42 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
@@ -11,15 +11,17 @@
global hist
global zstatus
- if {[wform menu1] == ""} {
- set setNo [lindex $sessionParms 0]
- } else {
- if {![info exists hist($nextSetNo,0,host)]} {
- set hist($nextSetNo,0,host) $hist($setNo,0,host)
- for {set i 1} {$i <= $hist($setNo,0,host)} {incr i} {
- set hist($nextSetNo,$i,host) $hist($setNo,$i,host)
- set hist($nextSetNo,$i,database) $hist($setNo,$i,database)
- }
+ html "
WWW/Z39.50 Gateway Search \n"
+ html "\n"
+ set setNo [lindex $sessionParms 0]
+
+ if {[wform menu1] != ""} {
+ set hist($nextSetNo,0,host) $hist($setNo,0,host)
+ for {set i 1} {$i <= $hist($setNo,0,host)} {incr i} {
+ set hist($nextSetNo,$i,host) $hist($setNo,$i,host)
+ set hist($nextSetNo,$i,database) $hist($setNo,$i,database)
+ set hist($nextSetNo,$i,idAuthentication) \
+ $hist($setNo,$i,idAuthentication)
}
set setNo $nextSetNo
incr nextSetNo
@@ -32,16 +34,13 @@
set hist($setNo,maxPresent) 30
}
}
- html " WWW/Z39.50 Gateway Search \n"
- html "\n"
-
- z39msearch $setNo 1
+ z39msearch $setNo 1 B
html "\n"
set not $hist($setNo,0,host)
for {set i 1} {$i <= $not} {incr i} {
if {$zstatus($i) != 2} continue
- html "- " $hist($setNo,$i,host) ": "
+ html "
- " [lindex $targets($hist($setNo,$i,host)) 0] ": "
set status [z39$i.$setNo responseStatus]
if {[lindex $status 0] == "NSD"} {
z39$i.$setNo nextResultSetPosition 0
@@ -53,7 +52,7 @@
set r [z39$i.$setNo resultCount]
html "$r hits\n
- \n"
- display-rec 1 $hist($setNo,$i,offset) display-brief z39$i
+ display-rec 1 $hist($setNo,$i,offset) display-brief $i
}
html "\n"
}
@@ -79,7 +78,8 @@
}
html "form: " [wform] "
\n"
html "target: " $host "
\n"
- html "query: --" $hist($setNo,1,query) "--
"
+ html "query: --" $hist($setNo,1,query) "--
\n"
+ html "database: " $hist($setNo,1,database) "
\n"
html "setNo: " $setNo "
\n"
html "nextSetNo: " $nextSetNo "
\n"
}