X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftargets.egw;h=04b5ec01927782cff652e375e685462061b006d6;hb=a61ad0378b93e99e362a1d92c33d701dbf103eba;hp=f1cf267492bbe9486f0601b955d776ae1521962f;hpb=cc5af6a5323f9576c208519dbf4351b4f818e166;p=egate.git
diff --git a/www/targets.egw b/www/targets.egw
index f1cf267..04b5ec0 100644
--- a/www/targets.egw
+++ b/www/targets.egw
@@ -1,33 +1,48 @@
{
-# $Id: targets.egw,v 1.14 1996/01/09 16:16:49 adam Exp $
+# $Id: targets.egw,v 1.23 1996/03/13 14:07:31 adam Exp $
source ztargets.conf
if {[info commands saveState] == ""} {
source z39util.tcl
}
-}
-
- Europagate, WWW/Z39.50 Gateway
-
-
-Choose Z39.50 target
-
-{
if {![info exists debug]} {
- if {[lindex $sessionParms 0] == "1"} {
+ if {[lindex $sessionParms 1] == "1"} {
set debug 1
} else {
set debug 0
}
}
-
- if {![info exists useIcons]} {
- if {[lindex $sessionParms 1] == "1"} {
- set useIcons 0
+ set html3 [lindex $sessionParms 0]
+ if {[string length $html3] == 0} {
+ if {![info exists env(HTTP_USER_AGENT)]} {
+ set html3 1
+ } elseif {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
+ set html3 1
+ egw_log debug "New user using Netscape"
} else {
- set useIcons 1
+ set html3 0
+ egw_log debug "New user Not using Netscape"
}
}
+}
+
+ Europagate, WWW/Z39.50 Gateway
+
+
+{
+ set scriptQuery query.egw
+ set scriptTarget targets.egw
+
+ set useIcons 1
+
+ button-main
+ if {[info exists nextSetNo]} {
+ button-view-history
+ }
+ button-define-target
+ html "Choose a target
\n"
+ html "\n"
+
proc targetsCmp {l r} {
global targets
return [string compare [string tolower [lindex $targets($l) 0]] \
@@ -36,22 +51,22 @@
set tt [array names targets]
set tn [lsort -command targetsCmp $tt]
foreach t $tn {
- if {[string index $t 0] == "."} continue
html {- } [lindex $targets($t) 0] " \n"
+ html "$sessionId/query.egw;/-1+$t" {"> } [lindex $targets($t) 0]
+ html " \n"
set desc [lindex $targets($t) 4]
if {$desc != ""} {
- html "
- $desc\n"
+ html "
- $desc\n"
}
}
+ html "
\n"
+ set useIcons 0
+ button-main
+ if {[info exists nextSetNo]} {
+ button-view-history
+ }
+ button-define-target
}
-
-
-{
- button-europagate
- button-view-history 0
-}
-
{
catch maintenance
global debug