<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Thanks a lot Patrick,<br><br>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!!!<br><br>ricardo<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Patrick Lockley <Patrick.Lockley@nottingham.ac.uk><br><b><span style="font-weight: bold;">Para:</span></b> Xerte discussion list <xerte@lists.nottingham.ac.uk><br><b><span style="font-weight: bold;">Enviado:</span></b> mié,2 marzo, 2011 19:31<br><b><span style="font-weight:
 bold;">Asunto:</span></b> [Xerte] Re: SCORM Tracking different that raw.score<br></font><br><style><!--
 
 _filtered {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered {
panose-1:2 1 6 0 3 1 1 1 1 1;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"serif";}
a:link, span.MsoHyperlink
        {
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
color:purple;
text-decoration:underline;}
span.EmailStyle17
        {
font-family:"sans-serif";
color:#1F497D;}
.MsoChpDefault
        {
font-size:10.0pt;}
 _filtered {
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Hello,</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">In your project there will be a folder called “models” – in that folder will be a file called quiz.rlm.</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">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</span></p><p
 class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">On the right hand side will be a properties window, and at the bottom will be the words text and script</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Left click on script.</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">A script will appear.</span></p><p class="MsoNormal"><span style="font-size: 11pt;
 font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">At the top at the lines </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">score = Math.ceil(quizScoreTracking.sum() / quizScoreTracking.length * 100);</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">if (pageIcon.templateData.quiz[0].scorm == 'Track Last Score'){</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  _level0.setValue('cmi.core.score.raw', String(score));</span></p><p class="MsoNormal"><span
 style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">}</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">if (pageIcon.templateData.quiz[0].scorm == 'Track First Score'){</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  if (isNaN(_level0.getValue('cmi.core.score.raw'))){</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">    _level0.setValue('cmi.core.score.raw', String(score));</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  }</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">}</span></p><p class="MsoNormal"><span
 style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">These lines handle the addition and sending of the value to scorm / moodle.</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Changing these should allow you to send the values you want.</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Backup quiz.rlm first though </span></p><p class="MsoNormal"><span style="font-size: 11pt;
 font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Hope this helps.</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">Pat</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "sans-serif"; color: rgb(31, 73, 125);">  </span></p><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;"><p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: "sans-serif";" lang="EN-US">From:</span></b><span style="font-size:
 10pt; font-family: "sans-serif";" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Ricardo Rubio<br><b>Sent:</b> 02 March 2011 18:32<br><b>To:</b> xerte@lists.nottingham.ac.uk<br><b>Subject:</b> [Xerte] SCORM Tracking different that raw.score</span></p></div></div><p class="MsoNormal" style="margin-left: 36pt;">  </p><div><div><p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: "sans-serif"; color: black;">Dear all,<br><br>I'm finilizing the design of a course using moodle and Xerte as Authoring tool (I'm not a programmer, but could do something)<br><br>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)<br><br>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.<br><br>Thanks before hand for your help!<br><br>Ricardo</span></p></div></div><p class="MsoNormal" style="margin-left: 36pt;">  </p></div> 
<br>
<p>
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.
</p>
<p>
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.
</p>

</div></div>
</div><br>



      </body></html>