Modify available licenses
Submitted by ymdahi on Tue, 02/08/2022 - 05:01
Forums:
Hi All,
I'm attempting to modify the available licenses when authors are creating h5p. Specifically, I'm attempt to remove CC BY 2.0 as an option.
However, any attempts to make these modifications in h5p.classes.php or h5p.js (Drupal 9.x-2.0.0) seem to be ignored. I imagine I'm missing something?
Thanks in advance for any insight,
Yasin
Content types:
otacke
Sat, 02/12/2022 - 11:06
Permalink
Hi Yasin!Patching H5P core is
Hi Yasin!
Patching H5P core is something that's to be done at your own risk, but I think the relevant places should be:
Hope that's all, but that's all I could find by browsing github on my smartphone :-)
Best,
Oliver
ymdahi
Thu, 02/17/2022 - 02:33
Permalink
Thanks Oliver - yes, it was a
Thanks Oliver - yes, it was a simple oversight on my part - there are two $semantics in h5p.classes.php, I didn't see the first second one in getCopyrightSemantics().
"Patching H5P core is something that's to be done at your own risk"
I 100% agree - the client needed to see this for themselves and have decided against running their own licenses.
However, I will submit a PR as I believe CC 2.0 is problematic enough to be considered for removal, read more here: https://doctorow.medium.com/a-bug-in-early-creative-commons-licenses-has...
That said, I know that it is not as simple as removing the 2.0 as an option and some helper functions to convert will be necessary, if this was to be acted upon.
Thanks again for the help.
Yasin
otacke
Thu, 02/17/2022 - 18:05
Permalink
Hi!Yup, I know. That was a
Hi!
Yup, I know. That was a major reason why 3.0 was released. I am not sure though if prohibiting to use the 2.0 versions in general is the right approach. Might be smarter to make the licenses configurable in the integrations that pass their wishes to H5P core. One would need to think that through for validation of content, however.
Cheers,
Oliver
ymdahi
Thu, 02/17/2022 - 18:58
Permalink
"Might be smarter to make the
"Might be smarter to make the licenses configurable in the integrations that pass their wishes to H5P core."
This would be great. I think separating licenses out to as a service that includes all/any license added by the community (moderated of course), with the core being configurable in the implementation (e.g. some checkboxes) might be a good approach. Would be easy for non-tech folks to make suggestions for licenses.
A lot of work would be needed for this, however.