3 # $Id: query.egw,v 1.2 1995/10/27 15:12:04 adam Exp $
4 proc init-response {} {
13 set databases [lindex $targets($t) 1]
17 z39 callback init-response
21 <title> WWW/Z39.50 Gateway Query Form</title>
24 <h2> Search in databases </h2>
25 <h1> <blink> Not Functional Yet </blink> </h1>
27 html {<form action="http://} $env(SERVER_NAME) $env(SCRIPT_NAME)
28 htmlr / $sessionId {/search.egw" method=post>}
29 set nodb [llength $databases]
32 htmlr {The chosen target supports searching in several databases. <br>}
33 htmlr {Choose the bases you want to search: <br>}
36 foreach d $databases {
37 html {<input type="checkbox" name="base" value="} $d
41 htmlr {" checked> } $d
46 html {<input type="checkbox" name="base" value="}
47 htmlr [concat $databases] {"> All <br>}
52 <strong>Input your search criteria: </strong> <br>
54 set fields [lindex $targets($t) 2]
55 for {set no 1} {$no < 4} {incr no} {
56 htmlr {<select name="menu} $no {">}
58 htmlr {<option> } [lindex $f 0]
61 htmlr {<input type="text" name="entry} $no {" size=30>}
63 htmlr {<select name="logic} $no {">}
66 htmlr {<option> And not}
74 Alternatively you can enter your query in <a href="ccl.html"> CCL </a> here: <br>
75 <input type=text name="cclentry" size=60> <br>
77 <strong> Various technical parameters: </strong> <br>
78 Max hits: <input type="text" name="hits" value="50" size=3>
80 <select name="format">
82 <option> Medium format
88 <input type="submit" value="Send Query">
91 This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
92 Last modified 29. september 1995. <br>
93 <em> This and the following pages are under construction and will continue to be so
94 until the end of December 1995.</em>
96 sessionId: {html $sessionId} <br>
97 sessionParms: {html $sessionParms} <br>
99 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
100 htmlr $e {: } $env($e) {<br>}
103 form: {html [form]} <br>
104 target: {html $t} <br>
105 databases: {html $databases} <br>