projects
/
egate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fix: egw_source <file> <var> didn't work properly.
[egate.git]
/
www
/
query.egw
diff --git
a/www/query.egw
b/www/query.egw
index
d2280ab
..
b421710
100644
(file)
--- a/
www/query.egw
+++ b/
www/query.egw
@@
-1,13
+1,13
@@
<html>
<html>
-<head>
-<title> WWW/Z39.50 Gateway Query Form</title>
-</head>
-<body>
{
{
-# $Id: query.egw,v 1.35 1996/03/07 12:46:08 adam Exp $
+# $Id: query.egw,v 1.40 1996/05/24 11:16:01 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
if {[info commands saveState] == ""} {
source z39util.tcl
+ if {![info exists debug]} {
+ session-lost
+ egw_abort
+ }
}
proc fail-response {} {
}
proc fail-response {} {
@@
-24,8
+24,10
@@
proc ok-response {} {
global nextSetNo
global hist
global nextSetNo
global hist
- set host [lindex $sessionParms 0]
- set initSet [lindex $sessionParms 1]
+ 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]
set scanTerm [lrange $sessionParms 3 end]
set scanLine [lindex $sessionParms 2]
set scanTerm [lrange $sessionParms 3 end]
@@
-95,20
+97,20
@@
proc ok-response {} {
}
set useIcons 1
}
set useIcons 1
- button-europagate
- button-new-target 1
+ button-main
+ button-feedback
+ button-new-target
if {[lsearch [z390 options] scan] >= 0} {
if {[lsearch [z390 options] scan] >= 0} {
- button-scan-window 1 $setNo
+ button-scan-window $setNo
}
}
- button-view-history 0
+ button-view-history
html "<h2>" [lindex $targets($host) 0] "</h2><br>\n"
html [lindex $targets($host) 4] "<br>\n"
html "<h2>" [lindex $targets($host) 0] "</h2><br>\n"
html [lindex $targets($host) 4] "<br>\n"
- set databases [lindex $targets($host) 1]
-
- if {$initSet == ""} {
+ set databases [splitDatabaseSpec $host]
+ if {$initSet == -1} {
set databaseDefault [lindex $databases 0]
set oSetNo 0
} else {
set databaseDefault [lindex $databases 0]
set oSetNo 0
} else {
@@
-140,7
+142,7
@@
proc ok-response {} {
html [concat $databases] {"> All <br>} \n
}
}
html [concat $databases] {"> All <br>} \n
}
}
- html "Input your search criteria:<br>\n"
+ html "<b>Fill-in this search form:</b><br>\n"
set fields [lindex $targets($host) 2]
for {set no 1} {$no < 4} {incr no} {
html {<select name="menu} $no {">} \n
set fields [lindex $targets($host) 2]
for {set no 1} {$no < 4} {incr no} {
html {<select name="menu} $no {">} \n
@@
-167,7
+169,7
@@
proc ok-response {} {
if {[string length $template] > 0} {
html { value="} $template {"}
}
if {[string length $template] > 0} {
html { value="} $template {"}
}
- html { size=43> }
+ html { size=35> }
if {0 && [lsearch [z390 options] scan] >= 0} {
html {<input type="checkbox" name="scan} $no {" value="1" scan>}
}
if {0 && [lsearch [z390 options] scan] >= 0} {
html {<input type="checkbox" name="scan} $no {" value="1" scan>}
}
@@
-206,12
+208,13
@@
proc ok-response {} {
html "<p>\n"
set useIcons 0
html "<p>\n"
set useIcons 0
- button-europagate
- button-new-target 1
+ button-main
+ button-feedback
+ button-new-target
if {[lsearch [z390 options] scan] >= 0} {
if {[lsearch [z390 options] scan] >= 0} {
- button-scan-window 1 $setNo
+ button-scan-window $setNo
}
}
- button-view-history 0
+ button-view-history
}
{
}
{