[% PROCESS "opac/parts/header.tt2";
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
+ basic_search = "f";
ctx.page_title = l("Account Login") %]
<div id="search-wrapper">
[% INCLUDE "opac/parts/searchbar.tt2" %]
<div id="main-content">
[% INCLUDE "opac/parts/login/form.tt2" %]
<div class="clear-both very-big-height"></div>
- <script type="text/javascript">
- /* Note: when common browsers support HTML5 "autofocus", we can remove this */
- var _onload = window.onload;
- window.onload = function() {
- try {
- document.getElementById("username_field").focus();
- if (_onload) _onload();
- } catch (E) {
- void(0);
- }
- };
- </script>
</div>
</div>
[% END %]
<tbody id="adv_expert_rows_here">
<tr id="adv_expert_row">
<th>[% l("Tag:") %]</th>
- <td><input type="text" name="tag" size="3" /></td>
+ <td><input type="text" name="tag" size="3" autofocus /></td>
<th>[% l("Subfield:") %]</th>
<td><input type="text" name="subfield" size="1" /></td>
<th>[% l("Value:") %]</th>
<option value="[% o.value %]" [% c == o.value ? ' selected="selected"' : '' %]>[% o.label %]</option>
[% END %]
</select>
- <input type='text' size='18' name='query' value="[% q | html %]" x-webkit-speech />
+ <input type='text' size='18' name='query' value="[% q | html %]" x-webkit-speech [% IF loop.index == 0 %] autofocus [% END %] />
<a href="javascript:;" class="row-remover"
title="[% l('Remove row') %]" alt="[% l('Remove row') %]"
onclick='return killRowIfAtLeast(2, this);'><img src="[% ctx.media_prefix %]/images/adv_row_close_btn.png" /></a>
</select>
</td>
<td>
- <input type="text" name="query" size="16" />
+ <input type="text" name="query" size="16" autofocus />
</td>
</tr>
<tr>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/opensrf_xhr.js?[% ctx.eg_cache_hash %]"></script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/dojo/opensrf/JSON_v1.js?[% ctx.eg_cache_hash %]"></script>
-[% IF use_autosuggest.enabled == "t"; %]
+[% IF use_autosuggest.enabled == "t" AND basic_search != "f"; %]
<script type="text/javascript">
dojo.require("openils.widget.AutoSuggest");
</td>
<td width="58%" valign="top">
<div class="input_bg">
- <input type="text" id="username_field" name="username"/>
+ <input type="text" id="username_field" name="username" autofocus />
</div>
</td>
</tr>
store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
[%- END # opac_visible -%]
[%- ELSE -%]
- autofocus x-webkit-speech
+ [% IF basic_search != "f" %] autofocus [% END %] x-webkit-speech
[%- END # autosuggest enabled %] />
</span>
[%- INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
[% PROCESS "opac/parts/header.tt2";
WRAPPER "opac/parts/base.tt2";
INCLUDE "opac/parts/topnav.tt2";
- ctx.page_title = l("Record Detail") %]
+ ctx.page_title = l("Record Detail");
+ IF CGI.param("expand"); basic_search = "f"; END;
+-%]
<div id="search-wrapper">
[% INCLUDE "opac/parts/searchbar.tt2" %]
</div>