Bug 14193 - Accessibility: Searching patrons using the alphabetic index doesn't work
authorOwen Leonard <oleonard@myacpl.org>
Tue, 19 Jan 2016 16:36:44 +0000 (11:36 -0500)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Sat, 23 Jan 2016 18:50:47 +0000 (18:50 +0000)
commit6d6b2078c061c63db762d1ceff45d0eb7e391f02
treee0496046d36e609806db3d8f5817a1c3b41afdd6
parenta4c3455b8c2ba236b1da493adf5edaf214abdc7f
Bug 14193 - Accessibility: Searching patrons using the alphabetic index doesn't work

Using a mouse to click on the alphabetic index letters works even though
the anchor markup doesn't contain an href attribute. However you
can't tab to them using the keyboard, and I assume the issue with
screen readers is related.

This patch adds a dummy href attribute and a class-based click handler
so that we can get rid of the "onclick" attribute in the markup.

To test, apply the patch and visit the "Patrons" section.

1. Use the tab key to move the focus to one of the alphabet links.
2. Hit "Enter" and confirm that the search is performed correctly.
3. Click any of the alphabet links and confirm that clicking works as
   well.
4. View the details of any patron and click the "Add child" button.
5. In the "Guarantor information" section click the "Change" button.
6. In the search popup, use the tab key to move the focus to one of the
   alphabet links.
2. Hit "Enter" and confirm that the search is performed correctly.
3. Click any of the alphabet links and confirm that clicking works as
   well.

Signed-off-by: Briana <brianagreally@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt