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

AICC Import does not handle Core_Vendor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.8.7, 1.9.3, 2.0
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      mod/scorm/locallib.php does not process the Core_Vendor section of an AICC au file. This has been checked in current version of 1.7 and the problem persists. Can be fixed by following change to the scorm_parse_aicc() function:
      on the line following:

      ----------------------------CUT---------------------------
      $sco->masteryscore = $element->mastery_score;
      ----------------------------CUT---------------------------

      insert:

      ----------------------------CUT---------------------------
      if (!isset($element->core_vendor))

      { $element->core_vendor = ''; }

      else

      { $element->core_vendor = eregi_replace('<cr>', "\r\n", $element->core_vendor); }

      $sco->datafromlms = $element->core_vendor;
      ----------------------------CUT---------------------------

      This functionality is required for level 1 AICC compliance.

        Attachments

        1. patch.txt
          0.6 kB
        2. sample_crs.zip
          1.0 kB

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08