X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftargets.egw;h=bd4838b854687f5bf9e474081f786826b72b6584;hb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;hp=46d61e1d300f88e0b6a87a4d157810e5de7bec5f;hpb=cf6ead410b63297e714d9258f9ea593b1e127501;p=egate.git
diff --git a/www/targets.egw b/www/targets.egw
index 46d61e1..bd4838b 100644
--- a/www/targets.egw
+++ b/www/targets.egw
@@ -1,34 +1,71 @@
{
-# $Id: targets.egw,v 1.18 1996/01/26 15:50:10 adam Exp $
+# $Id: targets.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
source ztargets.conf
- if {[info commands saveState] == ""} {
- source z39util.tcl
- }
if {![info exists debug]} {
- if {[lindex $sessionParms 0] == "1"} {
+ if {[lindex $sessionParms 1] == "1"} {
set debug 1
} else {
set debug 0
}
}
- set mMode 0
+ if {[info commands saveState] == ""} {
+ source z39util.tcl
+ }
+ 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 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-europagate
+ button-main
if {[info exists nextSetNo]} {
- button-view-history 1
+ button-view-history
}
- button-define-target 0
- html "Choose a target
\n"
+ button-define-target
+ html "Select a target
\n"
html "\n"
+ if {1} {
+ proc headlineC {h} {
+ html {} $h \n {
}
+ }
+ proc targetC {t} {
+ global targets
+ global env
+ global sessionId
+
+ html {- } [lindex $targets($t) 0]
+ html {}
+
+ html {
- }
+ set desc [lindex $targets($t) 4]
+ if {[string length $desc] > 0} {
+ html "$desc
\n"
+ }
+ html "
\n"
+ }
+ serverList headlineC targetC
+
+ } else {
proc targetsCmp {l r} {
global targets
return [string compare [string tolower [lindex $targets($l) 0]] \
@@ -37,21 +74,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 "
\n"
set useIcons 0
- button-europagate
+ button-main
if {[info exists nextSetNo]} {
- button-view-history 1
+ button-view-history
}
- button-define-target 0
+ button-define-target
}
{
catch maintenance