From f98f6d72d0ad2d8bfcb30492df55bff738f9cac1 Mon Sep 17 00:00:00 2001 From: Rick Scott Date: Wed, 29 Jun 2011 14:31:28 -0400 Subject: [PATCH] Clean up unneeded alt txt; rework "Add to my list" 1: Set blank alt text attrib on non-functional images; also remove alt text on images that's duplicated by adjacent link text. This reduces clutter text browser and screen reader users. More: http://universalusability.com/access_by_design/images/irrelevant.html 2: Make "Add to my list" use a styled link instead of an image & button, like the "Place Hold" link next to it. This lets us remove the duplicate alt text, makes the two items operate in the same way, and makes the presentation code more similar between table.tt2 & record/summary.tt2. --- .../templates/default/opac/parts/printnav.tt2 | 4 ++-- .../default/opac/parts/record/summary.tt2 | 18 +++++---------- .../default/opac/parts/result/table.tt2 | 23 ++++++++----------- .../default/opac/parts/searchbar.tt2 | 2 +- 4 files changed, 18 insertions(+), 29 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/parts/printnav.tt2 b/Open-ILS/web/templates/default/opac/parts/printnav.tt2 index 580c0d63ec..d0f0a41fd5 100644 --- a/Open-ILS/web/templates/default/opac/parts/printnav.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/printnav.tt2 @@ -1,7 +1,7 @@
- +
[% l('Back') %][% l('Forward') %]
- +
diff --git a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 index 4dbfadca79..2fdd9fd7e5 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 @@ -29,12 +29,12 @@ [% END %] -
+
@@ -42,16 +42,10 @@ operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); %] -
- -
-
- -
-
- -
+ + + [% label %] +
diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index 6fc3b2e350..3b8dbb7e82 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -180,22 +180,17 @@ href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% rec.id %]&hold_type=T" name="place_hold_link" class="no-dec">[% l('Place hold') %][% l('Place Hold') %] + alt=""/>[% l('Place Hold') %]
- [% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add"; - label = (operation == "add") ? l("Add to") : l("Remove from"); %] -
- -
-
- -
-
- -
+ [% + operation = ctx.mylist.grep(rec.id).size ? "delete" : "add"; + label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + %] + + + [% label %] +