From: Rick Scott Date: Wed, 29 Jun 2011 18:31:28 +0000 (-0400) Subject: Clean up unneeded alt txt; rework "Add to my list" X-Git-Tag: sprint4-merge-nov22~5128^2~72^2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f98f6d72d0ad2d8bfcb30492df55bff738f9cac1;p=working%2FEvergreen.git 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. --- 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 %] +