Commit graph

7829 commits

Author SHA1 Message Date
pilpi
8c4d6dd2a2 quiz editing: MDL-17294 removed the $showbreaks parameter from quiz_print_question_list 2008-11-28 18:37:24 +00:00
pilpi
c7c7f25a84 quiz editing: MDL-17294 changed quiz_process_randomquestion_formdata to always return (instead of sometimes redirecting) 2008-11-28 17:29:04 +00:00
pilpi
439d9cbe90 quiz editing: MDL-17452 customized the link tooltip to "Remove empty page" for the link for deleting an empty page 2008-11-28 16:33:48 +00:00
pilpi
8333ad82ae quiz editing: MDL-17398 Added "show category contents" as a tooltip for the link with the category name as its contents 2008-11-28 16:27:42 +00:00
pilpi
3814fb96fc quiz editing: MDL-17398 link to edit random question (configuration) in new UI 2008-11-28 15:43:10 +00:00
pilpi
7b2c3bde9e quiz editing: MDL-17451 CSS and whitespace fixes to truncate overlong question category name
Tested on opera 9.27, IE6, Firefox 3 on Ubuntu Linux 8.04
2008-11-28 15:16:40 +00:00
pilpi
9cdcf82665 quiz editing: MDL-17398 cleaned up random question display in the edit subtab
made the link in an empty random question more readable, added a link to show category contents after the list of sample questions of a random question
2008-11-28 14:07:06 +00:00
jamiesensei
2280e147c5 MDL-12418 "Item Analysis shows duplicate responses for Multiple Choice questions with LaTeX in answers" This problem was caused by the formatting of questions in get_actual_responses. Now formatting is done in response_summary rather than get_actual_response which returns an array of unformatted strings.
Have fixed the formatting in responses report and in statistics report to use the correct formatting for the question type.

Created new functions format_responses and format_response. format_responses works on an array and normally just walks through the array calling format_response.
2008-11-28 10:14:19 +00:00
danmarsden
d54e2145ba add time restriction MDL-12588 - add ability to restrict the viewing of SCORM objects using a time/date restriction like most other modules already allow. 2008-11-28 09:20:59 +00:00
skodak
f63d6374a1 MDL-11090 merging forgotten version.php which breaks upgrade badly 2008-11-28 09:15:16 +00:00
danmarsden
86ed86b8dd MDL-17115 - no point in waiting for SCORM API to load when we know JS is disabled. 2008-11-28 06:49:10 +00:00
tjhunt
f24493ec9b random essay questions: MDL-8648 Allow essay questions to be selected by random question.
In the 1.9 branch this is controlled by a new option under Admin -> Experimental. In Moodle 2.0 dev it is not optional, it just works.

The main change is letting the manual grading report know which random questions might need manual grading. MDL-4004 - this depends on the random question under consideration, which requires a new questiontype method.

I also changed the random question code so that I could remove some global variables.
2008-11-28 06:07:11 +00:00
skodak
214b1cf7a8 MDL-17428 Do not include in the middle of file in global scope 2008-11-27 22:46:34 +00:00
skodak
3c67721aa1 MDL-17405 moving Data mod upgrade notification to proper place (upgrade.php) - better notification will be implemented in MDL-17427 2008-11-27 22:14:34 +00:00
tjhunt
16590517fa fix notices: MDL-15974 Some systems that were upgraded have nullable columns, leading to notices
A new install has NOT NULL DEFAULT 0.
2008-11-27 05:12:11 +00:00
pilpi
9e5d7a8c5b quiz editing: MDL-17418 added back (removed comments around) random question preview link for also the random question printing function for the order and paging tab. 2008-11-26 16:24:46 +00:00
pilpi
1b90bb45c5 quiz editing: MDL-17284 removed a print_r() call that must have been forgotten there when debugging 2008-11-26 15:36:34 +00:00
pilpi
0ff9576738 quiz editing: MDL-17284 converted a space to an   to keep preview label on same line with its icon. 2008-11-26 15:35:08 +00:00
thepurpleblob
79ae8789bb MDL-17125
Fix as suggested by Jonathan Kemp.

Merged from STABLE_19
2008-11-26 15:15:58 +00:00
thepurpleblob
4d22ec8144 MDL-11090
Passwords are now held in clear text so you can see what the password
is on the config screen.
Still backward compatible with old md5 passwords (which are still not displayed
of course)

Merged from STABLE_19
2008-11-26 14:34:40 +00:00
pilpi
101cad083a quiz editing: MDL-17294 added back (removed comments around) random question preview link 2008-11-26 13:16:49 +00:00
thepurpleblob
508fe4d8b5 MDL-17411
defaultquestion() now reflects the one in the question bank code, thus supressing
lots of notices

