h5p / h5p-multi-choice

10 stars 98 forks source link

Full Answer in xAPI Statments #43

Closed gunha closed 6 years ago

gunha commented 6 years ago

Hi all!

Over at UW-Madison we were having trouble understanding the statements coming out of the multichoice activities in the response field.

Getting strings like: "0[,]2[,]3" doesn't really help professors understand which answers their students selected in their activities, even with the key included in the object.definition.choices field. It also makes it hard to make visualizations in our LRS which are human readable. So, I looked into making changes to the library to include full text in the response field, so we'd get strings like "Answer A\n[,]Answer B\n."

I made some changes to the multichoice.js file (uploaded here as .txt) so that it pushes the .text pushed to the xapi statements. (around lines 932 and 962).

Would this be useful to anyone besides us?

multichoice.txt

gunha commented 6 years ago

Created a related pull request here: https://github.com/h5p/h5p-multi-choice/pull/48