Forums | Mahara Community

Support /
Public Domain and Creative Commons CC0


14 February 2022, 22:10

We have many institutions in mahara and want to add a license.

Where can I add for all institutions the license Public Domain or Creative Commons CC0?

In lib/licenses.php CC0 is missing in the list of initial licenses.  (https://creativecommons.org/publicdomain/zero/1.0/ )

 

/**

 * Install the initial set of licenses (if the license table is empty).

 */

function install_licenses_default() {

    $exist = record_exists('artefact_license');

    if ($exist) {

        return;

    }

 

    $license = new stdClass();

    $license->name = 'http://creativecommons.org/licenses/by-sa/4.0/';

    $license->displayname = get_string('licensedisplaynamebysa', 'install');

    $license->shortname = get_string('licenseshortnamebysa', 'install');

    $license->icon = 'license:by-sa.png';

    insert_record('artefact_license', $license);

Kristina Hoeppner's profile picture
Posts: 4739

15 February 2022, 10:36

Hi Andreas,

You can configure additional licenses via Admin menu → Configure site → Licenses.

Cheers

Kristina

24 February 2022, 21:02

Thanks for your help.

By default this is not editable. We had to allow custom licenses for a short time. We added the CC0-license and then we disabled custom licenses (Configure Site --> Site Options --> custom licenses ).

Kristina Hoeppner's profile picture
Posts: 4739

25 February 2022, 7:51

Hi Andreas,

Correct. Apologies that I hadn't mentioned that as well as I usually allow both options when licenses are allowed as not all resources have the listed licenses.

Best,

Kristina

4 results