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

get_scorm_scoes should return the SCO additional data (stored in the sco_data table)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with a enrolled student.
      2. Create a sample scorm activity, you must use this package
      3. Enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for the student:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the the student user .
        • You need to replace the wstoken, scormid (instance id) and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'scormid=2&organization=&wsfunction=mod_scorm_get_scorm_scoes&wstoken=ffbe3a3002f235bf9d01fd9369e10b66'

          Note, you can use jsonlint.com to validate and format the json returned string or append "| python -m json.tool" to automatically format the command output

      6. Confirm that
        • You receive as response an array containing all the scoes data including extradata (for example, in one of the latest SCO you will see a prerequisites field)
      Show
      Create a course with a enrolled student. Create a sample scorm activity, you must use this package Enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the the student user . You need to replace the wstoken, scormid (instance id) and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'scormid=2&organization=&wsfunction=mod_scorm_get_scorm_scoes&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' Note, you can use jsonlint.com to validate and format the json returned string or append "| python -m json.tool" to automatically format the command output Confirm that You receive as response an array containing all the scoes data including extradata (for example, in one of the latest SCO you will see a prerequisites field)
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52556-master

      Description

      Some SCORM packages contain SCOs that have advanced features like pre-requisites, this sort of configurations are stored in the sco_data.
      The mod_scorm_get_scorm_scoes should return that data among the basic SCO data.

        Attachments

          Activity

            People

            • Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Dani Palou
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16