Download & Extend

support for User Defined license

Project:Creative Commons
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed

Issue Summary

At my clients request i am working on adding the ability to provide user defined license text to nodes. Rather than use the CC module and a separate module to form_alter the CC form to add support for this; I thought i would just "hack" the CC module and provide the patch for this feature.

Just checking if their is any support to have this committed if i do the work or is there strong opposition to adding this feature - possibly this somehow goes against the module's intent??

Basically i was going to add a group called Other to the Available license types with an option of "User Defined" and then a description field (with new table to store) custom user entered text to be assigned as the custom license text for that node.

I may look at extending this to support a library of user defined license texts if my client decides to go that way.

Mostly finished patch now; likely post later today.

Comments

#1

I don't have any opposition to this, was actually thinking about that kind of feature somewhere down the road.

The only potential obstacle is that I'm finishing up work on the 1.0 release for Google Summer of Code by Aug 17, and am currently focused on finishing up a couple other features. If you have a working patch in the next few days, then I may be able to include that in the 1.0 release -- otherwise, it might have to be in the next release.

Thanks for the suggestion, looking forward to seeing the patch.

#2

Status:active» needs review

here is patch for User Defined custom licenses.

tried to fit in as close as i could to the way you are doing things; including the delete/save you do on update - i likely should have just changed this but didn't get to it - correct way is INSERT .. ON DUPLICATE KEY (http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html).

wasn't sure about correct approach but if user defined txt is entered and submitted and then user edits and selects non-User license; i wipe the db (actually i don't but your delete on update does), likely no reason to delete this text in case user changes their mind and wants to go back to custom license - but will leave it for now.

AttachmentSize
user_defined.patch 12.35 KB

#3

oops, and here's is patch with .install mod added

AttachmentSize
user_defined.patch 14.38 KB

#4

just updating to beta3 and i guess this patch hasn't made it in? I see you do have a creativecommons_user table now though; but i think that is for something else.

i will need to modify the patch here as i was using that table name for the user defined licenses.

#5

Status:needs review» postponed

I'm marking this as Postponed since it's a pretty low priority for 1.0 and a new patch has to be rolled.

#6

I'd really like to see this feature implemented, and can see a lot of Community Media Centers and independent creatives finding it very useful, and think you can do it within the scope of current CC offerings by using CC+ - their customizable licenses for offering extensions to another CC license: http://wiki.creativecommons.org/CCPlus

#7

subscribing