Disable Glossary popups? (causes accessibilty issue)

Disable Glossary popups? (causes accessibilty issue)

by Christine Charboneau -
Number of replies: 2

Hello all -

I am creating a course in Moodle 2.6.10 that contains a glossary. I have auto-linking enabled, and glossary terms are appearing as links which, when clicked, open the definition in a pop-up. The pop-up is causing a problem as far as 508 accessibility goes - when testing the course with a screen reader, the screen reader proceeds to read the popup definition, but then does not go back to the next word after the glossary term, it jumps to the page footer instead.

I think a better solution might be to disable the popup and just have the link direct to the glossary page. Then the user could just go back to the page where the term appeared.  But I have been unable to figure out how to do this. 

Can anyone help/advise on either how to disable the glossary popups, or have a better solution?  Thank you!

Average of ratings: Useful (3)
In reply to Christine Charboneau

Re: Disable Glossary popups? (causes accessibilty issue)

by Ellen Spertus -

I'd like this too.

In reply to Ellen Spertus

Re: Disable Glossary popups? (causes accessibilty issue)

by Ellen Spertus -

I found a way to fix this.

Starting on line 113 of /filter/glossary/filter.php, I changed:

$attributes = array(
    'href'  => $link,
    'title' => str_replace('&', '&', $title), // Undo the s() mangling.
    'class' => 'glossary autolink concept glossaryid' . $concept->glossaryid);
to:
$attributes = array(
    'href'  => $link,
    'title' => str_replace('&', '&', $title));
Specifically, I removed the 'class' attribute.
Average of ratings: Useful (1)