Moodle

Implement updating of external SCORM packages when they change

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.8
  • Component/s: SCORM
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

1) Add a menu to the definition page with options:

Update this package every time it's used
Update this package every day
Update this package whenever it changes (relies on http headers)

2) When being used, logic should check file stamps and/or http headers to
determine whether the download/unpacking step should be repeated.

Activity

Hide
Roberto Pinna added a comment -
1) Add a menu to the definition page with options:
Update this package every time it's used
Update this package every day
Update this package whenever it changes (relies on http headers)

We must modify mod.html adding the required field

2) When being used, logic should check file stamps and/or http headers to
determine whether the download/unpacking step should be repeated.

A good place to do it is in locallib.php modifing the scorm_view_display function in order to check changes in remote package.
MD5 checksum compare may be a good method to check this.
The first MD5 <scormid>.md5 could be created in moddata/scorm directory from validate.php

Roberto

Show
Roberto Pinna added a comment -
1) Add a menu to the definition page with options:
Update this package every time it's used
Update this package every day
Update this package whenever it changes (relies on http headers)
We must modify mod.html adding the required field
2) When being used, logic should check file stamps and/or http headers to
determine whether the download/unpacking step should be repeated.
A good place to do it is in locallib.php modifing the scorm_view_display function in order to check changes in remote package. MD5 checksum compare may be a good method to check this. The first MD5 <scormid>.md5 could be created in moddata/scorm directory from validate.php Roberto
Hide
Roberto Pinna added a comment -

Martin when you said:

Update this package whenever it changes (relies on http headers)

what do you mean?

Roberto.

Show
Roberto Pinna added a comment - Martin when you said:
Update this package whenever it changes (relies on http headers)
what do you mean? Roberto.

People

Dates

  • Created:
    Updated:
    Resolved: