306 Commits

Author SHA1 Message Date
moodler
23b4848794 Quiz categories now also have a unique stamp in them.
This is to make it easier when restoring backups,
especially when the questions are in a published
category from another course that still exists.
2003-08-27 12:53:21 +00:00
stronk7
461da6bdb6 Now existing categories are used only if their publish
field is set to yes. Else, a new "local" category is created.
Added some lines of code to mantain old compatibility when detecting
existing questions (do it by name if the stamp is not found) and insert
the stamp too !!
Please, test.
2003-08-27 00:40:14 +00:00
moodler
a1b2bec873 Remove half-finished oracle files 2003-08-26 07:09:14 +00:00
moodler
138def3ead Maxlength fields 2003-08-25 17:57:39 +00:00
moodler
eb94392c4b Sometimes there are no answers, so check existence first 2003-08-25 02:52:19 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
moodler
8826c67031 New questions created via GUI or imported are now given a unique
stamp, and a default version of 1.

When questions are updated, the version number is incremented.
2003-08-23 15:26:10 +00:00
stronk7
1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
moodler
757a0abd94 Corrected the stamp I just added and added a separate version field instead 2003-08-23 14:18:44 +00:00
moodler
e9d8777ffb New "stamp" field on quiz questions with a unique identifier, as well as
some PostgreSQL fixes (Multianswer stuff had not been done on Postgres yet)
2003-08-23 13:28:32 +00:00
stronk7
f53119698e Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:35:21 +00:00
stronk7
bbe15ef239 Changed the "graphical" representation of the mod to include
multianswer table. I start working with it now !!
2003-08-22 15:46:28 +00:00
moodler
2bf31fc6a6 FIxed line feeds 2003-08-19 14:27:49 +00:00
moodler
5ca03851ae Bug fix: On building attempts after the first one, display question images 2003-08-18 07:45:03 +00:00
moodler
ce9aeca5bd Changing that help file name to something shorter 2003-08-18 07:39:23 +00:00
stronk7
f19f822b1a Solved one bug when restoring MATCH(5) questions if
the question is an existing one. Some mapping are done
to use after them in responses.
2003-08-15 19:11:55 +00:00
stronk7
887e908592 Solved one bug when restoring RANDOMSAMATCH(6) questions if
they haven't been responsed in the quiz. The answer field in
quiz_responses must have X-0,Y-0 format instead of null.
Curiosly, MATCH(5) questions must have null if they aren'r
responsed.
2003-08-15 18:10:11 +00:00
stronk7
f43f3f65bc Solved one important bug in RANDOM(4) and RANDOMSAMATCH(6)
question types.
And modified some of the quiz_answers restore system to
allow remapping answers with existing questions.
//Detected by scott dot elliott at mchsi dot com in Bug 84
2003-08-15 11:08:51 +00:00
kaipe
608ed9800d Debug
This fix rids warnings that used to come when a student for the first time attempts a quiz with the option "Each attempt builds on the last" = Yes (attemptonlast).
Now the option is not in effect when a student attempts a quiz for the first time, i.e. when there is no last attempt to build on.
2003-08-11 12:37:54 +00:00
kaipe
1754624916 Fixed bug that was pointed out by Tom Cat:
The reuse of old quiz_answers records for question type multianswer/embedded did not work properly.
2003-08-10 12:09:49 +00:00
selliott
52dd8d7dbf selliott - Fixed mixup in feedback for true/false questions 2003-08-08 18:06:41 +00:00
moodler
9e1942c056 Fixed a typo on the multianswer table definition 2003-08-05 05:11:43 +00:00
stronk7
03877c6c61 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 18:39:25 +00:00
stronk7
22ad18b972 ATTEMPTONLAST are included in backup/restore too !! 2003-08-04 10:38:51 +00:00
stronk7
d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +00:00
kaipe
586b2c82ed New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
2003-08-03 23:00:45 +00:00
kaipe
0f36ecb9ea New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
2003-08-03 22:54:02 +00:00
kaipe
5a24a01868 Resolving bug #576.
This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt.
The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.
2003-08-03 21:39:32 +00:00
kaipe
bdb63d64f2 Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc).
For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc.
Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!
2003-08-03 20:02:43 +00:00
stronk7
e5fc599647 Forget delete some debug, sorry. :-) 2003-08-03 16:41:31 +00:00
stronk7
13d0fb4bbf Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.
2003-08-03 16:36:29 +00:00
moodler
8883c4a885 Less fiddly looking icon 2003-08-02 05:05:09 +00:00
moodler
567b01bceb Quick icon for multiple answers 2003-08-02 05:01:02 +00:00
kaipe
2e3e1ac76b Added the choice of 16.666% for multichoice fraction 2003-08-01 13:24:05 +00:00
kaipe
8b439f8c16 New question type - multianswer 2003-08-01 08:37:11 +00:00
kaipe
44fc346f45 Refactoring only, no new features -
Modified methods are quiz_get_answers and quiz_grade_attempt_results.
For quiz_grade_attempt_results, the switch statement has been separated out into method quiz_grade_attempt_question_result.
2003-07-29 09:11:06 +00:00
moodler
48705c8d40 Latest fixes from Thomas Robb - thanks Thomas! 2003-07-29 04:18:01 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
stronk7
a8c0abbfb1 Added language suport 2003-07-28 19:24:09 +00:00
moodler
250e71d967 When a quiz is closing within the next 24 hours, a small countdown
is shown in the titlebar (drawn with javascript).

An alert is shown at ten minutes, and zero minutes.

This doesn't prevent students from doing anything, but it serves
as a reminder and just looks cool.  ;-)
2003-07-28 08:58:47 +00:00
moodler
3a04632eb7 Fixes for file names 2003-07-28 03:26:32 +00:00
moodler
8b0ef9b0cb Improvements to simplestat (more info in HTML display plus downloads XLS an TXT) 2003-07-28 02:04:58 +00:00
moodler
f9919efd87 Better averages when students are missing 2003-07-24 16:59:11 +00:00
moodler
40b1a22162 Further changes to tidy up reports 2003-07-24 16:48:10 +00:00
moodler
c90f563e39 New simplestat report module.
This is very simple so far just to do some tests on larger datasets.

Soon it will have XLS and text download, as well as more question
information.
2003-07-24 16:43:24 +00:00
moodler
779e79f438 Better string for teacher reports 2003-07-24 06:21:21 +00:00
moodler
29d5d0b40c New modular plugin structure for quiz reports.
The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).
2003-07-24 05:18:00 +00:00
moodler
cee5ff1d04 Better layout of gathering quiz results, which mkes it easier for developers
at the cost of perhaps a little efficiency ... some more testing on this i
should be done.   Thanks to Henrick Kaipe for this.
2003-07-24 02:04:22 +00:00
stronk7
3960a44b62 Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS
containing the "," character. Bug #561 closed.
2003-07-21 17:25:59 +00:00
stronk7
e2bad68d23 Now numerical questions are included in backup and restore too !! 2003-07-19 18:01:11 +00:00