cc licensed ( BY-NC-ND ) flickr photo shared by Mike_tn

This is most likely the last feature I add to the WordPress DS106 Assignment Bank Theme. If you have been crawled under someone else’s blog, this is something I have been working on forever to generate a site like the ds106 Assignment Bank.

In a demo for some folks from the National Writing Project, Karen Fasimpaur threw out a wish for options to enable people who add “things” to the bank to be able to attach a Creative Commons license (or none). “That’s a great idea, and should be easy” were words I believe came out of my mouth. I have it working in the demo site at http://bank.ds106.us/.

On the admin side, there is a new set of options:

cc license ootions

You can have none of this by selection the “none” option. The second one allows the site owner to have a single license applied to any thing created on the site, and the licensed used is the one chosen from the menu below it.

This creates a license statement like:

cc by

And when you go to add a “thing” to the site, you will see that this license will apply:

cc mode all

But the use case Karen was interested in was where the person who uploads gets to choose, that is the third option. In this case the form for adding a thing has a drop down menu to choose (and yes, one of them is All Rights Reserved, Karen said that is a desire on their site)

license options

Now thats a long list. I hoped I could set up an options screen to allow you to select which ones appear, but in the interest of time, I am leaving this for later. One could always restrict the licenses that appear on the menu by editing the function that generates it

// to restrict the list of options, comment out lines you do not want
// to make available (HACK HACK HACK)
$licenses = array (
	'by' => 'Creative Commons Attribution',
	'by-sa' => 'Creative Commons Attribution-ShareAlike',
	'by-nd' => 'Creative Commons Attribution-NoDerivs',
	'by-nc' => 'Creative Commons Attribution-NonCommercial',
	'by-nc-sa' => 'Creative Commons Attribution-NonCommercial-ShareAlike',
	'by-nc-nd' => 'Creative Commons Attribution-NonCommercial-NoDerivs',
	'copyright' => 'Copyrighted All Rights Reserved',
);

commenting out the unwanted ones to make it, say

// to restrict the list of options, comment out lines you do not want
// to make available (HACK HACK HACK)
$licenses = array (
	'by' => 'Creative Commons Attribution',
	'by-sa' => 'Creative Commons Attribution-ShareAlike',
//	'by-nd' => 'Creative Commons Attribution-NoDerivs',
	'by-nc' => 'Creative Commons Attribution-NonCommercial',
//	'by-nc-sa' => 'Creative Commons Attribution-NonCommercial-ShareAlike',
//	'by-nc-nd' => 'Creative Commons Attribution-NonCommercial-NoDerivs',
	'copyright' => 'Copyrighted All Rights Reserved',
);

If copyighted is allowed, the display goes something like:

copyright

It was not too terrible complicated to add this… but its time to wrap it up and let some others give it a spin. The last remaining task is to write up the documentation. There are some CDD nibbles and quirks to smooth out.

I wonder if anyone will ever use it… but that does not matter because I have learned a ton in developing this site.

The post "DS106 Assignment Bank Theme: Now With Creative Commons Options" was originally yanked out of the teeth of a rabid chicken at CogDogBlog (http://cogdogblog.com/2014/04/ds106-assignment-bank-theme-cc-options/) on April 3, 2014.

1 Comment

  • Paul Stacey creativecommons.org

    Alan:

    Thanks for doing this.
    I hope it does get used widely. Certainly it makes terms associated with reuse of DS106 Assignment Bank contributions clearer.
    Awesome job developing the site.
    Hope to see you at events over the coming year.

    Paul Stacey
    Associate Director of Global Learning
    Creative Commons

Leave a Comment

All fields are required. Your email address will not be published.