[Koha-patches] [PATCH] Bug 10432 - Display of enabled status on course list is not accessible

Owen Leonard oleonard at myacpl.org
Mon Jun 10 20:23:31 CEST 2013


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.
---
 .../en/modules/course_reserves/course-reserves.tt  |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
index fbe02f0..820c1a2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
@@ -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 %]
-- 
1.7.9.5


More information about the Koha-patches mailing list