parent
29d122be50
commit
5b0736f0e8
|
@ -1156,7 +1156,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
|
||||||
return metaContentType.getQuestions().map(function(question) {
|
return metaContentType.getQuestions().map(function(question) {
|
||||||
return question.getXAPIData();
|
return question.getXAPIData();
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get xAPI data.
|
* Get xAPI data.
|
||||||
|
@ -1167,10 +1167,15 @@ H5P.QuestionSet = function (options, contentId, contentData) {
|
||||||
this.getXAPIData = function(){
|
this.getXAPIData = function(){
|
||||||
var xAPIEvent = this.createXAPIEventTemplate('answered');
|
var xAPIEvent = this.createXAPIEventTemplate('answered');
|
||||||
addQuestionToXAPI(xAPIEvent);
|
addQuestionToXAPI(xAPIEvent);
|
||||||
var childrenData = getXAPIDataFromChildren(this);
|
xAPIEvent.setScoredResult(this.getScore(),
|
||||||
|
this.getMaxScore(),
|
||||||
|
this,
|
||||||
|
true,
|
||||||
|
this.getScore() === this.getMaxScore()
|
||||||
|
);
|
||||||
return {
|
return {
|
||||||
statement: xAPIEvent.data.statement,
|
statement: xAPIEvent.data.statement,
|
||||||
children: childrenData
|
children: getXAPIDataFromChildren(this)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue