[Xerte] Re: SCORM Tracking different that raw.score

Ricardo Rubio axfr98 at yahoo.es
Thu Mar 3 09:16:35 GMT 2011


Thanks a lot Patrick,

I manage (with a non very elegant solution) to work it out, changing the base of 
the calculation of the raw score from 100 to the value I need and it works. As 
said, not very elegant but functional. So, thanks!!!

ricardo




________________________________
De: Patrick Lockley <Patrick.Lockley at nottingham.ac.uk>
Para: Xerte discussion list <xerte at lists.nottingham.ac.uk>
Enviado: mié,2 marzo, 2011 19:31
Asunto: [Xerte] Re: SCORM Tracking different that raw.score


Hello,
 
In your project there will be a folder called “models” – in that folder will be 
a file called quiz.rlm.
 
If you double click the file it will open with Xerte. A list will appear on the 
left - there are two gears / cogs and the word scorm – left click on this
 
On the right hand side will be a properties window, and at the bottom will be 
the words text and script
 
Left click on script.
 
A script will appear.
 
At the top at the lines 
 
score = Math.ceil(quizScoreTracking.sum() / quizScoreTracking.length * 100);
if (pageIcon.templateData.quiz[0].scorm == 'Track Last Score'){
  _level0.setValue('cmi.core.score.raw', String(score));
}
if (pageIcon.templateData.quiz[0].scorm == 'Track First Score'){
  if (isNaN(_level0.getValue('cmi.core.score.raw'))){
    _level0.setValue('cmi.core.score.raw', String(score));
  }
}
 
These lines handle the addition and sending of the value to scorm / moodle.
 
Changing these should allow you to send the values you want.
 
Backup quiz.rlm first though 
 
Hope this helps.
 
Pat
 
From:xerte-bounces at lists.nottingham.ac.uk 
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ricardo Rubio
Sent: 02 March 2011 18:32
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] SCORM Tracking different that raw.score
 
Dear all,

I'm finilizing the design of a course using moodle and Xerte as Authoring tool 
(I'm not a programmer, but could do something)

The issue is that Xerte Pages Template is working as it should (at least as I 
understand it should) and it's passing to moodle the raw score. My problem is 
that when I want to pass this score to the grade book, it only works propperly 
when the maximum score in moodle is set to 100 (so it calculates the correct 
percentage)

So, my question is if it would be possible to pass to moodle any other 
information but the raw score that can make it happen. What I would like is that 
an L.O. with a maximum socre of 4 receives and calculates the Xerte score as a 
percentage and not as a raw score.

Thanks before hand for your help!

Ricardo
 

This message and any attachment are intended solely for the addressee and may  
contain confidential information. If you have received this message in error,  
please send it back to me, and immediately delete it.   Please do not use,  copy 
or disclose the information contained in this message or in any attachment.   
Any views or opinions expressed by the author of this email do not necessarily  
reflect the views of the University of Nottingham. 

This message has been checked for viruses but the contents of an attachment may 
still contain software viruses which could damage your computer system: you are 
advised to perform your own checks. Email communications with the University of 
Nottingham may be monitored as permitted by UK legislation. 



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110303/62793c0d/attachment-0001.html>


More information about the Xerte mailing list