A lot of work on scan. Tables used to display scan terms and hits.
[egate.git] / www / targets.egw
index 2a64c20..46d61e1 100644 (file)
@@ -1,38 +1,69 @@
 <html>
 {
-# $Id: targets.egw,v 1.1 1995/10/23 17:04:17 adam Exp $
+# $Id: targets.egw,v 1.18 1996/01/26 15:50:10 adam Exp $
+    source ztargets.conf
+    if {[info commands saveState] == ""} {
+        source z39util.tcl
+    }
+    if {![info exists debug]} {
+        if {[lindex $sessionParms 0] == "1"} {
+            set debug 1
+        } else {
+            set debug 0
+        }
+    }
+    set mMode 0
 }
 <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&iacute;ficas <br>
-<hr>
-<strong> Choose a Z39.50 target: </strong> <br>
-<dl>
 {
-    source /usr/local/etc/httpd/conf/ztargets.conf
-    foreach t [array names targets] {
-        htmlr "<dt> <a href=\"http://localhost/cgi-bin/egwcgi/egwtcl/query.egw/$t\"> $t </a>"
-        htmlr "<dd> " [lindex $targets($t) 0]
+    set useIcons 1
+
+    button-europagate
+    if {[info exists nextSetNo]} {
+        button-view-history 1
+    }
+    button-define-target 0
+    html "<h2>Choose a target</h2><br>\n"
+    html "<dl>\n"
+
+    proc targetsCmp {l r} {
+        global targets
+        return [string compare [string tolower [lindex $targets($l) 0]] \
+                               [string tolower [lindex $targets($r) 0]]]
+    }
+    set tt [array names targets]
+    set tn [lsort -command targetsCmp $tt]
+    foreach t $tn {
+       if {[string index $t 0] == "."} continue
+        html {<dt><a href="http:} $env(SCRIPT_NAME) /
+        html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " </a>\n"
+        set desc [lindex $targets($t) 4]
+        if {$desc != ""} {
+            html "<dd>$desc\n"
+        }
+    }
+    html "</dl><br>\n"
+    set useIcons 0
+    button-europagate 
+    if {[info exists nextSetNo]} {
+        button-view-history 1
+    }
+    button-define-target 0
+}
+{
+    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"
     }
 }
-</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>
 </body>
 </html>