# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.12 1995/11/08 16:14:32 adam
+# Revision 1.13 1995/11/08 18:07:22 adam
+# Minor changes.
+#
+# Revision 1.12 1995/11/08 16:14:32 adam
# Many improvements and bug fixes.
# First version that ran on dtbsun.
#
ZDEFS=
ZINC=-I../../yaz/include
ZLIB=../../yaz/lib/libyaz.a
-#MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
+MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
LIBIRTCL=/usr/local/lib/libirtcl.a $(ZLIB) $(MOSILIB)
#
OLIB=../lib/util.a ../lib/libres+log.a
</head>
<body>
{
-# $Id: mquery.egw,v 1.2 1995/11/08 16:14:32 adam Exp $
+# $Id: mquery.egw,v 1.3 1995/11/08 18:07:22 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
set nextSetNo 1
set setNo 1
}
+ if {1} {
+ set i 1
+ foreach host [array names targets] {
+ set databases [wform target$host]
+ if {$databases == ""} continue
+ html "host=$host, $databases <br>\n"
+ set hist($setNo,$i,host) $host
+ set hist($setNo,$i,database) $databases
+ incr i
+ }
+ } else {
set hosts [wform target]
html "hosts=$hosts <br>\n"
set i 1
set hist($setNo,$i,database) [lindex [lindex $targets($host) 1] 0]
incr i
}
- set hist($setNo,0,host) [expr $i - 1]
set host [lindex $hosts 0]
+ }
+ set hist($setNo,0,host) [expr $i - 1]
}
<hr>
<h3>Input your search criteria: </h3> <br>
</select>
<br>
<p>
-<input type="submit" value="Send Query">
+<input type=submit value="Search"><input type=reset value="Reset">
</form>
<hr>
This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
<html>
{
-# $Id: msearch.egw,v 1.2 1995/11/08 16:14:33 adam Exp $
+# $Id: msearch.egw,v 1.3 1995/11/08 18:07:22 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
global hist
global zstatus
+ html "<head><title> WWW/Z39.50 Gateway Search </title>\n"
+ html "</head><body>\n"
if {[wform menu1] == ""} {
set setNo [lindex $sessionParms 0]
} else {
set hist($setNo,maxPresent) 30
}
}
- html "<head><title> WWW/Z39.50 Gateway Search </title>\n"
- html "</head><body>\n"
-
z39msearch $setNo 1
html "<dl>\n"
}
html "form: " [wform] " <br>\n"
html "target: " $host " <br>\n"
- html "query: --" $hist($setNo,1,query) "-- <br>"
+ html "query: --" $hist($setNo,1,query) "-- <br>\n"
+ html "database: " $hist($setNo,1,database) "<br>\n"
html "setNo: " $setNo " <br>\n"
html "nextSetNo: " $nextSetNo " <br>\n"
}
<html>
{
-# $Id: mtargets.egw,v 1.3 1995/11/08 16:14:33 adam Exp $
+# $Id: mtargets.egw,v 1.4 1995/11/08 18:07:23 adam Exp $
set setNo 1
source /usr/local/etc/httpd/conf/ztargets.conf
if {[info commands saveState] == ""} {
{
html {<form action="http:} $env(SCRIPT_NAME)
html / $sessionId {/mquery.egw/} $setNo {" method=post><br>} \n
+ html "<dl>\n"
foreach t [array names targets] {
- html {<input type="checkbox" name="target" value="} $t
- html {"> } $t \n
- html "<br>\n"
+ html {<dt>} [ lindex $targets($t) 0]
+# html {<input type="checkbox" name="target" value="} $t
+# html {"> }
+ html {<dd>}
+ set databases [lindex $targets($t) 1]
+ foreach d $databases {
+ html {<input type="checkbox" name="target} $t {" }
+ html { value="} $d {">} " $d "
+ html "<br>\n"
+ }
+ html "\n"
}
+ html "</dl>\n"
}
<input type="submit" value="Select">
</form>
</head>
<body>
{
-# $Id: query.egw,v 1.11 1995/11/08 16:14:33 adam Exp $
+# $Id: query.egw,v 1.12 1995/11/08 18:07:23 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
</select>
<br>
<p>
-<input type="submit" value="Send Query">
+<input type=submit value="Search"><input type=reset value="Reset">
</form>
<hr>
This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
#
-# $Id: z39util.tcl,v 1.4 1995/11/08 16:14:36 adam Exp $
+# $Id: z39util.tcl,v 1.5 1995/11/08 18:07:23 adam Exp $
#
proc saveState {} {
uplevel #0 {
eval "set v \$${var}(\$n)"
puts $f "set ${var}($n) \{$v\}"
}
+ catch {
+ eval "set v \$${var}"
+ puts $f "set ${var} \{$v\}"
+ }
}
}
close $f
-# $Id: ztargets.conf,v 1.7 1995/11/08 16:14:36 adam Exp $
+# $Id: ztargets.conf,v 1.8 1995/11/08 18:07:23 adam Exp $
set commonFields {
{ Title {@attr 1=4} }
{ Author {@attr 1=1003} }
BIBSYS \
$commonFields \
{} \
- {BIBSYS - norway} \
+ {BIBSYS - Norway} \
]
set targets(dtbsun.dtv.dk:4500) [list \
{ All {@attr 1=1016} } \
} \
{<<danbib>>} \
- {SR Target DanBib trough the Europagate gateway} \
+ {SR Target DanBib through the Europagate gateway} \
]
set targets(localhost:9999) [list \