trouble shooting result storage course presentation

Forums: 

Hi everyone,

does anyone have a solution of how we could get the results saved of included query modules like "multiple choice" in a course presentation if the user does not klick on the very last page which is the result page.

For now the results get only saved, if a user clicks through all the slides including the result page which is always the very last slide of a couse presentation and gets automatically generated.

Help highly appreciated :-)

otacke's picture

Hi Ranni!

There's no option to set this in Course Presentation.

Without changing the original code, you could inject some JavaScript via the alter_scripts hook of your platform's H5P integration (https://h5p.org/node/2692). That Javascript could keep track of the completion state of the subcontents and send a "completed" xAPI via the Course Presentation instance that mimics what Course Presentation itself does when you go to the summary slide.

Best,

Oliver 

Hi Oliver,

thanks a lot. I will try that out. I still wonder if it would not be great to change the original code. Do you know with file takes care of the completion state?

otacke's picture

You can patch the code, but then every update of the content type will overwrite your changes, and you will have to do them over and over again.

You can fork the content type, but then you will not benefit from future updates automatically.

You could contribute a pull request with changes to the original repository, but H5P Group should green-light your changes first. I assume that doing it the way it is today was no accident, so chances are probably not thaaaat good.

Either way, there's not a single file to just tweak a little unless you want to tamper with minified code. Most H5P content types have a build chain. You'll find the source of Course Presentation at https://github.com/h5p/h5p-course-presentation

Ok, I am going to try out the skript then :-). Thanks a lot for your explanations and for the link.