[Xerte-dev] Re: Answer delimiter in dialog page

Smith, John J.J.Smith at gcu.ac.uk
Thu Feb 14 09:22:18 GMT 2013


Yeah im pretty sure your code already handles case. I also added in a few trims so that extra spaces were ignored... that should be ok right?

Will add in the display of all correct answers i think as it won't 'break' any functionality...

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Fay Cross <Fay.Cross at nottingham.ac.uk> wrote:


It probably makes sense to show all correct answers.  Unless the possible answers could be things like London or LONDON or London - but I imagine it's the code that ignores the case rather than expecting the person who creates the question to enter possible answers like that.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 14 February 2013 09:06
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: Answer delimiter in dialog page

No worries, it was a relatively easy fix...

I didn't realise that either...

One potential issue though is that on x incorrect answers it gives the first possible correct answer, .split(",")[0] like the flash version does... Do you think this is ok or should it show all possible correct answers? 1 or 2 or 3 for example?

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Fay Cross <Fay.Cross at nottingham.ac.uk> wrote:


Thanks for looking at this John - I didn't add it to the html version as I didn't know you could do that in the Flash version!


-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 13 February 2013 21:55
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Answer delimiter in dialog page

Hi Tom,

Give the updated dialog.html file from the SVN a try. It now tries all comma delimited answers like the Flash version. And will be easy to add a line to take a different delimeter from the xml file if present.

Regards,

John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA ________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders [reijnders at tor.nl]
Sent: 13 February 2013 20:59
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Answer delimiter in dialog page

Say you ask how many kg there are in 2500g. Type in the correct answer in the answer field as 2,5 (floating point in Dutch). That answer is not accepted if entered by the student in the flash version (xerte or xot).
2 is, and 5 as well. HTML5 version only accepts 2,5 as the correct answer (which is what I want, but breaks previous behaviour.

By adding an optional delimiter that will only be used by the page if it set, you can solve this issue.

I don't propose to change the comma in to a semi-colon, because that will break previous behaviour as well.


Op 13-2-2013 21:33, Smith, John schreef:
> Is this in Xerte or in toolkits?
>
> I'm trying to reproduce and not really able to in XOT.
>
> Regards,
>
> John Smith | Learning Technologist
> Room A251, Govan Mbeki Building | School of Health & Life Sciences |
> Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA
> ________________________________________
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
> [d_b_burnett at hotmail.com]
> Sent: 13 February 2013 20:28
> To: xerte-dev at lists.nottingham.ac.uk
> Subject: [Xerte-dev] Re: Answer delimiter in dialog page
>
>> by say a semi-colon.
> Is there any way to find out if a semi-colon would end up in a conflict in some other localization?
>
>
>
>
>> Date: Wed, 13 Feb 2013 21:21:00 +0100
>> From: reijnders at tor.nl
>> To: xerte-dev at lists.nottingham.ac.uk
>> Subject: [Xerte-dev] Answer delimiter in dialog page
>>
>> The answer in the flash version of the dialog is a ',' delimited
>> string of possible answers. I didn't know that at first, and
>> wondering why the string 2,5 ( the Dutch notation of the floating
>> point number 2.5, we use a decimal comma) wasn't working. So it turns
>> out that the comma is used to limit correct answers, so Xerte interprets 2,5 as "either 2 or 5".
>>
>> I've got two problems at the moment.
>>
>> 1. HTML 5 behaves differently, it doesn't use the comma as a
>> delimiter (and I think it should, or some LO's will break)
>>
>> 2. Do you mind if I introduce an optional delimiter to be able to
>> replace the comma, by say a semi-colon.
>>
>>
>> Tom
>>
>> --
>> --
>>
>> Tom Reijnders
>> TOR Informatica
>> Chopinlaan 27
>> 5242HM Rosmalen
>> Tel: 073 5226191
>> Fax: 073 5226196
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>> 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.
>
>
>
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
>
> Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6
> 219,en.html
>
> Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,1
> 5691,en.html _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>

--
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
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.

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
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.

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html



More information about the Xerte-dev mailing list