<html>
{
-# $Id: targets.egw,v 1.2 1995/10/27 15:12:05 adam Exp $
- source /usr/local/etc/httpd/conf/ztargets.conf
+# $Id: targets.egw,v 1.27 1996/08/28 09:36: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"
+ }
+ }
}
<head>
<title> Europagate, WWW/Z39.50 Gateway </title>
</head>
<body>
-<center>
-<img src="/gif/webgate.gif" Alt="Welcome to EUROPAGATE">
-</center>
-Part of Europagate is a World Wide Web to Z39.50 gateway. The gateway provides search and
-retrieve facilities in the databases of various libraries. <p>
-<a href="http://www.dtu.dk/dtv/egate/egate.html"> Europagate </a> is a
-project in the <a href="http://www.echo.lu/programmes/en/LIBRARIES.html">
-EU libraries Programme </a> carried out by: <br>
-<a href="http://www.ucd.ie/"> University College Dublin </a> <br>
-<a href="http://www.dtv.dk/dtv/">Technical University & Library of Denmark </a> <br>
-Library Council <br>
-Consejo Superior de Investigaciones Científicas <br>
-<hr>
-<strong> Choose a Z39.50 target: </strong> <br>
-<dl>
{
- foreach t [array names targets] {
- html {<dt> <a href="http://} $env(SERVER_NAME) $env(SCRIPT_NAME) /
- htmlr ${sessionId} {/query.egw/} $t {"> } $t {</a>}
- htmlr "<dd> " [lindex $targets($t) 0]
+ 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 "<h2>Select a target</h2><br>\n"
+ html "<dl>\n"
+
+ proc headlineC {h} {
+ html {<dt><h2>} $h \n {</h2>}
+ }
+ proc targetC {t} {
+ global targets
+ global env
+ global sessionId
+
+ html {<dt><b><a href="http:} $env(SCRIPT_NAME) /
+ html "$sessionId/query.egw;/-1+$t" {"> } [lindex $targets($t) 0]
+ html {</a></b>}
+
+ html {<dd>}
+ set desc [lindex $targets($t) 4]
+ if {[string length $desc] > 0} {
+ html "$desc<br>\n"
+ }
+ html "<br>\n"
+ }
+ serverList headlineC targetC
+
+ html "</dl><br>\n"
+ set useIcons 0
+ button-main
+ button-feedback
+ if {[info exists nextSetNo]} {
+ button-view-history
}
+ button-define-target
}
-</dl>
-<hr>
-This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
-Last modified 25. september 1995. <br>
-<em> This and the following pages are under construction and will continue to be so
-until the end of December 1995.</em>
-<hr>
-sessionId: {html $sessionId} <br>
-sessionParms: {html $sessionParms} <br>
{
- foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
- htmlr $e {: } $env($e) {<br>}
+ catch maintenance
+ global debug
+ if {!$debug} return
+ html "<hr>\n"
+ html "<h3>Debug information</h3>\n"
+ html "sessionId: $sessionId <br>\n"
+ html "sessionParms: $sessionParms <br>\n"
+ foreach n [array names env] {
+ html "env($n) = " $env($n) " <br>\n"
}
}
</body>