Refer to targets rather than databases.
[irspy-moved-to-github.git] / web / htdocs / details / find.mc
1 %# $Id: find.mc,v 1.2 2006-09-19 16:34:48 mike Exp $
2 % if ($r->param("_search")) {
3 %     $m->comp("found.mc");
4 % } else {
5      <p>
6       Choose one or more critera by which to search for registered
7       targets, then press the <b>Search</b> button.
8      </p>
9      <form>
10       <table class="searchform">
11        <tr>
12         <th>(Anywhere)</th>
13         <td><input type="text" name="cql.anywhere" size="40"/></td>
14        </tr>
15        <tr><td colspan="2">&nbsp;</td></tr>
16        <tr>
17         <th>Protocol</th>
18         <td>
19          <select name="net.protocol" size="1">
20           <option value="">[No preference]</option>
21           <option value="z39.50">Z39.50</option>
22           <option value="sru">SRU</option>
23           <option value="srw">SRW</option>
24          </select>
25         </td>
26        </tr>
27        <tr>
28         <th>Version</th>
29         <td><input type="text" name="net.version" size="5"/></td>
30        </tr>
31        <tr>
32         <th>Method</th>
33         <td>
34          <select name="net.method" size="1">
35           <option value="">[No preference]</option>
36           <option value="get">GET</option>
37           <option value="post">POST</option>
38          </select>
39         </td>
40        </tr>
41        <tr><td colspan="2">&nbsp;</td></tr>
42        <tr>
43         <th>Host</th>
44         <td><input type="text" name="net.host" size="40"/></td>
45        </tr>
46        <tr>
47         <th>Port</th>
48         <td><input type="text" name="net.port" size="5"/></td>
49        </tr>
50        <tr>
51         <th>Database</th>
52         <td><input type="text" name="net.path" size="20"/></td>
53        </tr>
54        <tr><td colspan="2">&nbsp;</td></tr>
55        <tr>
56         <th>Title</th>
57         <td><input type="text" name="dc.title" size="40"/></td>
58        </tr>
59        <tr>
60         <th>Creator</th>
61         <td><input type="text" name="dc.creator" size="40"/></td>
62        </tr>
63        </tr>
64        <tr><td colspan="2">&nbsp;</td></tr>
65        <tr>
66         <th>Sort by</th>
67         <td>
68          <select name="_sort" size="1">
69           <option value="">[Do not sort]</option>
70           <option value="dc.title">Title</option>
71           <option value="dc.creator">Creator</option>
72           <option value="net.host">Host</option>
73           <option value="net.port">Port</option>
74           <option value="net.path">Database</option>
75          </select>
76          <input type="checkbox" id="desc" name="_desc" value="1"/>
77          <label for="desc">descending?</label>
78         </td>
79        </tr>
80        <tr><td colspan="2">&nbsp;</td></tr>
81        <tr>
82         <th/>
83         <th><input type="submit" name="_search" value="Search"/></th>
84        </tr>
85       </table>
86       <p>
87        <small>
88         Show
89         <input type="text" name="_count" size="4" value="20"/>
90         records, skipping the first
91         <input type="text" name="_skip" size="4" value="0"/>
92        </small>
93       </p>
94      </form>
95 % }