From 3d7b256762b53c4ab3dc2296e02c23f18d7f4e19 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Fri, 18 Jul 2025 14:35:52 -0400 Subject: [PATCH] Bug 39502: (QA follow-up) Remove title attribute as well When an element should be ignored by screen readers, it should have no title attribute or an empty title attribute, in addition to a null alt attribute. Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass (cherry picked from commit 672982a683ea57956c1012ad02b8f14b91553929) Signed-off-by: Paul Derscheid (cherry picked from commit f6ad2409dfddd1e927e9f2af755cca7a721f50e8) Signed-off-by: Baptiste Wojtkowski --- .../tables/items/catalogue_detail.inc | 2 +- .../prog/en/modules/catalogue/results.tt | 2 +- .../prog/en/modules/virtualshelves/shelves.tt | 2 +- .../en/xslt/MARC21slim2intranetResults.xsl | 20 +++++++++---------- .../bootstrap/en/modules/opac-shelves.tt | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index ec7061c28d..17f7d81aa7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -399,7 +399,7 @@ [% UNLESS noItemTypeImages %] let image_location = item_type_image_locations[row.item_type_id]; node += image_location - ? ' '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) + ? ' '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) : ''; [% END %] node += '%s'.format(escape_str(item_type_description)); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 8d123c1751..f4f2f8d138 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -634,7 +634,7 @@ [% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %] [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
  • - [% items_loo.description | html %] + [% ELSE %]
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 8b6c86e875..d02f32a8c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -321,7 +321,7 @@ [% UNLESS ( item_level_itypes ) %] [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %] - + [% END %] [% itemsloo.description | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 0e7b2cccb9..b03a8c1f9d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -512,20 +512,20 @@ book Text serial Continuing resource - Article + Article - book Text - Kit - Mixed materials - Computer file - Map + Text + Kit + Mixed materials + Computer file + Map Film Picture - Object - Score - Sound - Music + Object + Score + Sound + Music diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 3f840c5315..0dae4f6a4d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -379,7 +379,7 @@ [% UNLESS ( item_level_itypes ) %] [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] - + [% END %] [% itemsloo.description | html %]