From d1413d44fc13122eec0f989c50fb60f26c96a850 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 29 Jun 2020 15:55:17 +0100 Subject: [PATCH] Bug 25244: Add specific aria-label to search results This patch adds an arai-lebel to the select checkboxes on the search results page of the OPAC. Test plan 1/ Perform a search that will yield some results 2/ Inspect the 'checkbox' on the left side of the results table 3/ Note that there is no arai-label 4/ Apply patch 5/ Refresh the search results page 6/ Inspect the 'checkbox' on the left side of the results table 7/ Note that the aria-label now appears and contains relavant information 8/ Signoff --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 72819a0c3e..a20f6d70fc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -239,16 +239,21 @@ [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% # Cell 1: Checkbox %] + [% IF ( SEARCH_RESULT.title ) %] + [% check_title = SEARCH_RESULT.title %] + [% ELSE %] + [% check_title = SEARCH_RESULT.biblionumber %] + [% END %] [% IF Koha.Preference( 'opacbookbag' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'virtualshelves' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% UNLESS ( SEARCH_RESULT.norequests ) %] - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% END %] [% END %] [% END # IF RequestOnOpac %] -- 2.20.1