X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=www%2Ftargets.egw;h=f9c15f1bac229506710d056daf1733dda1256553;hb=309c35b155c617707995d52197f64f7e17d143a2;hp=2bd313b0a94512efb0218e4c25ec15b10fe9542e;hpb=fff045d159e76bb8bb856fd7d2e6d34c1498d5a5;p=egate.git diff --git a/www/targets.egw b/www/targets.egw index 2bd313b..f9c15f1 100644 --- a/www/targets.egw +++ b/www/targets.egw @@ -1,33 +1,47 @@ { -# $Id: targets.egw,v 1.15 1996/01/12 10:03:20 adam Exp $ +# $Id: targets.egw,v 1.20 1996/03/05 18:50:25 adam Exp $ source ztargets.conf if {[info commands saveState] == ""} { source z39util.tcl } -} - - Europagate, WWW/Z39.50 Gateway - - -

Choose Z39.50 target


-
-{ + set mMode 0 + 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 useIcons 1 + + button-europagate + if {[info exists nextSetNo]} { + button-view-history 1 + } + button-define-target 0 + html "

Choose a target


\n" + html "
\n" + proc targetsCmp {l r} { global targets return [string compare [string tolower [lindex $targets($l) 0]] \ @@ -41,17 +55,17 @@ html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " \n" set desc [lindex $targets($t) 4] if {$desc != ""} { - html "
$desc\n" + html "
$desc\n" } } + html "

\n" + set useIcons 0 + button-europagate + if {[info exists nextSetNo]} { + button-view-history 1 + } + button-define-target 0 } -
- -{ - button-europagate - button-view-history 0 -} - { catch maintenance global debug