XHTML 1.0 Strict
[irspy-moved-to-github.git] / web / htdocs / details / find.mc
1 %# $Id: find.mc,v 1.6 2006-11-16 12:16:46 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 method="get" action="">
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>Author</th>
61         <td><input type="text" name="dc.creator" size="40"/></td>
62        </tr>
63        <tr><td colspan="2">&nbsp;</td></tr>
64        <tr>
65         <th>Sort by</th>
66         <td>
67          <select name="_sort" size="1">
68           <option value="">[Do not sort]</option>
69           <option value="dc.title">Title</option>
70           <option value="dc.creator">Author</option>
71           <option value="net.host">Host</option>
72           <option value="net.port/numeric">Port</option>
73           <option value="net.path">Database</option>
74          </select>
75          <input type="checkbox" id="desc" name="_desc" value="1"/>
76          <label for="desc">descending?</label>
77         </td>
78        </tr>
79        <tr><td colspan="2">&nbsp;</td></tr>
80        <tr>
81         <th/>
82         <th><input type="submit" name="_search" value="Search"/></th>
83        </tr>
84       </table>
85       <p>
86        <small>
87         Show
88         <input type="text" name="_count" size="4" value="10"/>
89         records, skipping the first
90         <input type="text" name="_skip" size="4" value="0"/>
91        </small>
92       </p>
93      </form>
94 % }