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