Plus (+) characters automatically converted to space in forms.
[egate.git] / www / msearch.egw
index c1c825a..ee40776 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 {
-# $Id: msearch.egw,v 1.3 1995/11/08 18:07:22 adam Exp $
+# $Id: msearch.egw,v 1.4 1995/11/10 14:47:31 adam Exp $
 
     if {[info commands saveState] == ""} {
         source z39util.tcl
 
     html "<head><title> WWW/Z39.50 Gateway Search </title>\n"
     html "</head><body>\n"
-    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)
-            }
+    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
@@ -52,7 +52,7 @@
             set r [z39$i.$setNo resultCount]
             html "$r hits\n<dd>\n"
 
-            display-rec 1 $hist($setNo,$i,offset) display-brief z39$i
+            display-rec 1 $hist($setNo,$i,offset) display-brief $i
         }
         html "\n"
     }