Bug 10432 - Display of enabled status on course list is not accessible
authorOwen Leonard <oleonard@myacpl.org>
Mon, 10 Jun 2013 18:21:11 +0000 (14:21 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 12 Jun 2013 18:08:28 +0000 (11:08 -0700)
The list of courses in Course Reserves uses an image with no alt
attribute to display the enabled/disabled status of each course. This is
not accessible or valid HTML.

This patch removes the image altogether in favor of a simple "Yes" or
"No." To test, view the list of existing course reserves. Enabled and
disabled courses should show "yes" or "no" in the "Enabled" column.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt

index fbe02f0..820c1a2 100644 (file)
@@ -95,9 +95,9 @@ $(document).ready(function() {
                                     <td>[% c.students_count %]</td>
                                     <td>
                                         [% IF c.enabled == 'yes' %]
-                                            <img src="[% interface %]/[% theme %]/img/approve.gif" />
+                                            Yes
                                         [% ELSE %]
-                                            <img src="[% interface %]/[% theme %]/img/deny.gif" />
+                                            No
                                         [% END %]
                                     </td>
                             [% END %]