Import/export format

Re: Import/export format

by Brian King -
Number of replies: 0
We're working on a QTI 2.0 export right now.  It's in a beta stage, but should be pretty well completed by the end of this month.   The export even handles cloze-type questions.

It's true that there are some design decisions that need to be made in the process - because in mapping Moodle questions<==>QTI, it is not possible to specify all of the options of the one in the other.

Here are some of the design decisions we've made:

Dilemma:
QTI allows for an <itemBody> to contain html text, and further allows for a <prompt> within the <itemBody>. 
Moodle's quiz_questions table has a questiontext column, and nothing corresponding to the qti prompt.
Implementation:
questiontext has been encapsulated within a <p></p> pair inside the <itemBody>.  The <prompt>
section has been left out entirely.
Further, the questiontext has all but a subset of html tags stripped out.


Dilemma:
QTI allows the shuffling of answers to be set on a per-question level.
Moodle allows the shuffling of answers to be set on a per-quiz level.  The normal export of questions is not done at the quiz level, but at the question category level.   There is currently no logical mapping from moodle to qti for answer shuffling.
Implementation:
<shuffle="false"> is used for every question
Note: A quiz-level export is also desired; at this level it will be possible to specify a value for 'shuffle'.


Dilemma:
For the quiz-level export, the qti 2.0 schema doesn't have the vocabulary to express everything that we'd like to capture from Moodle - for example the time limit for taking the quiz.
Implementation:
As a bit of a hack, we're including schema-allowable imsqti:var tags in the metadata section of the imsmanifest.xml file ( e.g. <imsqti:var id="timelimit">0</imsqti:var> )

...

If you're interested, you can see example of the current category-level export files at  http://opensource.mediagonal.ch/moodle/patches/qti-export/samples/question-category-level-export/
and the quiz-level export file (currently implemented with all assesmentItems  inline) at  http://opensource.mediagonal.ch/moodle/patches/qti-export/samples/quiz-level-export/imsmanifest.xml