3 <title> WWW/Z39.50 Gateway Query Form</title>
7 # $Id: mquery.egw,v 1.2 1995/11/08 16:14:32 adam Exp $
9 if {[info commands saveState] == ""} {
17 html {<form action="http:} $env(SCRIPT_NAME)
18 html / $sessionId {/msearch.egw/} $setNo {" method=post>} \n
20 if {[catch {set setNo $nextSetNo}]} {
24 set hosts [wform target]
25 html "hosts=$hosts <br>\n"
28 set hist($setNo,$i,host) $host
29 set hist($setNo,$i,database) [lindex [lindex $targets($host) 1] 0]
32 set hist($setNo,0,host) [expr $i - 1]
33 set host [lindex $hosts 0]
36 <h3>Input your search criteria: </h3> <br>
38 set fields [lindex $targets($host) 2]
39 for {set no 1} {$no < 4} {incr no} {
40 html {<select name="menu} $no {">} \n
42 html {<option> } [lindex $f 0] \n
45 html {<input type="text" name="entry} $no {" size=30>} \n
47 html {<select name="logic} $no {">} \n
50 html "<option> And not\n"
56 <h3> Various technical parameters: </h3> <br>
57 Max hits: <input type="text" name="hits" value="10" size=3>
59 <select name="format">
61 <option> Medium format
67 <input type="submit" value="Send Query">
70 This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
71 Last modified 29. september 1995. <br>
72 <em> This and the following pages are under construction
73 and will continue to be so until the end of December 1995.</em>
77 html {<a href="http:} $env(SCRIPT_NAME)
78 html / $sessionId {/mtargets.egw"> New target </a>}
82 html "<h3>Debug information</h3>\n"
83 html "sessionId: $sessionId <br>\n"
84 html "sessionParms: $sessionParms <br>\n"
85 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
86 html $e {: } $env($e) {<br>} \n
88 html "form: " [wform] " <br>\n"
89 html "target: " $host " <br>\n"
90 html "setNo: " $setNo " <br>\n"
91 html "nextSetNo: " $nextSetNo " <br>\n"