<html>
-<head>
-<title> WWW/Z39.50 Gateway History</title>
-</head>
-<body>
{
-# $Id: history.egw,v 1.7 1996/03/13 14:07:29 adam Exp $
+# $Id: history.egw,v 1.8 1996/03/14 11:50:44 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
+ html {<head><title> WWW/Z39.50 Gateway History</title></head><body>}
+
set useIcons 1
button-main
button-new-target
set useIcons 0
button-main
button-new-target
-}
-{
+
catch maintenance
if {!$debug} return
html "<hr>\n"
<html>
-<head>
-<title> WWW/Z39.50 Gateway Query Form</title>
-</head>
-<body>
{
-# $Id: mquery.egw,v 1.15 1996/03/13 14:07:29 adam Exp $
+# $Id: mquery.egw,v 1.16 1996/03/14 11:50:45 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
global setNo
set setNo 1
}
+ html {<head><title> WWW/Z39.50 Gateway Query Form</title></head><body>}
+
set useIcons 1
button-main
button-new-target
<html>
{
-# $Id: msearch.egw,v 1.20 1996/03/13 14:07:29 adam Exp $
+# $Id: msearch.egw,v 1.21 1996/03/14 11:50:45 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
global sessionWait
global nextSetNo
<html>
{
-# $Id: mtargets.egw,v 1.19 1996/03/13 14:07:30 adam Exp $
+# $Id: mtargets.egw,v 1.20 1996/03/14 11:50:46 adam Exp $
set setNo 1
source ztargets.conf
- if {[info commands saveState] == ""} {
- source z39util.tcl
- }
if {![info exists debug]} {
if {[lindex $sessionParms 1] == "1"} {
set debug 1
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)]} {
<html>
{
-# $Id: nwi.egw,v 1.3 1996/03/13 14:07:30 adam Exp $
+# $Id: nwi.egw,v 1.4 1996/03/14 11:50:46 adam Exp $
source ztargets.conf
set scriptQuery nwi.egw
set scriptTarget {}
set utilExtension nwiutil.tcl
- if {[info commands saveState] == ""} {
- source z39util.tcl
- }
if {![info exists debug]} {
if {[lindex $sessionParms 1] == "1"} {
set debug 1
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)]} {
#
-# $Id: nwiutil.tcl,v 1.1 1996/03/12 16:30:27 adam Exp $
+# $Id: nwiutil.tcl,v 1.2 1996/03/14 11:50:46 adam Exp $
#
proc button-main {} {
proc maintenance {} {
html {<hr>This page is maintained by }
html {<a href="mailto:adam@index.ping.dk"> Adam Dickmeiss </a>.}
- html {Last modified March 12, 1996. <br>}
+ html {Last modified March 14, 1996. <br>}
}
<html>
-<head>
-<title> WWW/Z39.50 Gateway Query Form</title>
-</head>
-<body>
{
-# $Id: query.egw,v 1.38 1996/03/13 14:07:30 adam Exp $
+# $Id: query.egw,v 1.39 1996/03/14 11:50:47 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
proc fail-response {} {
global nextSetNo
global hist
+ html {<head><title> WWW/Z39.50 Gateway Query Form</title></head><body>}
+
set initSet [lindex $sessionParms 0]
set host [lindex $sessionParms 1]
set scanLine [lindex $sessionParms 2]
<html>
{
-# $Id: search.egw,v 1.38 1996/03/13 14:07:31 adam Exp $
+# $Id: search.egw,v 1.39 1996/03/14 11:50:48 adam Exp $
proc start-scan {scanNo targetNo cache dir initSet} {
global sessionId
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
global sessionWait
global nextSetNo
<html>
{
-# $Id: showfull.egw,v 1.23 1996/03/13 14:07:31 adam Exp $
+# $Id: showfull.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
proc buttons {setNo tno no format count host after} {
global sessionId
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
global setNo
<html>
{
-# $Id: targets.egw,v 1.23 1996/03/13 14:07:31 adam Exp $
+# $Id: targets.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
source ztargets.conf
- if {[info commands saveState] == ""} {
- source z39util.tcl
- }
if {![info exists debug]} {
if {[lindex $sessionParms 1] == "1"} {
set debug 1
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)]} {
button-view-history
}
button-define-target
- html "<h2>Choose a target</h2><br>\n"
+ html "<h2>Select a target</h2><br>\n"
html "<dl>\n"
+ if {1} {
+ 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
+
+ } else {
proc targetsCmp {l r} {
global targets
return [string compare [string tolower [lindex $targets($l) 0]] \
html "<dd>$desc\n"
}
}
+ }
html "</dl><br>\n"
set useIcons 0
button-main
<html>
-<head>
-<title> WWW/Z39.50 Gateway Target Definition Response</title>
-</head>
-<body>
{
-# $Id: tdefine.egw,v 1.5 1996/03/13 14:07:31 adam Exp $
+# $Id: tdefine.egw,v 1.6 1996/03/14 11:50:49 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
+
+ html {<head><title> WWW/Z39.50 Gateway Target Definition Response</title>}
+ html {</head><body>}
+
set useIcons 1
button-main
button-define-target
set databases [lindex [egw_form databases] 0]
set authentication [egw_form authentication]
set fields [lindex [egw_form fields] 0]
+ set recordType [lindex [egw_form recordtype] 0]
set ok 1
if {[string length $name] == 0} {
html "<em>must</em> be specified.<br>\n"
set ok 0
}
+ if {[string length $recordType] == 0} {
+ html "You didn't specify any record type. One record type "
+ html "<em>must</em> be specified.<br>\n"
+ set ok 0
+ }
catch {unset item}
catch {unset attrList}
set fname {}
html " search fields must be present<br>\n"
set ok 0
}
+ if {![string compare recordType WAIS]} {
+ set attrList { {Free-text} {} }
+ }
set hostSpec [mergeHostSpec $host $databases]
if {$ok} {
global targets
set targets($hostSpec) [list \
[join $name] \
- USMARC \
+ $recordType \
$attrList \
$authentication \
$description \
- 1 ]
+ 1 \
+ user ]
html "Target successfully defined<br>\n"
}
html "<p>\n"
if {!$debug} return
- html "name=" $name "<br>\n"
+ html "\n<br>name=" $name "<br>\n"
html "description=" $description "<br>\n"
html "host=" $host "<br>\n"
html "databases=" $databases "<br>\n"
<html>
-<head>
-<title> WWW/Z39.50 Gateway Target Definition</title>
-</head>
-<body>
{
-# $Id: tform.egw,v 1.5 1996/03/13 14:07:32 adam Exp $
+# $Id: tform.egw,v 1.6 1996/03/14 11:50:50 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
+ html {<head><title>WWW/Z39.50 Gateway Target Definition</title>}
+ html {</head><body>}
+
set useIcons 1
button-main
button-new-target
html "i.e. passwords. Leave this field empty if no authentication "
html "string is required.</font>"
+ html "\n<dt>Record type:\n"
+ html {<dd><select name="recordtype">}
+ html {<option> USmarc} \n
+ html {<option> WAIS} \n
+ html {<option> SUTRS} \n
+ html {<option> UNImarc} \n
+ html {<option> UKmarc} \n
+ html {<option> Danmarc} \n
+ html {<option> Normarc} \n
+ html {<option> Librismarc} \n
+ html {</select>}
+ html "\n<br><font size=2>Select WAIS for a WAIS server. The "
+ html "other formats apply to Z39.50 servers</font>"
+
html "\n<dt>Databases\n"
html {<dd><textarea rows=3 cols=55 name="databases"></textarea>}
html "\n<br><font size=2>Separate each database by blanks</font>"
#
-# $Id: z39util.tcl,v 1.40 1996/03/13 14:07:32 adam Exp $
+# $Id: z39util.tcl,v 1.41 1996/03/14 11:50:51 adam Exp $
#
proc saveState {} {
uplevel #0 {
rename targetsCmp {}
}
+proc session-lost {} {
+ global useIcons
+
+ html {<head><title>WWW/Z39.50 Gateway: Session Expired</title></head>}
+ html \n {<body>}
+ set useIcons 1
+ button-main
+ html {<h1>Session Expired</h1>}
+ html {Your session has expired. Please reload the gateways' }
+ html {front page.<br><br>} \n
+ set useIcons 0
+ button-main
+ html {</body></html>}
+}
+
if {[info exists utilExtension]} {
source $utilExtension
-}
\ No newline at end of file
+}
+
-# $Id: ztargets.conf,v 1.31 1996/03/13 14:07:33 adam Exp $
+# $Id: ztargets.conf,v 1.32 1996/03/14 11:50:53 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
]
set targets(nwi.ub2.lu.se/sverige) {
- NWI-Sweden
+ Sweden
WAIS \
{ { Free-text {@attr 1=4} } }
{}
set targets(nwi.ub2.lu.se/new_nor_lib) {
- NWI-Norway
+ Norway
WAIS
{ { Free-text {@attr 1=4} } }
{}
set groupsDescription(test) {Test servers}
set groupsOrder(test) 100
+set groupsDescription(user) {User defined servers}
+set groupsOrder(user) 101
+