moodle

Moodle Assignment Feedback Packager

Moodle allows assignments and group assignments to be graded offline. This helps to assign a graded group work to each of its members, but also requires a special naming and formatting of files and csv content. To help, this small web app, helps to generate the offline grading zip and attribute a group grade to all its members. It only requires the initial offline grading worksheet and optionally a feedback file for each group.

Getting the feedback file

  1. The first step it to enable Feedback files and Offline grading worksheet in Moodle assignments ‘settings under Feedback Types.
  2. It is then possible to use Download grading worksheet under View all submissions of the assignment.
  3. This file can then be uploaded to the webapp: https://bfritscher.github.io/moodle-assignment-feedback-packager/

Using the webapp

Screen after uploading a feedback file

groupscreen

  • The first tab Groups helps to add feedback and grades to groups which are then copied to each member shown in the participants tab.
  • On the bottom it is possible to import grades and comments based on the group key.
  • The Feedback files tab allows to upload files if the filename has the name of a group it will be added to the feedback of each group member of this group.
  • Finally, the updated csv file and packaged zip can be downloaded and uploaded to moodle’s assignment.

FAQ

Are my files send to a server?
No all is done locally in your browser.
Limitations?
Browser’s max size of files is arround 200MB

Source

Github

Moodle Assignment Feedback Packager Read More »

Moodle 2 export participants with group information

A small script to export moodle 2 participants with their group information.

Drag the bookmarklet to your bookmarkbar: Moodle Group Export
You can then click it when you are on the moodle 2 > Users > Enrolled users page to get a csv file of the displayed table.

Limitation

  • Support for a maximum of 1 group by participant
  • Pop-up has to be enabled

Source Code

var script = document.createElement('script');
document.head.appendChild(script);
script.onload = function(){
var separator = ',';
var pattern = /id=(.*)&/;
var csv = [['userid', 'name','idnumber','email','group'].join(separator)];
$('table.userenrolment').find('tr').each(function(index, tr){
    var r = [];
    var $tr = $(tr);
    var a = $tr.find('a');
    var userid = pattern.exec(a[0])[1];
    r.push(userid);
    r.push($tr.find('.subfield_firstname').text());
    r.push($tr.find('.subfield_firstname').text());
    r.push($tr.find('.subfield_idnumber').text());
    r.push($tr.find('.subfield_email').text());
    r.push($tr.find('.group').text());
    csv.push(r.join(separator));
});
csv = csv.join("\r\n");
window.open("data:application/octet-stream;charset=utf-8," + encodeURIComponent(csv));
};
script.src = 'http://code.jquery.com/jquery-2.1.4.min.js';

Moodle 2 export participants with group information Read More »