Add another layer of tables to the top banner, for IE's benefit.
[irspy-moved-to-github.git] / web / htdocs / chrome / layout.mc
index fa0d660..beef6ac 100644 (file)
@@ -1,14 +1,14 @@
-%# $Id: layout.mc,v 1.22 2007-01-02 17:26:40 mike Exp $
+%# $Id: layout.mc,v 1.29 2007-04-26 14:38:37 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>
@@ -25,6 +25,9 @@ use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
  <body>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr class="banner">
+    <td>
+     <table width="100%">
+      <tr>
     <td align="left">
      <br/>
      <h1><a class="logo" href="/">IRSpy</a></h1>
@@ -33,6 +36,9 @@ use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
      <br/>
      <h1 class="title"><% xml_encode($title) %></h1>
     </td>
+      </table>
+     </tr>
+    </td>
    </tr>
   </table>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
@@ -55,9 +61,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 +72,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,15 +100,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("/delete.html?id=" . uri_escape($id)) %>">Delete target</a>
+      <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>