[Xerte] Xerte problem based learning template

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Nov 8 16:41:13 GMT 2010


See attached, which fixes both your bugs: the score calculates as you suggest, and the image should now be correct! Let me know if there's anything else,

HTH,

J

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Gennady Sablin
Sent: 02 November 2010 12:16
To: Xerte discussion list
Subject: Re: [Xerte] Xerte problem based learning template

 02.11.2010 13:00, Julian Tenney пишет:
> Where did you find case-study.xtp?
>
> The image problem I guess is because it is using the wrong index in the url to the image - should be easy to fix, but I can't find the case-study code anywhere...
>
> J
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Gennady Sablin
> Sent: 01 November 2010 21:06
> To: xerte at lists.nottingham.ac.uk
> Subject: [Xerte] Xerte problem based learning template
>
>
>
> Hello,
> My name is Gennady, I'm helping now on-line school for disabled childrenin Moscow to find tools for developing on-line courses. This kids can't
> go to schools and study at home. Teachers have some computer knowledge,
> but not very advanced in technical side.  
> I liked Xerte and found template case-Study.xtp, which is done very
> well. It gives teacher right perspective and helping to create proper
> educational materials.
> But when I tried to make a sample for the teachers, I found some bugs. First one was simple:
> Handle scores starts with this:
> normScore = Math.floor(score / quizDec.pages.length) * 100;
> This way if at list one answer in test wrong score will be 0%, it looks
> like bracket by accident was misplaced.
> normScore = Math.floor(score / quizDec.pages.length * 100);
> This way it makes more sense.
>
> The other one is more complicated for me, I'm not very familiar with
> XMLNode commands.
> I found that when building a test template mixing questions & answers,
> but if in each question included pictures, they appear by the original
> order, not mixed together with questions.
> In buildQuiz:
>
> //build the quiz
> score = 0;
> if (quizBuilt != true){
>   //make the question pages
>   quesCount = templateData.pbl[0].quiz[0].question.length;
>   icon.nextSibling.firstChild.duplicate(quesCount - 1);
>
>   for (i = 0; i < quesCount; i++){
>     //make right number of responses
>     respCount =
> templateData.pbl[0].quiz[0].question[i].options[0].option.length);
>     
> icon.nextSibling.childNodes[i].lastChild.childNodes[1].duplicate(respCount
> - 1);
>     //set correct status
>     for (j = 0; j < respCount; j++){
>       //set the correct status and response type
>       optStatus =
> templateData.pbl[0].quiz[0].question[i].options[0].option[j].correct ==
> 'true' ? '1' : '0';
>       icon.nextSibling.childNodes[i].lastChild.childNodes[j +
> 1].attributes.correct = optStatus;
>       icon.nextSibling.childNodes[i].lastChild.childNodes[j +
> 1].attributes.type =
> templateData.pbl[0].quiz[0].question[i].options[0].type;
>     }
>   }
> }
> quizBuilt = true;
>
> Please, can you help me to solve this problem, it will be a good help
> for a good cause.
>
> With best regards,
> Gennady
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 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.
>
Here's the link
http://www.nottingham.ac.uk/elan/tutorials/content/case-Study.xtp

There is one more thing I found:
After doing "package" three html files appear. index.htm and
scorm2004RLO.htm working fine, but scormRLO.htm in Test tab gives:
-----
Your best score so far is undefined%
The score to beat is 90%
----

Thank you so much for answering.
Gennady
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbl.rlt
Type: application/octet-stream
Size: 21381 bytes
Desc: pbl.rlt
Url : http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101108/b5b57b94/pbl.obj


More information about the Xerte mailing list