# Makefile for www gateway utility
# Europagate, 1995
#
-# $Id: Makefile,v 1.37 1996/03/12 16:30:26 adam Exp $
+# $Id: Makefile,v 1.38 1996/04/25 10:22:20 adam Exp $
#
SHELL=/bin/sh
CGIDIR=$(HTTPDDIR)/cgi-bin
HTDOCS=$(HTTPDDIR)/htdocs
EGWDIR=$(HTTPDDIR)/egw
-LOGDIR=$(HTTPDDIR)/logs
GIFDIR=$(HTDOCS)/egwgif
#HTTPDDIR=/usr/local/www
#CGIDIR=/usr/local/www/cgi-bin
#HTDOCS=/data2/html/egw/html
#EGWDIR=/data2/html/egw/scripts
-#LOGDIR=/data2/html/egw/logs
#GIFDIR=/data2/html/egw/gif
INCLUDE=-I../include $(ZINC) $(TCLINC) $(IRTCLINC)
install: install.prog install.script install.gif
-install.prog: $(TPROG1) $(TPROG2)
+install.prog:
@if [ ! -d $(CGIDIR) ]; then \
echo "Making directory $(CGIDIR)"; \
mkdir $(CGIDIR); \
<html>
{
-# $Id: mtargets.egw,v 1.20 1996/03/14 11:50:46 adam Exp $
+# $Id: mtargets.egw,v 1.21 1996/04/25 10:22:20 adam Exp $
set setNo 1
source ztargets.conf
if {![info exists debug]} {
}
proc targetC {t} {
global targets
- html {<dt><b>} [ lindex $targets($t) 0]
+ global waisFlag
+ if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} {
+ return
+ }
+ html {<dt><b>} [lindex $targets($t) 0]
html {</b>: }
set databases [splitDatabaseSpec $t]
}
html "<br><br>\n"
}
+ if {![info exists waisFlag]} {
+ set waisFlag 1
+ if {[catch {wais waisdummy}]} {
+ set waisFlag 0
+ } else {
+ rename waisdummy {}
+ }
+ }
serverList headlineC targetC
html "</dl>\n"
<html>
{
-# $Id: targets.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
+# $Id: targets.egw,v 1.25 1996/04/25 10:22:21 adam Exp $
source ztargets.conf
if {![info exists debug]} {
if {[lindex $sessionParms 1] == "1"} {
html "<h2>Select a target</h2><br>\n"
html "<dl>\n"
- if {1} {
proc headlineC {h} {
html {<dt><h2>} $h \n {</h2>}
}
global targets
global env
global sessionId
+ global waisFlag
+ if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} {
+ return
+ }
html {<dt><b><a href="http:} $env(SCRIPT_NAME) /
html "$sessionId/query.egw;/-1+$t" {"> } [lindex $targets($t) 0]
html {</a></b>}
}
html "<br>\n"
}
- serverList headlineC targetC
-
- } else {
- 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 {
- html {<dt><a href="http:} $env(SCRIPT_NAME) /
- 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"
+ if {![info exists waisFlag]} {
+ set waisFlag 1
+ if {[catch {wais waisdummy}]} {
+ set waisFlag 0
+ } else {
+ rename waisdummy {}
}
}
- }
+ serverList headlineC targetC
+
html "</dl><br>\n"
set useIcons 0
button-main
-# $Id: ztargets.conf,v 1.32 1996/03/14 11:50:53 adam Exp $
+# $Id: ztargets.conf,v 1.33 1996/04/25 10:22:21 adam Exp $
#
# This file contains the predefined targets in the WWW-Z39.50 gateway
# Each target is an entry in the associative array "targets". The
union
}
-set targets(dtbsun.dtv.dk:9999/usgs-esdd-iah-cd_rom) {
+set targets(dtbsun.dtv.dk:9999/usgs-esdd-iah) {
Zebra
USMARC
{
{Zebra Z39.50 test server with GILS records. Databases: <br>
usgs: sample of USGS data directory <br>
esdd: additional Earch Science Data Directory records <br>
- iah: data directory for the International Association of Hydrologists <br>
- cd_rom: SIG-CAT compendium of CD-ROMs.
+ iah: data directory for the International Association of Hydrologists
}
1
gils