MESH-Research / humcore

A library-quality repository for sharing, discovering, retrieving, and archiving digital work.
7 stars 3 forks source link

Change default CC license on new deposit to CC:BY from "all rights reserved" #177

Closed bjr70 closed 2 years ago

bjr70 commented 2 years ago

Change default license to "Attribution."

amareshjoshi commented 2 years ago

in functions.php look at

/**
 * Return the license type list.
 *
 * @return array
 */
function humcore_deposits_license_type_list() {

    $license_type_list = array();

    $license_type_list['All Rights Reserved']                     = 'All Rights Reserved';
    $license_type_list['Attribution']                             = 'Attribution';
    $license_type_list['Attribution-NonCommercial']               = 'Attribution-NonCommercial';
    $license_type_list['Attribution-ShareAlike']                  = 'Attribution-ShareAlike';
    $license_type_list['Attribution-NonCommercial-ShareAlike']    = 'Attribution-NonCommercial-ShareAlike';
    $license_type_list['Attribution-NoDerivatives']               = 'Attribution-NoDerivatives';
    $license_type_list['Attribution-NonCommercial-NoDerivatives'] = 'Attribution-NonCommercial-NoDerivatives';
    $license_type_list['All-Rights-Granted']                      = 'All Rights Granted';

    return apply_filters( 'humcore_deposits_license_type_list', $license_type_list );
}
amareshjoshi commented 2 years ago

i think BY corresponds to:

$license_link_list['Attribution'] = 'https://creativecommons.org/licenses/by/4.0/';

link to the BY license: https://creativecommons.org/licenses/by/4.0/

search for regex ['"]Attribution['"] across all files to find all places to make changes