Add search box for reliability.
[irspy-moved-to-github.git] / web / htdocs / details / find.mc
1 %# $Id: find.mc,v 1.12 2009-04-15 18:16:46 wosch Exp $
2 % if (&utf8param($r,"_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 <& /help/link.mc, help => "find" &>
9      </p>
10      <form method="get" action="">
11       <table class="searchform">
12        <tr>
13         <th>(Anywhere)</th>
14         <td><input type="text" name="cql.anywhere" size="40"/></td>
15        </tr>
16        <tr><td colspan="2">&nbsp;</td></tr>
17        <tr>
18         <th>Name</th>
19         <td><input type="text" name="dc.title" size="40"/></td>
20        </tr>
21        <tr>
22         <th>Country</th>
23         <td>
24          <select name="zeerex.country" size="1">
25 % my $options = $m->comp("country-list.mc");
26 % foreach my $option (@$options) {
27           <option value="<% xml_encode(cql_quote($option)) %>"><%
28                 xml_encode($option) %></option>
29 % }
30          </select>
31         </td>
32        </tr>
33        <tr><td colspan="2">&nbsp;</td></tr>
34        <tr>
35         <th>Protocol</th>
36         <td>
37          <select name="net.protocol" size="1">
38           <option value="">[No preference]</option>
39           <option value="z39.50">Z39.50</option>
40           <option value="sru">SRU</option>
41           <option value="srw">SRW</option>
42          </select>
43         </td>
44        </tr>
45        <tr>
46         <th>Host</th>
47         <td><input type="text" name="net.host" size="40"/></td>
48        </tr>
49        <tr>
50         <th>Port</th>
51         <td><input type="text" name="net.port" size="5"/></td>
52        </tr>
53        <tr>
54         <th>Database Name</th>
55         <td><input type="text" name="net.path" size="20"/></td>
56        </tr>
57        <tr>
58         <th>Reliability at least</th>
59         <td><input type="text" name="zeerex.reliabilityAtLeast" size="20"/></td>
60        </tr>
61 <%doc>
62        <tr><td colspan="2">&nbsp;</td></tr>
63        <tr>
64         <th>Version</th>
65         <td><input type="text" name="net.version" size="5"/></td>
66        </tr>
67        <tr>
68         <th>Method</th>
69         <td>
70          <select name="net.method" size="1">
71           <option value="">[No preference]</option>
72           <option value="get">GET</option>
73           <option value="post">POST</option>
74          </select>
75         </td>
76        </tr>
77 </%doc>
78        <tr><td colspan="2">&nbsp;</td></tr>
79        <tr>
80         <th>Type of Library</th>
81         <td>
82          <select name="zeerex.libType" size="1">
83 % $options = $m->comp("libtype-list.mc");
84 % foreach my $option (@$options) {
85           <option value="<% xml_encode($option) %>"><%
86                 xml_encode($option) %></option>
87 % }
88          </select>
89         </td>
90        </tr>
91        <tr>
92         <th>Description</th>
93         <td><input type="text" name="dc.description" size="40"/></td>
94        </tr>
95        <tr>
96         <th>Author</th>
97         <td><input type="text" name="dc.creator" size="40"/></td>
98        </tr>
99        <tr><td colspan="2">&nbsp;</td></tr>
100        <tr>
101         <th>Sort by</th>
102         <td>
103          <select name="_sort" size="1">
104           <option value="">[Do not sort]</option>
105           <option value="dc.title">Title</option>
106           <option value="dc.creator">Author</option>
107           <option value="net.host">Host</option>
108           <option value="net.port/numeric">Port</option>
109           <option value="net.path">Database</option>
110          </select>
111          <input type="checkbox" id="desc" name="_desc" value="1"/>
112          <label for="desc">descending?</label>
113         </td>
114        </tr>
115        <tr><td colspan="2">&nbsp;</td></tr>
116        <tr>
117         <th/>
118         <th><input type="submit" name="_search" value="Search"/></th>
119        </tr>
120       </table>
121       <p>
122        <small>
123         Show
124         <input type="text" name="_count" size="4" value="10"/>
125         records, skipping the first
126         <input type="text" name="_skip" size="4" value="0"/>
127        </small>
128       </p>
129      </form>
130 % }