From: Yamil Suarez Date: Mon, 22 Jun 2015 18:33:28 +0000 (-0400) Subject: LP#1467634: Hide saved searches from screen readers for non-staff client X-Git-Tag: sprint4-merge-nov22~891 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e42fd2edb6f8de0ac57ec997577498732a9a1eb5;p=working%2FEvergreen.git LP#1467634: Hide saved searches from screen readers for non-staff client This commit will only allow screen readers to see the saved searches for users that are logged through XUL client. Assuming that a screen reader can be attached to the XUL client. It should also work for a user logged in through the web staff client that is using a screen reader. To test ------- [1] Apply the patch, then perform a search in the public catalog and view the HTML source. Verify that there's no "sr-only" heading for "Saved searches". [2] Set the opac.staff_saved_search.size library setting to a non-zero value. [3] In the web staff client, perform a search using the embeded OPAC; verify that the recent searches list is displayed. [4] Repeat step 4 in the XUL client. Signed-off-by: Yamil Suarez Signed-off-by: Josh Stompro Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 06cf8b4fb6..251d069726 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -21,8 +21,10 @@ [% END %]
+ [%- IF ctx.is_staff %]

[% l('Saved Searches') %]

[% INCLUDE "opac/parts/staff_saved_searches.tt2" %] + [%- END %]

[% l('Search Results facets') %]

[% INCLUDE 'opac/parts/result/facets.tt2' %]

[% l('Search Results List') %]