Add support for apache2
[irspy-moved-to-github.git] / web / htdocs / details / find.mc
index 26eb6dc..024437a 100644 (file)
@@ -1,12 +1,13 @@
-%# $Id: find.mc,v 1.3 2006-09-20 10:12:59 mike Exp $
-% if ($r->param("_search")) {
+%# $Id: find.mc,v 1.12 2009-04-15 18:16:46 wosch Exp $
+% if (&utf8param($r,"_search")) {
 %     $m->comp("found.mc");
 % } else {
      <p>
       Choose one or more critera by which to search for registered
       targets, then press the <b>Search</b> button.
+<& /help/link.mc, help => "find" &>
      </p>
-     <form>
+     <form method="get" action="">
       <table class="searchform">
        <tr>
         <th>(Anywhere)</th>
        </tr>
        <tr><td colspan="2">&nbsp;</td></tr>
        <tr>
+        <th>Name</th>
+       <td><input type="text" name="dc.title" size="40"/></td>
+       </tr>
+       <tr>
+        <th>Country</th>
+       <td>
+         <select name="zeerex.country" size="1">
+% my $options = $m->comp("country-list.mc");
+% foreach my $option (@$options) {
+         <option value="<% xml_encode(cql_quote($option)) %>"><%
+               xml_encode($option) %></option>
+% }
+        </select>
+        </td>
+       </tr>
+       <tr><td colspan="2">&nbsp;</td></tr>
+       <tr>
         <th>Protocol</th>
        <td>
          <select name="net.protocol" size="1">
         </td>
        </tr>
        <tr>
+        <th>Host</th>
+       <td><input type="text" name="net.host" size="40"/></td>
+       </tr>
+       <tr>
+        <th>Port</th>
+       <td><input type="text" name="net.port" size="5"/></td>
+       </tr>
+       <tr>
+        <th>Database Name</th>
+       <td><input type="text" name="net.path" size="20"/></td>
+       </tr>
+<%doc>
+       <tr><td colspan="2">&nbsp;</td></tr>
+       <tr>
         <th>Version</th>
        <td><input type="text" name="net.version" size="5"/></td>
        </tr>
         </select>
         </td>
        </tr>
+</%doc>
        <tr><td colspan="2">&nbsp;</td></tr>
        <tr>
-        <th>Host</th>
-       <td><input type="text" name="net.host" size="40"/></td>
-       </tr>
-       <tr>
-        <th>Port</th>
-       <td><input type="text" name="net.port" size="5"/></td>
-       </tr>
-       <tr>
-        <th>Database</th>
-       <td><input type="text" name="net.path" size="20"/></td>
+        <th>Type of Library</th>
+       <td>
+         <select name="zeerex.libType" size="1">
+% $options = $m->comp("libtype-list.mc");
+% foreach my $option (@$options) {
+         <option value="<% xml_encode($option) %>"><%
+               xml_encode($option) %></option>
+% }
+        </select>
+        </td>
        </tr>
-       <tr><td colspan="2">&nbsp;</td></tr>
        <tr>
-        <th>Title</th>
-       <td><input type="text" name="dc.title" size="40"/></td>
+        <th>Description</th>
+       <td><input type="text" name="dc.description" size="40"/></td>
        </tr>
        <tr>
-        <th>Creator</th>
+        <th>Author</th>
        <td><input type="text" name="dc.creator" size="40"/></td>
        </tr>
-       </tr>
        <tr><td colspan="2">&nbsp;</td></tr>
        <tr>
         <th>Sort by</th>
@@ -68,7 +99,7 @@
          <select name="_sort" size="1">
          <option value="">[Do not sort]</option>
          <option value="dc.title">Title</option>
-         <option value="dc.creator">Creator</option>
+         <option value="dc.creator">Author</option>
          <option value="net.host">Host</option>
          <option value="net.port/numeric">Port</option>
          <option value="net.path">Database</option>