1 %# $Id: menu.mc,v 1.14 2006-11-16 17:02:30 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">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>
17 my $id = $r->param("id");
19 # Make up ID for newly created records. It would be more
20 # rigorously correct, but insanely inefficient, to submit the
21 # record to Zebra and then search for it; but since we know the
22 # formula for IDs anyway, we just build one by hand.
23 my $id = $r->param("id");
24 my $host = $r->param("host");
25 my $port = $r->param("port");
26 my $dbname = $r->param("dbname");
27 #warn "id='$id', host='$host', port='$port', dbname='$dbname'";
28 #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n";
29 if ((!defined $id || $id eq "") &&
30 defined $host && defined $port && defined $dbname) {
31 $id = "$host:$port/$dbname";
32 # $r->param(id => $id);
34 #warn "id set to '$id'";
43 <a href="<% xml_encode("/full.html?id=" . uri_escape($id)) %>">Show details</a>
45 <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) %>">Edit details</a>
47 <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) . "&copy=1" %>">Copy target</a>
49 <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&test=Quick" %>">Quick Test</a>
51 <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&test=Main" %>">Full Test</a>
54 <a href="<% xml_encode("/raw.html?id=" . uri_escape($id)) %>">XML</a>
56 <%doc><!-- Maybe this would be too heavyweight -->
58 % my $host = "bagel.indexdata.dk";
60 <a href="/find.html?net.host=<% $host %>&net.port=<% $port %>&_search=Search"
61 >All databases on this server</a>
68 <a href="/doc.html">Contents</a>
72 <a href="http://validator.w3.org/check?uri=referer"><img
73 src="/valid-xhtml10.png"
74 alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
76 <a href="http://jigsaw.w3.org/css-validator/"><img
78 alt="Valid CSS!" height="31" width="88" /></a>