43 |
efrain |
1 |
moodle-local_listcoursefiles
|
|
|
2 |
============================
|
|
|
3 |
|
|
|
4 |
This extension allows teachers to view a list of all files in a course and to change the license for each file. It is also
|
|
|
5 |
possible to download the files in a ZIP archive.
|
|
|
6 |
|
|
|
7 |
Adding a new license
|
|
|
8 |
====================
|
|
|
9 |
|
|
|
10 |
Since Moodle version `3.9` you can add a custom license via Moodle's [license manager](https://docs.moodle.org/403/en/Licences#Licence_manager) in the Site administration.
|
|
|
11 |
|
|
|
12 |
Expired files
|
|
|
13 |
=============
|
|
|
14 |
|
|
|
15 |
We are using this plugin at Technische Universität Berlin in order to conform to german law (§ 52a UrhG).
|
|
|
16 |
Copyrighted texts have to be made unavailable after a course ends. Since only a few of our teachers upload
|
|
|
17 |
copyrighted texts and we want our students to be able to view their old courses (and non-copyrighted files),
|
|
|
18 |
we use this plugin as a solution.
|
|
|
19 |
|
|
|
20 |
Our teachers specify the license of each file (through this plugin or the Moodle file picker). That way, we
|
|
|
21 |
can identify the copyrighted files and make only these unavailable. We replaced the default licenses from
|
|
|
22 |
Moodle by "License unexamined", "Copyrighted (provided in accordance with §52a UrhG)", "Approved by author",
|
|
|
23 |
"Open content", and "Public domain". "License unexamined" is the default license.
|
|
|
24 |
|
|
|
25 |
The files (documents) that are currently unavailable for students can be highlighted by the plugin.
|
|
|
26 |
The following settings need to be defined in the config.php:
|
|
|
27 |
* array $CFG->fileexpirylicenses which licenses (shortnames) expire
|
|
|
28 |
* int $CFG->fileexpirydate when do files expire (unix time)
|
|
|
29 |
* array $CFG->filemimetypes['document'] mime types of documents
|
|
|
30 |
|
|
|
31 |
Some modifications to the Moodle core are required to restrict the download of copyrighted files.
|
|
|
32 |
Our patch for Moodle 3.2 can be found here:
|
|
|
33 |
https://github.com/innocampus/patches/blob/master/Moodle32-Check-file-license-and-expiry-date.patch
|