{ # $Id: targets.egw,v 1.26 1996/05/24 11:16:02 adam Exp $ source ztargets.conf if {![info exists debug]} { if {[lindex $sessionParms 1] == "1"} { set debug 1 } else { set debug 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-main button-feedback if {[info exists nextSetNo]} { button-view-history } button-define-target html "

Select a target


\n" html "
\n" proc headlineC {h} { html {

} $h \n {

} } proc targetC {t} { global targets global env global sessionId global waisFlag if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} { return } html {
} [lindex $targets($t) 0] html {} html {
} set desc [lindex $targets($t) 4] if {[string length $desc] > 0} { html "$desc
\n" } html "
\n" } if {![info exists waisFlag]} { set waisFlag 1 if {[catch {wais waisdummy}]} { set waisFlag 0 } else { rename waisdummy {} } } serverList headlineC targetC html "

\n" set useIcons 0 button-main button-feedback if {[info exists nextSetNo]} { button-view-history } button-define-target } { catch maintenance global debug if {!$debug} return html "
\n" html "

Debug information

\n" html "sessionId: $sessionId
\n" html "sessionParms: $sessionParms
\n" foreach n [array names env] { html "env($n) = " $env($n) "
\n" } }