marcusgreen / moodle-qtype_wordselect

langHighlight words by clicking e.g. select all nouns in this sentence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glossary Auto Linking Filter Interference?

jprovasnik opened this issue · comments

Hello,
I've created a world select instance where the student has to click all 8 instances of the word "you" or "your" This is how I have it set up:

[You] shouldn't argue with people on the Internet. It is a waste of time and energy. Do [you] want to spend [your] precious life energy trying to type sense into someone who will only hate [you] for [your] efforts? No, [you] don't. The next time someone makes some outlandish claim that infuriates [you], [you] should either ignore them, unfriend them, or block them.

What I noticed when students were taking the quiz is that the very last two "you"s were not being recognized as correct answers. I thought maybe the comma in between was an issue, but nothing I did seemed to get the last two you's to be recognized as correct despite having the brackets around it.

incorrect 6

Then, I thought to turn off my Glossary Auto Linking filter and all of a sudden it worked fine.

correct 8

I turned the Glossary Auto linking back On and the issue reappeared. Off again, and then resolved. The course glossary doesn't have any terms with the word "you" in the title, so I'm not sure how to trouble shoot this. Is this some type of buggy behavior?

Im on Moodle 3.7 using version 2.43 | 2020021500

Thanks John, apologies for not getting back to you sooner. The version numbers would probably have been my next question. I usually approach this type of thins by asking if I can have a teacher access to a sandbox course that shows this happening, and then possibly setting up a sandbox course on my own web space. The other thing I ask is if I could have an xml dump of questions that exhibit whatever the problem is. Moodle 3.7 is starting to get a bit old, but I am not aware of any issue like this with it.

I hope to get around to reproducing your question/version in the next day or so.

Sure -
Link: https://school.21cccs.org/sandbox/
un: guest6
pw: abigsecret

Reproduced the issue in this quiz here: https://school.21cccs.org/sandbox/mod/quiz/view.php?id=782607
The issue only occurred once I added the glossary contents: https://school.21cccs.org/sandbox/mod/glossary/view.php?id=782608

I suspect that the hyperlink inserted by the autolink is breaking any correct answer after the hyperlink. Your question was hyperlink the word "claim". When I move the word claim to before the very last you, the one before it that was broken appeared to work. I think this is a bug. I will investigate further.

Ok. I see the styling of the glossary entry link for "Claim" was not blue like it typically is. I added some CSS to force glossary entries to always appear blue:

/Fix Glossary Auto Link Styling in Word Select Questions/
.que .formulation a.glossary.autolink.concept {color: #3ca5cf;}

I dont know if it's just Word Select where they are not appearing as links or if it's other question types, but at least now I will be able to see the glossary links. Had I seen "claim" was a link, i might have thought to remove the auto linking. Thanks for helping troubleshoot!

It's still a problem in 4.1.6.
You cannot see glossary entry when you do the attempt.
In an attempt review you can see extra text like GLOSSARY_ENTRYclass="glossary autolink concept glossaryid24">GLOSSARY_ENTRY where a link to the glossary should be. (GLOSSARY_ENTRY - the key word).
When you do question preview the selection shifts towards the link to the glossary. This behaviour leads to a wrong answer.

My apologies for not progressing on this, am re-reading this thread. I will attempt to reproduce on one of my own Moodle installs.