more i18n, minor cleanup
authorberick <berick@esilibrary.com>
Wed, 16 Feb 2011 17:13:59 +0000 (12:13 -0500)
committerberick <berick@esilibrary.com>
Wed, 16 Feb 2011 17:13:59 +0000 (12:13 -0500)
Open-ILS/web/templates/default/opac/login.tt2
Open-ILS/web/templates/default/opac/parts/base.tt2
Open-ILS/web/templates/default/opac/parts/searchbar.tt2

index 4888ce2..675a40d 100644 (file)
@@ -11,6 +11,7 @@
             [% INCLUDE "default/opac/parts/login/form.tt2" %]
             <div class="clear-both very-big-height"></div>     
             <script type="text/javascript">
+                /* Note: when common browsers suppor HTML5 "autofocus", we can remove this */
                 var _onload = window.onload;
                 window.onload = function() {
                     try {
index c83cb88..892cb27 100644 (file)
@@ -10,8 +10,7 @@
         <link rel="stylesheet" type="text/css"
             href="[% ctx.media_prefix %]/css/skin/default/opac/style.css" />
         <title>[% l('Catalog - King County Library - [_1]', ctx.page_title) %]</title>
-        [%# <!-- is this needed? --><link rel="unapi-server"
-            type="application/xml" title="unAPI" href="/opac/extras/unapi" />%]
+        <link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
         [% BLOCK html_head; END; # provide a default that can be overridden -%]
         [%- PROCESS html_head -%]
     </head>
index 24e56eb..aeceb34 100644 (file)
@@ -7,7 +7,7 @@
                 <span class="search_catalog_lbl">[% l('Search the Catalog') %]</span>
                 <a href="[% ctx.opac_root %]/advanced"
                     id="home_adv_search_link"><span
-                    class="adv_search_font">Advanced Search</span></a>
+                    class="adv_search_font">[% l('Advanced Search') %]</span></a>
             </td>
         </tr>
         <tr>
@@ -16,8 +16,8 @@
             </td>
             <td>
                 <div id="search_box_wrapper">
-                    <input type="text" id="search_box" name="query"
-                        value="[% query || l("Search Keyword") | html %]"
+                    <!-- Note: when common browsers support HTML5 placeholder text, we can remove the JS -->
+                    <input type="text" id="search_box" name="query" value="[% query || l("Search Keyword") | html %]"
                         onfocus="if (this.value=='[% l("Search Keyword") %]'){this.value='';this.style.color='#000';}"
                         onblur="if (this.value==''){this.value='[% l("Search Keyword") %]';this.style.color='#999';}" />
                     <input name='page' type='hidden' value="0" />
             <td valign="top">
                 <div class="pos-abs">
                     <div class="opac-auto-143">
-                        <input type="submit" id="search_submit" value="GO"
-                            class="hide_me" /><a
-                                href="javascript:document.getElementById('search_submit').click();"
-                                id="search_submit_alt"><img
-                                alt="Search" src="[% ctx.media_prefix %]/images/go-btn.png"
+                        <input type="image" alt="[% l('Search') %]" src="[% ctx.media_prefix %]/images/go-btn.png"
                             onmouseover="this.src='[% ctx.media_prefix %]/images/go-btn-hover.png';"
-                            onmouseout="this.src='[% ctx.media_prefix %]/images/go-btn.png';" /></a>
+                            onmouseout="this.src='[% ctx.media_prefix %]/images/go-btn.png';" />
                     </div>
                 </div>
             </td>
@@ -54,7 +50,7 @@
     </table>
     </form>
     <div id="breadcrumb">
-        <a href="[% ctx.opac_root %]/home">Catalog Home</a> &gt;
+        <a href="[% ctx.opac_root %]/home">[% l('Catalog Home') %]</a> &gt;
     </div>
     <div class="clear-both"></div>
 </div>