From d8ab50b26f8591f5bcccefc0e7ad2d3ec07c39a9 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Tue, 30 May 2023 14:48:56 +0000 Subject: [PATCH] LP1965985 Empty alt text for OPAC decorative images Removes alt text from images that are decorative, including book covers and format icons, from the OPAC and BOOPAC search results pages. Since all of these images appear next to text equivalents that repeat the same information, these alt attributes were redundant. Signed-off-by: Stephanie Leary --- Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 | 5 ++--- Open-ILS/src/templates/opac/parts/result/table.tt2 | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 index e361dc472b..8acc80f75d 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 @@ -99,7 +99,7 @@
- [% attrs.title | html;%]
@@ -120,8 +120,7 @@ [%- IF attrs.format_label; %] [% FOR format IN attrs.all_formats %] - [% format.label | html %] + [% format.label | html %] [% END %] [%- END %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 00577f5562..f2597c1e21 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -115,7 +115,7 @@ - [% l('Book cover') %]
@@ -185,8 +185,7 @@ END; [%- IF attrs.format_label; %] [% FOR format IN attrs.all_formats %] [% format.label | html %] + alt="" src="[% format.icon %]" /> [% format.label | html %] [% END %] [%- END %] @@ -422,7 +421,7 @@ END; [% END %] [% IF rec.user_circulated %]
- [% l('Checked Out Before') %] + [% l('I have checked this item out before') %]
[% END %] @@ -529,7 +528,7 @@ END; href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- ENV.OILS_CONTENT_CAFE_USER %]&Password=[%- ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="noopener nofollow" vocab=""> - [% l('Ratings Icon') %] + [% l('Reviews & More') %] -- 2.11.0