3 <title> WWW/Z39.50 Gateway Query Form</title>
7 # $Id: query.egw,v 1.4 1995/10/30 17:35:17 adam Exp $
8 proc fail-response {} {
13 proc init-response {} {
19 set databases [lindex $targets($t) 1]
22 z39 failback fail-response
23 if {[catch {z39 connect $t}]} {
24 htmlr "Cannot connect to target $t <br>"
25 htmlr "</body></html>"
28 z39 callback init-response
31 if {$sessionWait == -1} {
32 htmlr "Cannot initialize with target $t <br>"
33 htmlr "</body></html>"
37 <h2> Search in databases </h2>
38 <h1> <blink> Not Functional Yet </blink> </h1>
40 html {<form action="http://} $env(SERVER_NAME) $env(SCRIPT_NAME)
41 htmlr / $sessionId {/search.egw" method=post>}
42 set nodb [llength $databases]
45 html {The chosen target supports searching in }
46 htmlr {several databases. <br>}
47 htmlr {Choose the bases you want to search: <br>}
50 foreach d $databases {
51 html {<input type="checkbox" name="base" value="} $d
55 htmlr {" checked> } $d
60 html {<input type="checkbox" name="base" value="}
61 htmlr [concat $databases] {"> All <br>}
65 htmlr {<strong>Input your search criteria: </strong> <br>}
66 set fields [lindex $targets($t) 2]
67 for {set no 1} {$no < 4} {incr no} {
68 htmlr {<select name="menu} $no {">}
70 htmlr {<option> } [lindex $f 0]
73 htmlr {<input type="text" name="entry} $no {" size=30>}
75 htmlr {<select name="logic} $no {">}
78 htmlr {<option> And not}
84 Alternatively you can enter your query
85 in <a href="ccl.html"> CCL </a> here: <br>
86 <input type=text name="cclentry" size=60> <br>
88 <strong> Various technical parameters: </strong> <br>
89 Max hits: <input type="text" name="hits" value="50" size=3>
91 <select name="format">
93 <option> Medium format
99 <input type="submit" value="Send Query">
102 This page is maintained by
103 <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
104 Last modified 29. september 1995. <br>
105 <em> This and the following pages are under construction
106 and will continue to be so until the end of December 1995.</em>
109 htmlr {sessionId: } $sessionId { <br>}
110 htmlr {sessionParms: } $sessionParms { <br>}
111 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
112 htmlr $e {: } $env($e) {<br>}
114 htmlr {form: } [form] {<br>}
115 htmlr {target: } $t { <br>}
116 htmlr {databases: } $databases { <br>}
117 htmlr {</body></html>}