import both uri_escape() _and_ uri_escape_utf8().
[irspy-moved-to-github.git] / web / htdocs / chrome / layout.mc
index 9eeec53..e52264b 100644 (file)
@@ -1,14 +1,14 @@
-%# $Id: layout.mc,v 1.21 2006-12-18 15:36:43 mike Exp $
+%# $Id: layout.mc,v 1.28 2007-04-17 08:41:07 mike Exp $
 <%args>
 $debug => undef
 $title
 $component
 </%args>
 <%once>
-use URI::Escape;
+use URI::Escape qw(uri_escape uri_escape_utf8);
 use ZOOM;
 use ZOOM::IRSpy::Web;
-use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
+use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_target cql_quote
                           irspy_xpath_context modify_xml_document
                          bib1_access_point);
 </%once>
@@ -55,9 +55,9 @@ use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
     <td valign="top" class="panel1">
      <p>
       <a href="/"><b>Home</b></a><br/>
-      <a href="/all.html">Test&nbsp;all&nbsp;targets</a><br/>
+      <a href="/admin/all.html">Test&nbsp;all&nbsp;targets</a><br/>
       <a href="/find.html">Find a target</a><br/>
-      <a href="/edit.html?op=new">Add a target</a><br/>
+      <a href="/admin/edit.html?op=new">Add a target</a><br/>
       <a href="/stats.html">Statistics</a><br/>
      </p>
      <p>
@@ -66,6 +66,7 @@ use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
 % foreach my $i ('a' .. 'z') {
       <a href="/find.html?dc.title=^<% $i %>*&amp;_sort=dc.title&amp;_count=9999&amp;_search=Search"><tt><% uc($i) %></tt></a>
 % }
+      <a href="/find.html?cql.allRecords=1+not+dc.title+=/regexp/firstInField+[a-z].*&amp;_sort=dc.title&amp;_count=9999&amp;_search=Search"">[Others]</a>
      </p>
 <%perl>
 my $id = $r->param("id");
@@ -93,13 +94,15 @@ my $id = $r->param("id");
       <br/>
       <a href="<% xml_encode("/full.html?id=" . uri_escape($id)) %>">Show details</a>
       <br/>
-      <a href="<% xml_encode("/edit.html?op=edit&id=" . uri_escape($id)) %>">Edit details</a>
+      <a href="<% xml_encode("/admin/edit.html?op=edit&id=" . uri_escape($id)) %>">Edit details</a>
       <br/>
-      <a href="<% xml_encode("/edit.html?op=copy&id=" . uri_escape($id)) %>">Copy target</a>
+      <a href="<% xml_encode("/admin/edit.html?op=copy&id=" . uri_escape($id)) %>">Copy target</a>
+      <br/>
+      <a href="<% xml_encode("/admin/delete.html?id=" . uri_escape($id)) %>">Delete target</a>
       <p>
-       <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&amp;test=Quick" %>">Quick Test</a>
+       <a href="<% xml_encode("/admin/check.html?id=" . uri_escape($id)) . "&amp;test=Quick" %>">Quick Test</a>
        <br/>
-       <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&amp;test=Main" %>">Full Test</a>
+       <a href="<% xml_encode("/admin/check.html?id=" . uri_escape($id)) . "&amp;test=Main" %>">Full Test</a>
       </p>
       <p>
        <a href="<% xml_encode("/raw.html?id=" . uri_escape($id)) %>">XML</a>