From d0bf198fa50cee16ed88629184e6363465e89c44 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 22 May 2014 12:22:44 -0400 Subject: [PATCH] Bug 12255 - Amazon cover images have useless image alt text in bootstrap "item-thumbnail" is not a useful alt text for an Amazon book cover image. Better would be the link's title text, "View on Amazon.com." This patch makes this correction. (Rather than "View at Amazon.com" which doesn't sound correct to me). To test you must have the OPACAmazonCoverImages system preference enabled. Log in to the OPAC and view your list of checked-out titles. The alt text for cover images should be "View on Amazon.com." Test in both prog and Bootstrap. NOTE: You'll need one to be overdue in order to trigger both cases. Examine the HTML for both tabs in the person details page. Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer This fixed the cover alt texts for Amazon covers in the patron account for checkouts, overdues and holds. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 797e671083..ec3de30c15 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -151,7 +151,7 @@ [% IF ( OPACAmazonCoverImages ) %] [% IF ( ISSUE.normalized_isbn ) %] - item-thumbnail + View on Amazon.com [% ELSE %] No cover image available [% END %] @@ -390,7 +390,7 @@ [% IF ( OPACAmazonCoverImages ) %] [% IF ( OVERDUE.normalized_isbn ) %] - + View on Amazon.com [% ELSE %] No cover image available [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index c3a4fe1e66..9f1478eedb 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -193,7 +193,7 @@ var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended [% IF ( JacketImages ) %] -[% IF ( OPACAmazonCoverImages ) %][% IF ( ISSUE.normalized_isbn ) %]Cover Image[% ELSE %]No cover image available[% END %][% END %] +[% IF ( OPACAmazonCoverImages ) %][% IF ( ISSUE.normalized_isbn ) %]View on Amazon.com[% ELSE %]No cover image available[% END %][% END %] [% IF ( GoogleJackets ) %][% IF ( ISSUE.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] @@ -348,7 +348,7 @@ var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended [% IF ( JacketImages ) %] -[% IF ( OPACAmazonCoverImages ) %][% IF ( OVERDUE.normalized_isbn ) %][% ELSE %]No cover image available[% END %][% END %] +[% IF ( OPACAmazonCoverImages ) %][% IF ( OVERDUE.normalized_isbn ) %]View on Amazon.com[% ELSE %]No cover image available[% END %][% END %] [% IF ( GoogleJackets ) %][% IF ( OVERDUE.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] -- 2.39.5