X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=sidebyside;f=www%2Fmsearch.egw;h=2ca5eb5b799ff716669af086dacfd0eaff445686;hb=1c4292e2de2d0a0355c4847a15bde1ebadedef6d;hp=01fa9aba0de372c6748b8444e42cc4fed71cf5b6;hpb=71ad5b6272d0bc6320bea6c1ec10f5e10bbfe8ef;p=egate.git
diff --git a/www/msearch.egw b/www/msearch.egw
index 01fa9ab..2ca5eb5 100644
--- a/www/msearch.egw
+++ b/www/msearch.egw
@@ -1,6 +1,6 @@
{
-# $Id: msearch.egw,v 1.10 1996/01/08 08:42:13 adam Exp $
+# $Id: msearch.egw,v 1.13 1996/01/26 15:50:07 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
@@ -13,9 +13,10 @@
html "
WWW/Z39.50 Gateway Search \n"
html "\n"
+
set setNo [lindex $sessionParms 0]
- if {[wform menu1] != ""} {
+ if {[egw_form 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)
@@ -29,11 +30,18 @@
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,maxPresent) [wform hits]
+ set hist($setNo,maxPresent) [egw_form hits]
if {$hist($setNo,maxPresent) == ""} {
set hist($setNo,maxPresent) 30
}
}
+
+ set useIcons 1
+ button-europagate
+ button-new-query 1 $setNo
+ button-new-target 0
+
+ html "
\n"
z39msearch $setNo 1 B
html "\n"
@@ -58,28 +66,11 @@
html "\n"
}
html "
\n"
-}
-{
- global useIcons
-
- if {$useIcons} {
- html {}
- }
- html {}
- } else {
- html {"> New target } " | \n"
- }
- html {}
- } else {
- html {"> New query }
- }
+ set useIcons 0
+ button-europagate
+ button-new-query 1 $setNo
+ button-new-target 0
}
{
@@ -91,7 +82,7 @@
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 "query: --" $hist($setNo,1,query) "--
\n"
html "database: " $hist($setNo,1,database) "
\n"