Work on WAIS protocol.
[egate.git] / www / targets.egw
index 46d61e1..b597347 100644 (file)
@@ -1,27 +1,43 @@
 <html>
 {
-# $Id: targets.egw,v 1.18 1996/01/26 15:50:10 adam Exp $
+# $Id: targets.egw,v 1.22 1996/03/12 16:30:29 adam Exp $
     source ztargets.conf
     if {[info commands saveState] == ""} {
         source z39util.tcl
     }
+    set mMode 0
+
     if {![info exists debug]} {
-        if {[lindex $sessionParms 0] == "1"} {
+        if {[lindex $sessionParms 1] == "1"} {
             set debug 1
         } else {
             set debug 0
         }
     }
-    set mMode 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 html3 0
+            egw_log debug "New user Not using Netscape"
+        }
+    }
 }
 <head>
 <title> Europagate, WWW/Z39.50 Gateway </title>
 </head>
 <body>
 {
+    set scriptQuery query.egw
+    set scriptTarget targets.egw
+
     set useIcons 1
 
-    button-europagate
+    button-main
     if {[info exists nextSetNo]} {
         button-view-history 1
     }
@@ -37,9 +53,9 @@
     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"
+        html "$sessionId/query.egw;/-1+$t" {"> } [lindex $targets($t) 0]
+        html " </a>\n"
         set desc [lindex $targets($t) 4]
         if {$desc != ""} {
             html "<dd>$desc\n"
@@ -47,7 +63,7 @@
     }
     html "</dl><br>\n"
     set useIcons 0
-    button-europagate 
+    button-main 
     if {[info exists nextSetNo]} {
         button-view-history 1
     }