Skip to content

Commit

Permalink
Added alt text to images
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraesca committed Jul 31, 2024
1 parent f5bb990 commit 3f776c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Koha/Plugin/Com/ByWaterSolutions/CoverFlow/report.tt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
[% IF (coverlinks) %]
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% d.biblionumber %]">
[% IF d.localcover %]
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="/cgi-bin/koha/opac-image.pl?biblionumber=[% d.biblionumber %]" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="/cgi-bin/koha/opac-image.pl?biblionumber=[% d.biblionumber %]" alt="Cover image for [% d.title %]" />
[% ELSIF (use_coce) %]
<div style="block" title="[% d.biblionumber %]" class="[% d.isbn %]" id="coce-thumbnail-preview"></div>
[% ELSE %]
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="https://images-na.ssl-images-amazon.com/images/P/[% d.isbn %].01.LZZZZZZZ.jpg" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="https://images-na.ssl-images-amazon.com/images/P/[% d.isbn %].01.LZZZZZZZ.jpg" alt="Cover image for [% d.title %]" />
[% END %]
</a>
[% IF showtitle %]
Expand All @@ -19,11 +19,11 @@
[% END %]
[% ELSE %]
[% IF d.localcover %]
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="/cgi-bin/koha/opac-image.pl?biblionumber=[% d.biblionumber %]" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="/cgi-bin/koha/opac-image.pl?biblionumber=[% d.biblionumber %]" alt="Cover image for [% d.title %]" />
[% ELSIF (use_coce) %]
<div style="block" title="[% d.biblionumber %]" class="[% d.isbn %]" id="coce-thumbnail-preview"></div>
[% ELSE %]
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="https://images-na.ssl-images-amazon.com/images/P/[% d.isbn %].01.LZZZZZZZ.jpg" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="https://images-na.ssl-images-amazon.com/images/P/[% d.isbn %].01.LZZZZZZZ.jpg" alt="Cover image for [% d.title %]" />
[% END %]
<br/>
<a [% IF title_limit %]style="max-width:[% title_limit %]px;display:inline-block;"[% END %] href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% d.biblionumber %]">[% d.title %]</a>
Expand All @@ -33,14 +33,14 @@
<li>
[% IF (coverlinks) %]
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% d.biblionumber %]">
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="[% no_image %]" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="[% no_image %]" alt="No cover image available for [% d.title %]" />
</a>
[% IF showtitle %]
<br/>
<p [% IF title_limit %]style="max-width:[% title_limit %]px;display:inline-block;"[% END %]>[% d.title %]</p>
[% END %]
[% ELSE %]
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="[% no_image %]" />
<img [% IF size_limit %]style="max-height:[% size_limit %]px;"[% END %] src="[% no_image %]" alt="No cover image available for [% d.title %]" />
<br/>
<a [% IF title_limit %]style="max-width:[% title_limit %]px;display:inline-block;"[% END %] href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% d.biblionumber %]">[% d.title %]</a>
[% END %]
Expand Down

0 comments on commit 3f776c7

Please sign in to comment.