3 # $Id: query.egw,v 1.3 1995/10/27 17:30:15 adam Exp $
4 proc fail-response {} {
10 proc init-response {} {
19 set databases [lindex $targets($t) 1]
22 z39 failback fail-response
24 z39 callback init-response
28 <title> WWW/Z39.50 Gateway Query Form</title>
31 <h2> Search in databases </h2>
32 <h1> <blink> Not Functional Yet </blink> </h1>
34 html {<form action="http://} $env(SERVER_NAME) $env(SCRIPT_NAME)
35 htmlr / $sessionId {/search.egw" method=post>}
36 set nodb [llength $databases]
39 htmlr {The chosen target supports searching in several databases. <br>}
40 htmlr {Choose the bases you want to search: <br>}
43 foreach d $databases {
44 html {<input type="checkbox" name="base" value="} $d
48 htmlr {" checked> } $d
53 html {<input type="checkbox" name="base" value="}
54 htmlr [concat $databases] {"> All <br>}
59 <strong>Input your search criteria: </strong> <br>
61 set fields [lindex $targets($t) 2]
62 for {set no 1} {$no < 4} {incr no} {
63 htmlr {<select name="menu} $no {">}
65 htmlr {<option> } [lindex $f 0]
68 htmlr {<input type="text" name="entry} $no {" size=30>}
70 htmlr {<select name="logic} $no {">}
73 htmlr {<option> And not}
81 Alternatively you can enter your query in <a href="ccl.html"> CCL </a> here: <br>
82 <input type=text name="cclentry" size=60> <br>
84 <strong> Various technical parameters: </strong> <br>
85 Max hits: <input type="text" name="hits" value="50" size=3>
87 <select name="format">
89 <option> Medium format
95 <input type="submit" value="Send Query">
98 This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
99 Last modified 29. september 1995. <br>
100 <em> This and the following pages are under construction and will continue to be so
101 until the end of December 1995.</em>
103 sessionId: {html $sessionId} <br>
104 sessionParms: {html $sessionParms} <br>
106 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
107 htmlr $e {: } $env($e) {<br>}
110 form: {html [form]} <br>
111 target: {html $t} <br>
112 databases: {html $databases} <br>