1 %# $Id: menu.mc,v 1.17 2006-11-17 15:31:09 mike Exp $
3 <a href="/"><b>Home</b></a><br/>
4 <a href="/all.html">Test all targets</a><br/>
5 <a href="/find.html">Find a target</a><br/>
6 <a href="/edit.html&new=1">Add a target</a><br/>
11 % foreach my $i ('a' .. 'z') {
12 <a href="/find.html?dc.title=^<% $i %>*&_sort=dc.title&_count=9999&_search=Search"><tt><% uc($i) %></tt></a>
16 my $id = $r->param("id");
18 # Make up ID for newly created records. It would be more
19 # rigorously correct, but insanely inefficient, to submit the
20 # record to Zebra and then search for it; but since we know the
21 # formula for IDs anyway, we just build one by hand.
22 my $id = $r->param("id");
23 my $host = $r->param("host");
24 my $port = $r->param("port");
25 my $dbname = $r->param("dbname");
26 #warn "id='$id', host='$host', port='$port', dbname='$dbname'";
27 #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n";
28 if ((!defined $id || $id eq "") &&
29 defined $host && defined $port && defined $dbname) {
30 $id = "$host:$port/$dbname";
31 #warn "id set to '$id'";
38 <a href="<% xml_encode("/full.html?id=" . uri_escape($id)) %>">Show details</a>
40 <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) %>">Edit details</a>
42 <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) . "&copy=1" %>">Copy target</a>
44 <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&test=Quick" %>">Quick Test</a>
46 <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&test=Main" %>">Full Test</a>
49 <a href="<% xml_encode("/raw.html?id=" . uri_escape($id)) %>">XML</a>
51 <%doc><!-- Maybe this would be too heavyweight -->
53 % my $host = "bagel.indexdata.dk";
55 <a href="/find.html?net.host=<% $host %>&net.port=<% $port %>&_search=Search"
56 >All databases on this server</a>
63 <a href="/doc.html">Contents</a>
67 <a href="http://validator.w3.org/check?uri=referer"><img
68 src="/valid-xhtml10.png"
69 alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
71 <a href="http://jigsaw.w3.org/css-validator/"><img
73 alt="Valid CSS!" height="31" width="88" /></a>