Issue Details (XML | Word | Printable)

Key: MDL-7097
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Dan Marsden
Reporter: Roberto Pinna
Votes: 2
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-7068

API debug

Created: 19/Oct/06 01:35 PM   Updated: 01/Dec/08 02:33 PM
Return to search
Component/s: SCORM
Affects Version/s: 1.5.3
Fix Version/s: None

Issue Links:
Dependency
 

Participants: Dan Marsden, Jesús Rincón, Martin Dougiamas, Maximino Pecero Sánchez, Petr Skoda and Roberto Pinna
Security Level: None
Resolved date: 01/Dec/08
Affected Branches: MOODLE_15_STABLE


 Description  « Hide
Every SCORM type has a different API that provides communications from the SCO to Moodle.
The SCORM 1.2 API has passed ADL test suite many times ago but it may need some bug fix. I say this thing because during SCORM 2004 debugging I fixed some bugs that may be fixed also in 1.2.
These files (aicc/scorm_12/scorm_13.js.php) are mostly javascript files with a small use of PHP to provide data content.
SCORM 2004 APIs are defined as a Javascript (ECMAscript as ADL says) DOM object with these 8 methods:
Initialize("")
Terminate("")
GetValue(dataelement)
SetValue(dataelement,value)
Commit("")
GetLastError()
GetErrorString(errorcode)
GetDiagnostic(errorcode)
SCORM 2004 introduces also an attribute call version usually equal to "1.0".

From Moodle 1.5 I decided to provide the datamodel definition as a multidimensional array and all the methods was rewritten to use the datamodel array to check Gen and Set calls.
That datamodel definition uses many regular expressions and one the main problems is to define the right regular expression for each datamodel element type.


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Roberto Pinna added a comment - 30/Oct/06 03:35 PM
Last week I made some fixes on datamodel to pass all the ADL requirements.

There still remains some problems and we need to introduce sequencing to complete all the things.

Please update every day your version.

Bobo.


Martin Dougiamas added a comment - 13/Nov/06 04:30 PM
How's this going, Maximino? We have about 5 weeks left to get SCORM 2004 done.

Maximino Pecero Sánchez added a comment - 12/Dec/06 08:41 PM
We have fixed a problem with the update of cmi.entry adding conditions in the first php block of the file scorm_13.js.php

Maximino Pecero Sánchez added a comment - 19/Dec/06 06:38 PM
We have fixed a problem with the double indexed elements in the GetValue method

Maximino Pecero Sánchez added a comment - 08/Jan/07 09:17 PM
We have already fixed some problems with the double indexed elements, but there are still some left. We have been doing tests in order to find the reason why it is not working. It seems like one of the main problems is the maxmodel variable, so we are trying to adapt it to double indexed elements because, right now, the SetValue function is not working when we want to use it correctly for one of those elements.

Martin Dougiamas added a comment - 26/Mar/07 03:51 PM
Assigning to Sadiel for prioritising and fixing.

Martin Dougiamas added a comment - 26/Mar/07 04:20 PM
Assigning to Jesús Rincón to organise and start working on.

Roberto Pinna added a comment - 30/Mar/07 05:32 PM
We must review some things added from Sadiel like this one.

if (element== 'cmi.interactions.0.learner_response' && value=='Dependency on cmi.interaction.n.type not established'){ errorCode="408"; }

In this way we could pass ADL test suite but it's just a test workaround.


Jesús Rincón added a comment - 30/Mar/07 06:23 PM
We have deleted that code and commit the changes to the CVS.

Jesús Rincón added a comment - 28/May/07 08:55 PM
We have been searching the code to find some errors and we realized there were a problem with the CMIFeedback and with the double indexed elements and we communicated it to Bobo, who has already solved some of those bugs. We continue working on this.

Jesús Rincón added a comment - 29/May/07 08:51 PM
Fixed a bug with cmi.interactions.n.id elements. Now it sets the value correctly instead of showing the error 351, as it used to do for some tests.

Jesús Rincón added a comment - 01/Jun/07 12:29 AM
We fixed a problem with duplicated ids for cmi.interactions.n.objectives.n.id elements.

Jesús Rincón added a comment - 01/Jun/07 08:44 PM
We fixed a problem with duplicated ids for cmi.interactions.n.id elements.

Jesús Rincón added a comment - 05/Jun/07 02:22 PM
We and Bobo continue working on the CMI Feedback type definition. We are solving different bugs related to the dependency we have to establish between this type and the cmi.interactions.n.type.

Jesús Rincón added a comment - 05/Jun/07 10:12 PM
Fixed a problem with the type "sequencing" for CMIFeedback.

Jesús Rincón added a comment - 06/Jun/07 08:45 PM
CMIFeedback is done for learner_response. We are working on the correct_responses type.

Jesús Rincón added a comment - 08/Jun/07 07:37 PM
Working on the definition of the correct_responses type

Jesús Rincón added a comment - 12/Jun/07 11:07 PM
Working on some javascript errors on the definition of correct_responses.

Jesús Rincón added a comment - 14/Jun/07 08:47 PM
Fixed some errors of duplicated elements and with the number of patterns.

Jesús Rincón added a comment - 19/Jun/07 10:57 PM
Fixed a problem with true-false type for correct responses.

Petr Skoda added a comment - 06/Jul/08 01:14 AM
lowering priority

Dan Marsden added a comment - 01/Dec/08 02:33 PM
closing this as a duplicate - will use the parent of this bug for tracking details regarding to SCORM 2004 compliance.