I'm curious what the exact use case is here. Preview is useful in an editing context where the syntax is unobvious or increases the chance of errors. Each character could potentially change how the node renders, so being able to Preview before hitting Save is useful.
In the importing form, there aren't many errors to make. You name a new quiz or item collection. Sometimes you pick an existing quiz to import into, but I think this is the rarest. Then you pick the type of the import. Though unlikely, potentially one could be confused by this option and make an error. Then you pick your file, which is unlikely to make an error.
If we're trying to save people from making errors in the item selection, I think we could do this better by sniffing the item type and converting automatically. Basically, remove this option.
In considering whether to implement this, there are the benefits and the costs. I think the benefits are negligible. The costs are development time and complexity in the UI. Anyone can comment out the Preview button in the code so the UI complexity isn't such an issue. And it's Sivaji's time so that's really up to him. Of course, there are lots of important features in the queue that I would hope get resolved first.
Partial imports: a user only wants a portion of the questions. Preview allows them to select only what they want.
Unknown imports: someone is presented with a set of questions to evaluate for potential use; preview would allow a person to evaluate the questions before they actually imported them.
While either of these use cases could be met with delete after import, a preview option would save people time.
Bill, those are great ideas I hadn't thought of. I really like the Partial Import idea.
Sivaji, could that be implemented in the Preview? Preview could be two stages. In the first you see what would get imported. Each item is checked for inclusion by default. You may uncheck items or leave them alone before clicking "Continue" or whatever. If you close the window or click Cancel, nothing happens.
Of course, that's more work. :) But I retract my argument against Preview.
Importer module lets the quiz authors to create a bulk of question from a text file. The import text file suppose to have questions in some predefined format. Say csv import file should look like this
multichoice, which one of the following is correct when A =10 and B=5 ?, A > B, A is greater than B, B > A, B is greater than A, A = B, A is equal to B, A > B
# True or False # Type, question, true/false, feedback
true_false, Drupal 7 is the latest version of Drupal ?, false, Drupal 7 is still under development
# Matching # Type, question, match 1, answer 1, feedback 1, match 2, answer 2, feedback 2, ....
matching, match the softwares and it category, firefox, browser, firefox is a web browser by mozilla, ubuntu, Linux distro, Ubuntu a Linux distro by Conanical, Eclipse, IDE, Eclipse is an IDE by IBM, Drupal, CMS, A kick ass content management system
short_answer, what does PHP stands for ?, PHP Hypertext Preprocessor, 1, case insensitive match
There are chances of committing mistakes which creating an import file. It often happens that a last field (answer) of current questions turns into (question) first field of next question (field shifting), may be because of the some un-handled condition in the code or an invalid format in import file. Also there are chances of propagation of the error to consecutive nodes also. I assume importer preview will avoid a lot of hassle.
Posted by srikanthlogic on January 18, 2010 at 12:48pm
Is there a way through which i can also import the scores along with each option in a multichoice question import through csv ? I think tried from some example but only the questions were imported without the scores. I was using 6.x-4.x-alpha5. Is this supposed to work or is it yet to be implemented?
why r u trying a quiz module in drupal.just rip off the quiz module from moodle, needed library files and database tables.integrate all and put as a quiz module in drupal after making needed changes.thanks
Redsky, what you describe is not simple. Moodle is not so modular as Drupal and isolating the quiz functionality is exceedingly difficult. I have been isolating the import/export functionality to port it to Drupal Quiz (see http://drupal.org/node/473628) and even that has many surprising code dependencies spread throughout the Moodle codebase.
If you'd like to help in integrating Moodle functionality, please share your coding experience with Moodle and/or Drupal and I can suggest some pieces to work on.
Thanks Turadg for your suggestion.i am an intern assigned with a project to rip moodle quiz functionalities for drupal use.i am not having any coding experience on moodle or drupal.anyway i will try.
Comments
use
I'm curious what the exact use case is here. Preview is useful in an editing context where the syntax is unobvious or increases the chance of errors. Each character could potentially change how the node renders, so being able to Preview before hitting Save is useful.
In the importing form, there aren't many errors to make. You name a new quiz or item collection. Sometimes you pick an existing quiz to import into, but I think this is the rarest. Then you pick the type of the import. Though unlikely, potentially one could be confused by this option and make an error. Then you pick your file, which is unlikely to make an error.
If we're trying to save people from making errors in the item selection, I think we could do this better by sniffing the item type and converting automatically. Basically, remove this option.
In considering whether to implement this, there are the benefits and the costs. I think the benefits are negligible. The costs are development time and complexity in the UI. Anyone can comment out the Preview button in the code so the UI complexity isn't such an issue. And it's Sivaji's time so that's really up to him. Of course, there are lots of important features in the queue that I would hope get resolved first.
My 2¢
http://educoder.org/
http://openeducationresearch.org/
Use cases
Partial imports: a user only wants a portion of the questions. Preview allows them to select only what they want.
Unknown imports: someone is presented with a set of questions to evaluate for potential use; preview would allow a person to evaluate the questions before they actually imported them.
While either of these use cases could be met with delete after import, a preview option would save people time.
FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education
FunnyMonkey
those sounds good
Bill, those are great ideas I hadn't thought of. I really like the Partial Import idea.
Sivaji, could that be implemented in the Preview? Preview could be two stages. In the first you see what would get imported. Each item is checked for inclusion by default. You may uncheck items or leave them alone before clicking "Continue" or whatever. If you close the window or click Cancel, nothing happens.
Of course, that's more work. :) But I retract my argument against Preview.
http://educoder.org/
http://openeducationresearch.org/
sure I will try for it. Lets
sure I will try for it. Lets starts with basic preview then we will add more feature to it.
Importer module lets the
Importer module lets the quiz authors to create a bulk of question from a text file. The import text file suppose to have questions in some predefined format. Say csv import file should look like this
# Multichoice
# Type, Question, Choice 1, Feedback ch1, Choice 2, Feedback ch2, Choice 3, Feedback ch3,..,Correct choice
multichoice, which one of the following is correct when A =10 and B=5 ?, A > B, A is greater than B, B > A, B is greater than A, A = B, A is equal to B, A > B
# True or False
# Type, question, true/false, feedback
true_false, Drupal 7 is the latest version of Drupal ?, false, Drupal 7 is still under development
# Matching
# Type, question, match 1, answer 1, feedback 1, match 2, answer 2, feedback 2, ....
matching, match the softwares and it category, firefox, browser, firefox is a web browser by mozilla, ubuntu, Linux distro, Ubuntu a Linux distro by Conanical, Eclipse, IDE, Eclipse is an IDE by IBM, Drupal, CMS, A kick ass content management system
# Long Answer
# Type, Question, Max Score
long_answer, Write an essay about Drupal, 1
#Short Answer
# Type, Question, Correct Answer, Max Score, Answer Evaluation (case sensitive match, case insensitive match, regular expression match, manually score match)
short_answer, what does PHP stands for ?, PHP Hypertext Preprocessor, 1, case insensitive match
There are chances of committing mistakes which creating an import file. It often happens that a last field (answer) of current questions turns into (question) first field of next question (field shifting), may be because of the some un-handled condition in the code or an invalid format in import file. Also there are chances of propagation of the error to consecutive nodes also. I assume importer preview will avoid a lot of hassle.
Is there a way through which
Is there a way through which i can also import the scores along with each option in a multichoice question import through csv ? I think tried from some example but only the questions were imported without the scores. I was using 6.x-4.x-alpha5. Is this supposed to work or is it yet to be implemented?
rip moodle quiz module
why r u trying a quiz module in drupal.just rip off the quiz module from moodle, needed library files and database tables.integrate all and put as a quiz module in drupal after making needed changes.thanks
not so simple to use Moodle quiz functionality
Redsky, what you describe is not simple. Moodle is not so modular as Drupal and isolating the quiz functionality is exceedingly difficult. I have been isolating the import/export functionality to port it to Drupal Quiz (see http://drupal.org/node/473628) and even that has many surprising code dependencies spread throughout the Moodle codebase.
If you'd like to help in integrating Moodle functionality, please share your coding experience with Moodle and/or Drupal and I can suggest some pieces to work on.
-Turadg
http://educoder.org/
http://openeducationresearch.org/
http://educoder.org/
http://openeducationresearch.org/
thanks..
Thanks Turadg for your suggestion.i am an intern assigned with a project to rip moodle quiz functionalities for drupal use.i am not having any coding experience on moodle or drupal.anyway i will try.