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

Return the scormstandard global SCORM setting via the existing mod_scorm_get_scorms_by_courses WS

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.3
    • 4.3
    • SCORM
    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-77055-master
    • Hide
      1. As admin, enable WebServices and "Mobile services":
        Server ► Web services ► Overview
        Server ► Web Services ► Mobile
      2. Create a course with a SCORM package in it
      3. Create a Token for the student user:
        • Click on Site administration ► Server ► Web services ► Manage tokens
      4. Next, you should do some CURL REST calling simulating a WS client with the student user.
        • You need to replace the wstoken, the URL of your Moodle instance and courseid for the of the newly created course

      curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_scorm_get_scorms_by_courses&wstoken=$wstoken&courseids[]=$courseid' --compressed

      1. Confirm that:
        • You receive an empty scorms object in the response
        • You receive the options object in the response
        • Inside the globalsettings object you have name=scormstandard and the value=0
        • You receive a warnings object related to access
      2. Enable global settings scormstandard
      3. Enroll the student in the course.
      4. Next, you should do the same CURL REST calling simulating a WS client with the student user.
      5. Confirm that:
        • You receive a scorms object in the response
        • You receive the options object in the response
        • Inside the options object you have name=scormstandard and the value=1
        • You receive a ampty warnings object
      Show
      As admin, enable WebServices and "Mobile services": Server ► Web services ► Overview Server ► Web Services ► Mobile Create a course with a SCORM package in it Create a Token for the student user: Click on Site administration ► Server ► Web services ► Manage tokens Next, you should do some CURL REST calling simulating a WS client with the student user. You need to replace the wstoken, the URL of your Moodle instance and courseid for the of the newly created course curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_scorm_get_scorms_by_courses&wstoken=$wstoken&courseids[]=$courseid' --compressed Confirm that: You receive an empty scorms object in the response You receive the options object in the response Inside the globalsettings object you have name=scormstandard and the value=0 You receive a warnings object related to access Enable global settings scormstandard Enroll the student in the course. Next, you should do the same CURL REST calling simulating a WS client with the student user. Confirm that: You receive a scorms object in the response You receive the options object in the response Inside the options object you have name=scormstandard and the value=1 You receive a ampty warnings object

    Description

      This new setting is necessary to define the SCORM datamodel properly because depending on whether it is set or not, the cmi.string value might change.

      The change is quite straightforward, is just doing something like:

      $module['scormstandard'] = get_config('scorm', 'scormstandard');

      Attachments

        Issue Links

          Activity

            People

              rodrigo.mady@moodle.com Rodrigo Mady
              jleyva Juan Leyva
              Mathew May Mathew May
              Huong Nguyen Huong Nguyen
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 5 hours, 5 minutes
                  2d 5h 5m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.