Report any technical problems you discover and discuss solutions.

Glossary Issues

  • fionam
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
11 jaren 10 maanden geleden #2236 door fionam
Glossary Issues werd gestart door fionam
Hi

I'm currently using XOT 2.1 and have successfully created, exported and imported an LO as a SCORM package into Moodle 2.5, but I'm experiencing a couple of issues with the Glossary function.

The glossary pop-up window displays correctly if I preview the LO offline but does not display if I try to open it in the Moodle SCORM version. The pop-up appears but has no content.

Whilst the glossary links in the text do display, I keep getting double tooltips. One generated by the LO and the second by the browser. Is there any fix for this?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 10 maanden geleden #2237 door JohnSmith
Beantwoord door JohnSmith in topic Glossary Issues
Hi Fiona,

Thank you for asking this as it's been one of the things that has bugged me for longer than I can remember, and i've just never found the time to fix it, until now...

I'm not sure what version you are on so i'll just outline the steps - i'm about to commit into the main code so in a future update it will be included so you have no worry about any of these changes being overwritten...

What you need to do (or ask your technical people to do) is locate the file at:

/modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js

Within that file there is a section dealing with glossary so do a search for this:

.on("mouseenter", ".x_glossary", function(e) {

The code should have something like:
Code:
.on("mouseenter", ".x_glossary", function(e) { var $this = $(this), myText = $this.text(), myDefinition, i, len; for (i=0, len=x_glossary.length; i<len; i++) {

Add in the two extra lines to make it
Code:
.on("mouseenter", ".x_glossary", function(e) { var $this = $(this), myText = $this.text(), myDefinition, i, len; // Rip out the title attribute $this.data('title', $this.attr('title')); $this.attr('title', ''); for (i=0, len=x_glossary.length; i<len; i++) {

This will remove the title attribute on hover, which is what the browser uses and will stop the browser tooltip...

For compatibility with other things though it's probably best practice to replace it when we are done so now dow a search for:

.on("mouseleave", ".x_glossary", function(e) {

and change this code
Code:
.on("mouseleave", ".x_glossary", function(e) { $x_mainHolder.off("click.glossary"); $x_glossaryHover.remove(); })

to this
Code:
.on("mouseleave", ".x_glossary", function(e) { $x_mainHolder.off("click.glossary"); $x_glossaryHover.remove(); // Put back the title attribute $this = $(this); $this.attr('title', $this.data('title')); })

Save the file and refresh your Learning Object (You may have to clear your cache). There should now only be one tooltip... I don't want to actually send you a file as I have no way to know what version you are on but if you locate the file in your distribution and cannot manage to do this then please attach it and i'll patch it and get it back to you...

John

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 10 maanden geleden #2238 door JohnSmith
Beantwoord door JohnSmith in topic Glossary Issues
I meant to say that I don't know what the SCORM issue is but we can certainly investigate it for you. Are you able to attach some screenshots of the actual problem showing itself and of the development console showing any errors?

To open the console you press Command - Option - J (Mac) or Control -Shift -J (Windows/Linux)

John

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 10 maanden geleden #2240 door tom
Beantwoord door tom in topic Glossary Issues
By heart (I am not behand my system) there is a better fix in the xenith.js of the editor branch where I don't create the title attribute at all. But I need to check that.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 10 maanden geleden #2241 door JohnSmith
Beantwoord door JohnSmith in topic Glossary Issues
I thought of doing that but i'm not 100% sure how that sits with screen readers and accessibility...

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 10 maanden geleden #2242 door tom
Beantwoord door tom in topic Glossary Issues
Good point. So let's ask Alistair.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.205 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo