</head>
<body>
{
-# $Id: mquery.egw,v 1.5 1995/11/13 15:41:41 adam Exp $
+# $Id: mquery.egw,v 1.12 1996/01/29 17:31:45 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
set setNo 1
}
+ set useIcons 1
+ button-europagate
+ button-new-target 0
+
html {<form action="http:} $env(SCRIPT_NAME)
- html / $sessionId {/msearch.egw/} $setNo {" method=post>} \n
+ html / $sessionId {/msearch.egw/} $setNo {" method=get>} \n
set phost {}
set i 0
- foreach t [lsort [wform target]] {
+ foreach t [lsort [egw_form target]] {
set host [lindex $t 0]
set base [lindex $t 1]
if {$host != $phost} {
}
lappend hist($setNo,$i,database) $base
}
+ set oSetNo [lindex $sessionParms 0]
+ if {$i == 0 && [info exists hist($oSetNo,0,host)]} {
+ for {set i 1} {$i <= $hist($oSetNo,0,host)} {incr i} {
+ set hist($setNo,$i,host) $hist($oSetNo,$i,host)
+ set hist($setNo,$i,idAuthentication) \
+ $hist($oSetNo,$i,idAuthentication)
+ set hist($setNo,$i,database) $hist($oSetNo,$i,database)
+ }
+ incr i -1
+ }
if {$i == 0} {
html "<h2>No targets specified</h2></body></html>"
- wabort 1
+ egw_abort 1
}
set hist($setNo,0,host) $i
-}
-<hr>
-<h3>Input your search criteria: </h3> <br>
-{
+
+ html "Input your search criteria:<br>\n"
set fields [lindex $targets($host) 2]
for {set no 1} {$no < 4} {incr no} {
html {<select name="menu} $no {">} \n
html {<option> } [lindex $f 0] \n
}
html "</select>\n"
- html {<input type="text" name="entry} $no {" size=30>} \n
+ html {<input type="text" name="entry} $no {" size=35>} \n
if {$no < 3} {
html {<select name="logic} $no {">} \n
html "<option> And\n"
}
html "<br>\n"
}
-}
-<h3> Various technical parameters: </h3> <br>
-Max hits: <input type="text" name="hits" value="10" size=3>
-Records are shown in:
-<select name="format">
-<option> Long format
-<option> Medium format
-<option> Short format
-<option> Raw MARC
-</select>
-<br>
-<p>
-<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>.
-Last modified 29. september 1995. <br>
-<em> This and the following pages are under construction
-and will continue to be so until the end of December 1995.</em>
-<hr>
-
-{
- html {<a href="http:} $env(SCRIPT_NAME)
- html / $sessionId {/mtargets.egw"> New target </a>}
+ html {<input type=submit value="Search"><input type=reset value="Reset">}
+ html "<br>\n"
+ html {Number of records to display in the result set list: }
+ html {<input type="text" name="hits" value="}
+ html 10
+ html {" size=3></form>}
+
+ set useIcons 0
+ button-europagate
+ button-new-target 0
}
{
+ catch maintenance
+ if {!$debug} return
html "<hr>\n"
html "<h3>Debug information</h3>\n"
html "sessionId: $sessionId <br>\n"
html "host=" $hist($setNo,$i,host) " " $hist($setNo,$i,database)
html "<br>\n"
}
- html "form: " [wform] " <br>\n"
+ html "form: " [egw_form] " <br>\n"
html "target: " $host " <br>\n"
html "setNo: " $setNo " <br>\n"
html "nextSetNo: " $nextSetNo " <br>\n"