Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15885

Several issues with QTI v2 export



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9, 1.9.1, 1.9.2
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Affected Branches:


      I've been having a look at the QTI2 export facility, and have found quite a few problems - it took quite a lot of editing to get any items to play in either the R2Q2 or APIS QTI2 item players, and even then they were incomplete. I've mostly been looking at choice items.

      Issues that all exported item types have

      • Schema declaration is incorrect
      • The extra schema declaration in response processing shouldn't be there.
      • Images that are included in XHTML are missing from the exported content package.

      Issues specific to multiple choice items

      • General feedback is not included.
      • Overall feedback is not included.
      • The 'FEEDBACK' variable is not declared.
      • The option specific feedback is displayed at the end of the item rather than beside the option.
      • Scoring is broken, a simple MCQ item with correct score of 2 and incorrect of 0 became 1 and -1 respectively.
      • Identifiers are integers, which is not allowed.

      Content package issues

      • Content package structure is wrong, the manifest is in a sub-directory.
      • Resource file names and paths are incorrect in the manifest.

      I've created a new template for choice items that creates items that can be rendered and processed using R2Q2 (from http://www.qtitools.org/), which I've attached. This template also needs a few lines changed in moodle/question/format/qti2/format.php - I've attached an updated version.

      My template currently ignores grade settings so all items are exported with a default question grade of 1. I've also only tested it with a couple of test items - it needs further testing with a greater variety of items.


        1. choiceMultiple.tpl
          4 kB
        2. format.php
          35 kB
        3. match.tpl
          3 kB
        4. qti.patch
          3 kB
        5. truefalse.tpl
          2 kB

          Issue Links



              howardsmiller Howard Miller
              niallbarr Niall Barr
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              1 Vote for this issue
              4 Start watching this issue