My university (Univerté du Québec à Montréal) will port from WEBCT 3.8 to moodle in 2007.
Importing questions and peculiarly calculated questions in moodle 1,6 is not working actually in either moodle 1,5 or 1,6.
I have solved the problem for 1,6 doing some patches but this is not an elegant solution.
1.The output from WEBCT must be first converted in utf8. Is there any policy where this conversion sould be done. In each import format.php module? in preprocessing?or elsewhere?
2.the function save_question() in question\questiontypes\datasetdependent\abstractqtype.php is tricky because it controls the three steps of defining the question, the options(the datatypedef, the data itself). "Therefore saving the question is delayed until we're through with the whole wizard."Could we put these three steps in three identified functions or by using an additional parameter in the function save_question() call?
3. the function save_dataset_definitions() in question\questiontypes\datasetdependent\abstractqtype.php always save with $datasetdef->options = '';. There is an function update_dataset_options($datasetdefs, $form) in question\questiontypes\calculated\questiontype.php that fills the $datasetdef->options with the right values but you have to code yourself the saving of the updated dataset_definitions. Could we add a new function save_updated_dataset_definitions() in this questiontype.php file or elsewhere?
An example of modifications to the actual format/webct/format.php is attached.The webct ouptut question file was converted to utf8 preliminary to the import by my editor (uedit).