Issue Details (XML | Word | Printable)

Key: MDL-17420
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: moodle.com
Reporter: Francois Marier
Votes: 9
Watchers: 13
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Removing the need for gradebook exports to be tied to a single course

Created: 27/Nov/08 03:22 PM   Updated: 13/Nov/09 04:08 PM
Return to search
Component/s: Gradebook
Affects Version/s: 2.0
Fix Version/s: None

File Attachments: 1. Text File globalgrades_admin_report2.patch (13 kB)
2. Text File gradeexport_multicourse.patch (23 kB)


Participants: colin wheelhouse, Dan Poltawski, Francois Marier, Gary Prosser, Gordon Anderson, moodle.com and Pedro Almeida
Security Level: None
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
This is a patch (gradebookexport_multicourse.patch) which refactors the gradebook export code.

Currently the export code is tied to a single course and it makes it impossible to have grades from activities in different courses in the same spreadsheet. This patch turns this single course into an array of courses.

The second patch (globalgrades_admin_report.patch) is a an example of what could be done with this extra flexibility in the export backend.

It consists of a new admin report which allows admins to export activity grades for more than one course at a time. This was developed for corporate clients who need this functionality since the same instructors teach a lot of different courses and found it very painful to go through a series of courses to do grade exports.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Pedro Almeida added a comment - 23/Dec/08 08:28 PM
I'm thinking to try this solution on my site.
But i've moodle 1.9.3 and I can't see any file on globalgrades (my version haven't this folder).
I can's see any moodle 1.9.4... how can I implement this? I must create the folder?

Thanks for your help...

PA


colin wheelhouse added a comment - 15/Jan/09 06:29 AM
I would like to know how to test this patch on a 1.9.? site. Am I correct in understanding that this will allow an admin/teacher to in effect export the overview reports of students on mass thus showing their grades across all courses on one spreadsheet? If details of how to implement the patch could be provided this would be a fantastic addition to the gradebook.

Colin


Francois Marier added a comment - 15/Jan/09 12:22 PM
Hi Colin,

You're right, this new admin report allows an admin to export student grades for all students across all courses on a single spreadsheet.

To apply the two patches, see this page:

http://docs.moodle.org/en/Development:How_to_apply_a_patch

Cheers,
Francois


Gordon Anderson added a comment - 03/Mar/09 12:00 PM
HI

I have added buttons to allow selection and deselection of all the courses in the initial screen at http://SERVER/admin/report/globalgrades/index.php titled which begins with 'Select the courses to include in the report:'.

The attached patch file is the original patch file as written by Francois, with the following added:

@@ -90,6 +90,14 @@

print_course_list(NULL, NULL, NULL, -1);

+
+ $strselectall = get_string("selectall");
+ $strdeselectall = get_string("deselectall");
+ echo "<p>";
+ echo "<input type=\"button\" onclick=\"checkall()\" value=\"$strselectall\" />\n";
+ echo "<input type=\"button\" onclick=\"uncheckall()\" value=\"$strdeselectall\" />\n";
+ echo "</p>";
+
$exports = get_list_of_plugins('grade/export', 'CVS');
$exportnames = array();
if (!empty($exports)) {

Thanks

Gordon


Dan Poltawski added a comment - 15/Apr/09 06:22 AM
Re-Targeting this for a review with moodle 2.0 in mind (Although 2.0 is changing around us ) cos its not had a real review yet. Please poke us if we don't do a code review/decision soonish

Gary Prosser added a comment - 17/Jul/09 09:13 PM
This patch seems to be the only 'improvement' that would allow a teacher to collate grades for multiple students across multiple courses. That's why I'm voting for it.

One important detail - its not uncommon to have pastoral tutors, ie teachers with a cohort of students across several courses and the teacher does not necessarily teach in all those courses.