Save SCORM lesson duration in Moodle's database

Save SCORM lesson duration in Moodle's database

by Meir Gabay -
Number of replies: 3

Hi,

Is there a way to save the "duration" of the SCORM package?

If there isn't, I will just develop something to do this, I just want to make sure I'm not wasting my time.


In CornerStone On Demand (CSOD), there's a support for the "SCORM technical tag" so if I add the following tags to the imsmanifest.xml file, then CSOD identifies it and stores the duration of the uploaded SCORM package.

For example, a one minute lesson:

<lom:technical>

<lom:duration>

<lom:datetime>00:01:00</lom:datetime>

</lom:duration>

</lom:technical>


Eventually I want to be able to pull out a report which states the training title and duration.


References

I couldn't find any reference to "lesson duration" or anything like that

https://docs.moodle.org/dev/SCORM_schema

http://www.examulator.com/er/xml/all_tables.html - CTRL+F (find) SCORM


SCORM Table

Average of ratings: -
In reply to Meir Gabay

Re: Save SCORM lesson duration in Moodle's database

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

That looks related to SCORM 2004 LOM to me - (but I haven't looked really closely.)

Moodle doesn't fully support SCORM 2004. SCORM 1.2 does have the cmi.core.total_time, cmi.core.session_time vars, but those are calculated based on the users session and do not allow you to set a fixed value for an expected duration like you appear to want.

In reply to Dan Marsden

Re: Save SCORM lesson duration in Moodle's database

by Meir Gabay -

Thanks for your reply.

So it's just as I thought :\

I'll just have to add the code for that, thank you Dan

In reply to Meir Gabay

Re: Save SCORM lesson duration in Moodle's database

by deva m -

Hi Meir,

Did you managed to save scorm lesson duration in moodle database,

if yes, can you explain in detail ?