X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=www%2Fmsearch.egw;h=ef43804369058af7f7d56989d0f34fc3fbe45659;hb=a61ad0378b93e99e362a1d92c33d701dbf103eba;hp=2ca5eb5b799ff716669af086dacfd0eaff445686;hpb=cf6ead410b63297e714d9258f9ea593b1e127501;p=egate.git
diff --git a/www/msearch.egw b/www/msearch.egw
index 2ca5eb5..ef43804 100644
--- a/www/msearch.egw
+++ b/www/msearch.egw
@@ -1,6 +1,6 @@
{
-# $Id: msearch.egw,v 1.13 1996/01/26 15:50:07 adam Exp $
+# $Id: msearch.egw,v 1.20 1996/03/13 14:07:29 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
@@ -16,7 +16,21 @@
set setNo [lindex $sessionParms 0]
- if {[egw_form menu1] != ""} {
+ if {[llength [egw_form]] > 0} {
+ if {[string length [egw_form host]] > 0} {
+ set hist($setNo,0,host) [llength [egw_form host]]
+ set i 1
+ foreach t [egw_form host] {
+ set hist($setNo,$i,host) $t
+ set hist($setNo,$i,database) [splitDatabaseSpec $t]
+ set hist($setNo,$i,idAuthentication) {}
+ incr i
+ }
+ }
+ if {![info exists hist($setNo,0,host)]} {
+ displayError {No servers selected} {}
+ egw_abort
+ }
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)
@@ -30,47 +44,51 @@
for {set i 1} {$i <= $hist($setNo,0,host)} {incr i} {
set hist($setNo,$i,query) [build-query $hist($setNo,$i,host) 3]
}
+
+ set hist($setNo,scan) 0
+
+ set hist($setNo,form,menu1) [egw_form menu1]
+ set hist($setNo,form,menu2) [egw_form menu2]
+ set hist($setNo,form,menu3) [egw_form menu3]
+
+ set hist($setNo,form,entry1) [egw_form entry1]
+ set hist($setNo,form,entry2) [egw_form entry2]
+ set hist($setNo,form,entry3) [egw_form entry3]
+
+ set hist($setNo,form,logic1) [egw_form logic1]
+ set hist($setNo,form,logic2) [egw_form logic2]
+ set hist($setNo,form,logic3) {}
+
set hist($setNo,maxPresent) [egw_form hits]
if {$hist($setNo,maxPresent) == ""} {
- set hist($setNo,maxPresent) 30
+ set hist($setNo,maxPresent) 20
+ }
+ set hist($setNo,format) [egw_form format]
+ if {![string length $hist($setNo,format)]} {
+ set hist($setNo,format) brief
+ }
+ set hist($setNo,sort) [egw_form sort]
+ if {![string length $hist($setNo,sort)]} {
+ set hist($setNo,sort) server
}
}
set useIcons 1
- button-europagate
- button-new-query 1 $setNo
- button-new-target 0
+ button-main
+ button-new-query $setNo
+ button-view-history
+ button-new-target
html "
\n"
- z39msearch $setNo 1 B
-
- html "