024437aca004a3740449a07f1b72cc95eadddcb2
[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 <%doc>
58        <tr><td colspan="2">&nbsp;</td></tr>
59        <tr>
60         <th>Version</th>
61         <td><input type="text" name="net.version" size="5"/></td>
62        </tr>
63        <tr>
64         <th>Method</th>
65         <td>
66          <select name="net.method" size="1">
67           <option value="">[No preference]</option>
68           <option value="get">GET</option>
69           <option value="post">POST</option>
70          </select>
71         </td>
72        </tr>
73 </%doc>
74        <tr><td colspan="2">&nbsp;</td></tr>
75        <tr>
76         <th>Type of Library</th>
77         <td>
78          <select name="zeerex.libType" size="1">
79 % $options = $m->comp("libtype-list.mc");
80 % foreach my $option (@$options) {
81           <option value="<% xml_encode($option) %>"><%
82                 xml_encode($option) %></option>
83 % }
84          </select>
85         </td>
86        </tr>
87        <tr>
88         <th>Description</th>
89         <td><input type="text" name="dc.description" size="40"/></td>
90        </tr>
91        <tr>
92         <th>Author</th>
93         <td><input type="text" name="dc.creator" size="40"/></td>
94        </tr>
95        <tr><td colspan="2">&nbsp;</td></tr>
96        <tr>
97         <th>Sort by</th>
98         <td>
99          <select name="_sort" size="1">
100           <option value="">[Do not sort]</option>
101           <option value="dc.title">Title</option>
102           <option value="dc.creator">Author</option>
103           <option value="net.host">Host</option>
104           <option value="net.port/numeric">Port</option>
105           <option value="net.path">Database</option>
106          </select>
107          <input type="checkbox" id="desc" name="_desc" value="1"/>
108          <label for="desc">descending?</label>
109         </td>
110        </tr>
111        <tr><td colspan="2">&nbsp;</td></tr>
112        <tr>
113         <th/>
114         <th><input type="submit" name="_search" value="Search"/></th>
115        </tr>
116       </table>
117       <p>
118        <small>
119         Show
120         <input type="text" name="_count" size="4" value="10"/>
121         records, skipping the first
122         <input type="text" name="_skip" size="4" value="0"/>
123        </small>
124       </p>
125      </form>
126 % }