[open-ils-commits] [GIT] Evergreen ILS branch master updated. fa490cf5308f26316d29d0fbc8178ca136236743

Evergreen Git git at git.evergreen-ils.org
Mon Feb 18 13:59:23 EST 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  fa490cf5308f26316d29d0fbc8178ca136236743 (commit)
      from  23a2f501b5ef8ce6aa91d39dba9a34aaf09809cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fa490cf5308f26316d29d0fbc8178ca136236743
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Sat Oct 6 05:52:09 2018 -0700

    LP1796225: Only auto-focus search on the home page
    
    For a11y and usability, it's better to autofocus form fields
    only when they are the main purpose of a page.
    
    To test:
    1) In the public catalog, visit the search results, record view,
    library details, basket, and password reset pages.  Notice that
    the cursor leaps to the search bar in each of these pages.
    2) Apply this commit.
    3) Re-visit all those pages.  Notice that the cursor no longer
    leaps to the search bar.
    4) Visit the home page of the public catalog.  Notice that the
    cursor still leaps to the search bar on this page only.
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/templates/opac/parts/searchbar.tt2 b/Open-ILS/src/templates/opac/parts/searchbar.tt2
index 1b6b7cfe0a..d86bd7dc2e 100644
--- a/Open-ILS/src/templates/opac/parts/searchbar.tt2
+++ b/Open-ILS/src/templates/opac/parts/searchbar.tt2
@@ -62,7 +62,7 @@ END;
                 store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
                 [%-     END # opac_visible -%]
                 [%- ELSE -%]
-                    [% IF basic_search != "f" %] autofocus [% END %] x-webkit-speech
+                    [% IF basic_search != "f" AND is_home_page %] autofocus [% END %] x-webkit-speech
                 [%- END # autosuggest enabled %] />
             </label>
         </span>

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/searchbar.tt2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list