Merged from STABLE_19
2008-11-26 13:10:18 +00:00
tjhunt
2e883810d3 quiz editing: MDL-17296 refactor print_timing_information to avoid duplicating code from mod/quiz/accessrules.php 2008-11-26 04:52:46 +00:00
tjhunt
d7129a519f accessibility / lang strings: MDL-17359 remove > being used as an arrow - screen readers don't like it. 2008-11-25 13:15:53 +00:00
tjhunt
1372b5d2cf quiz editing: MDL-17298 We should not add JavaScript to the YAHOO namespace Also, use the newer methods for including required JavaScript. 2008-11-25 12:31:59 +00:00
jamiesensei
bbf4f440ee MDL-15326 "allow for per report capabilities to replace mod/quiz:viewreports" 2008-11-25 12:11:27 +00:00
jerome
f1cddcf961 database: MDL-16999 move the flag from config table to config_plugins table, merged from 1.9 2008-11-24 00:54:20 +00:00
piers
15f5036a10 MDL-17310 - take the opportunity to change the scorm defaults to a highest grade orientation. 2008-11-23 21:39:29 +00:00
tjhunt
1332ce5397 quiz unittests: MDL-17295 start writing unit tests for some of mod/quiz/locallib.php - and fix the bugs they revealed! 2008-11-23 12:46:51 +00:00
tjhunt
1499ce3185 unit test reliability: For some reason this does not work on my laptop. because the standard function getrempteadr returns '', so just skip this test. 2008-11-23 11:53:21 +00:00
pilpi
721efa237d quiz editing: MDL-17298 removed debugging code forgotten there in the previous revision 2008-11-22 17:26:13 +00:00
pilpi
12e6b459c6 quiz editing: MDL-17298 use onDOMReady instead of onload.
In the previous commit to this file (1.2) I accidentally tried to do this already, but did it wrong, so javascript dialogs did not work.
2008-11-22 17:20:18 +00:00
pilpi
e81702f83a quiz editing: MDL-17362 Cleaned away the js code related to MDL-17362 question bank javascript collapsing until that is done 2008-11-22 16:57:50 +00:00
pilpi
5c8505d034 quiz editing: MDL-17293 changed how the page number to add on is passed to the form for creating a random question 2008-11-22 16:32:36 +00:00
pilpi
414d5bfb7e quiz editing: MDL-17290 doc comments were updated 2008-11-22 15:28:46 +00:00
pilpi
3fd9edf010 quiz editing: MDL-17300 it is now possible to change question grades after there are quiz attempts 2008-11-22 13:45:45 +00:00
pilpi
8bccba71e6 quiz editing: MDL-17299 Moved function definitions from mod/quiz/edit.php to mod/quiz/editlib.php 2008-11-22 12:36:14 +00:00
pilpi
d9daa35ca9 quiz editing: MDL-17297 Got rid of editcss.js and adjusted stylesheets accordingly 2008-11-22 11:42:06 +00:00
pilpi
1cdbd5e46f quiz editing: MDL-17301 avoid inline CSS in mod/quiz/edit.php 2008-11-22 11:29:20 +00:00
pilpi
f0fbea15ba quiz editing: MDL-17292 made it possible to delete an empty page from a quiz with attemtps 2008-11-21 19:48:57 +00:00
pilpi
ca63fb8b31 quiz editing: MDL-17291 Move selected questions to page is now disabled when Questions per page is set 2008-11-21 17:22:08 +00:00
pilpi
218dfb9127 quiz editing: MDL-17291 Question moving functionality to a user-selected page now manipulates an array instead of string
The old implementation was string-based and flawed, so switched to a more readable array-based one.

Also removed strpos2() since it was only used in edit.php locally and due to this change became unused.
2008-11-21 17:08:36 +00:00
pilpi
47a8933f62 quiz editing: MDL-17288 Lang string issues
questionsperpageselected and shufflequestionsselected from lang/en_utf8/quiz.php now use a $a, rather than concatenation.
2008-11-21 13:35:15 +00:00
jamiesensei
a832c5e151 MDL-5241 edited comments that had not been updated. 2008-11-21 10:02:49 +00:00
jerome
cc89b9905c database: MDL-16999 clean SQL from {$CFG->prefix} 2008-11-21 08:16:21 +00:00
jerome
c861f079e4 database: MDL-16999 fix "Required Entries" and "Required Entries before viewing" settings. Display a warning message during upgrade process if the fields were set previously (partially merged from 1.9) 2008-11-21 07:19:00 +00:00
stronk7
7a8d8f2247 Minor formatting 2008-11-20 13:09:45 +00:00
tjhunt
fa583f5f6e quiz editing: MDL-17285 This is Olli Savolainen's new interface for editing quizzes.
This was started and usability tested as a Finnish Summer of Code project, and then Olli did further work on it in his own time to get it in shape for inclusion in Moodle 2.0. I reviewed all the code. There are a number of minor outstanding issues that will be fixed soon. See the subtasks of MDL-17284 for a list.

The goal of these changes is to:
* help teachers new to Moodle, so when they first see the quiz editing page, they don't go "Huh! What on earth am I supposed to do here?"
* help novice Moodle users understand and learn to use some of the more advanced quiz feature;
* but, without slowing down more experienced quiz users.

Naturally, with ambitous goals like that, we won't have managed to satisy everybody, but I think this change is a big step in the right direction.

There is extensive documentation on this project at http://docs.moodle.org/en/Development:Quiz_UI_redesign.
2008-11-20 06:59:11 +00:00
skodak
12fab7081e fooMDL-16698 formslib filenamager element: forum converted to use new filemanaer element (no JS/picker integration for now sorry) 2008-11-19 21:53:37 +00:00
skodak
38d044fc91 MDL-17310 scorm: Install asks for scorm &auth questions on install rather than just front page settings - whitespace 2008-11-19 15:11:49 +00:00