Aiken format import fails

Aiken format import fails

by Mike Brinkman -
Number of replies: 12
I did a search through the forums and found that other people were having problems with the Aiken format. I believe my file is formatted correctly (UTF-8), all of the questions and answers are in their places, etc. We are using Moodle 1.9.3. Can somebody please tell me what could be the problem with this file?
Average of ratings: -
In reply to Mike Brinkman

Re: Aiken format import fails

by Neil Spurgeon -

I've had all sorts of problems with this recently - suggest you upload the file into the standard Moodle file area and then import the questions from it there into your question bank - that has sorted 99% of my staff's issues with this - most of which seem to be related to recent versions of Notepad and other 'simple' Windows based editors, obviuously many of us are not Linux folks and still stick with Microsoft

Regards

Neil

In reply to Neil Spurgeon

Re: Aiken format import fails

by Mike Brinkman -
Yeah, I tried that too, but it doesn't seem to make a difference. By the way, while the document was created on a Windows machine, I uploaded it from a Mac after I used TextWrangler to clean it up (zap gremlin ascii chars, etc.), and then saved it as UTF8.
In reply to Mike Brinkman

Re: Aiken format import fails

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The word ANSWER *must* be in capital letters. Simple as that smile
Average of ratings:Useful (1)
In reply to Howard Miller

Re: Aiken format import fails

by Mike Brinkman -
Gratzi! That is WAY TOO EASY to overlook!
In reply to Mike Brinkman

Re: Aiken format import fails

by Chad Parmentier -
Moodle docs are usually spot on, hence answer is in caps: http://docs.moodle.org/en/Aiken_format.

What would be nice is if Moodle could export questions in Aiken format. Many k-12 departments require a hard copy final exam for distribution and records purposes. anyone have any thoughts on Moodle quiz export and human readability?
In reply to Chad Parmentier

Re: Aiken format import fails

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It would be easy enough to do. I was actually working on a new version of Aiken anyway (the file is in a post in this forum somewhere) that tidied things up a bit and added general feedback.

I haven't added it to core as it is not quite backward compatible - it requires a blank line between questions and the current one doesn't.

Adding export would be reasonably trivial. However, it would only properly export multiple choice questions with a single correct answer, nothing else. Is that really much use?

A useful little project might be a bit of XSLT to format the XML export into something readable if it's just for a record.
In reply to Howard Miller

Re: Aiken format import fails

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
By the way Howard, I have done some Aiken changes in core recently, to use regular expressions to make it more robust, since someone filed a bug that looked easy to fix. Just so you know.
In reply to Tim Hunt

Re: Aiken format import fails

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Ha.. I did exactly the same thing!! As it did a load of other stuff too, it never got committed!!
In reply to Howard Miller

Re: Aiken format import fails

by Chad Parmentier -
I think it would be pretty useful because i normally will have multiple choice and Essay questions. The essays do not have a key so having the ability to export the multiple choice portion would be handy for US 9-12 Schools that have to submit a hard copy for curriculum alignment.
In reply to Howard Miller

Re: Aiken format import fails

by Steve Peters -
Howard, Tim, et al.,

It looks like the Aiken import has since evolved in the current release. Would it be possible to incorporate what you've already done to the source and then get it committed?

It looks like there is even a stub for "Feedback" though it's not parsed.

I am trying to do exactly what you've already discussed and solved, so this would be very useful to me.

My alternative is to try and find an Aiken -> GIFT conversion so that the feedback could be imported via another route.

-Steve Peters


In reply to Steve Peters

Re: Aiken format import fails

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I did a whole load of changes that allowed feedback and stuff. However, it wasn't quite backwards compatible so I didn't want to commit it. It's easy enough to change the one file if you can find the original discussion.