Drupal 7 introduced entities. To support adding licenses directly to entities like Media, I've started making changes to to head in that direction while updating the module to work with D7.

alpha1 - Direct port of D6 module
alpha2 - Alter schema to support entities
alpha3 - Finish D7 update so all Views, Fields, and Blocks are working
alpha4 - Update RFD to work with D7 core RDF
apha5 - Add update hook and test migration from D6
beta1 - All the features and functionality from D6
7.2 branch - Move CC fields from vertical tabs to a field that can be added to an entity

Comments

supertrader6’s picture

Hi,

Thanks for the great module.

There is something I was going to take a look at when I saw this post.

It's this.

Do you think Creative Commons would work with render arrays (added) to current module to formulate what would then become the HTML output?

kreynen’s picture

If I understand what you are asking, that's essentially what's happening at the theme layer...

http://drupalcode.org/project/creativecommons.git/blob/refs/heads/7.x-1....

Are you trying to override the default theming?

supertrader6’s picture

I think so.

I currently use Drupal 6 module to display Creative Commons in a block for each node. This works fine.

I was interested in adding a licence to a field for each node in Drupal 7, which looks like it is scheduled for 7.2 branch. My thinking was that it would be easier to access the various parts of the licence (that later turn up as HTML) if they were put in a render array. That is to say the various parts of the licence could be in an array of items that were assembled before output, and for which properties are available including theming.

I must admit I haven't looked at render arrays beyond reading the documentation (Drupalcon Chicago slides, Examples module).

infines’s picture

What's the current status of this module?

kreynen’s picture

A number of features were added to D6 module as part of a Google Summer of Code project; Views API Support, Search, RDF, etc. Unfortunately getting all of these working in D7 has not been a high priority of any of my clients. The original module follow the structure of OG in D6 by extending the type form with custom fields and then form altering the types that CC was enabled on. The more I've been working with OG2 in D7, the more I'm leaning toward a complete rewrite that would use a filed widget that could be placed on a node or entity that simply stored the license URL. That would make it easier to import CC licensing with Feeds since MediaRSS uses the license url. I have a need for this functionality in a personal project, so it's becoming more of a priority.

balleyne’s picture

I'd like to help get this module in shape for D7. I've been MIA for a while, in part because I was still using D6 exclusively, but I've had several D7 projects through the Fall and am up to speed on D7. I don't have a ton of time to spend right away, but I can start chipping away at it.

Would a focus directly on switching to Fields would make the most sense? (What's listed above as 7.2.) Maybe a license field, with the URL, and the other metadata as optional fields that could be added to a node or left off? Not sure if I fully follow the filed widget bit.

infines’s picture

I think at this point it might be easier to start a new module, as the developer doesn't seem to be around much to tackle these issues. Of course if you can get on board as a contributer, I'd be happy to test what you come up with also.

infines’s picture

Priority: Normal » Major
infines’s picture

http://drupal.org/project/creative_commons Here is alternative till this module starts moving again.

kreynen’s picture

@gridbitlabs thanks for pointing that out. I reached out to @Ben Scott about collaborating, but didn't get a response.

@balleyne I took a first stab at merging the API functions with the field structure in creative_commons in the 7.x-2.x branch. The core functionality is working. I'm storing the full license uri instead of just the license's short name or the id of a constant like @Ben Scott was doing. With the potential changes in the no derivatives license options, this seem like an important feature.

This version supports the workflow I want which is to keep the license of imported Media items intact so you know what version, jurisdiction, etc. the item was licensed with.

Take a look.

Leeteq’s picture

I see we have a 2.0-dev branch from September 2013, but strangely not a lot of activity in the issue queue since then...
So what is the status here now - ref. @kreynen's comment #5 last June over here:
#1950566: Drupal 7 upgrade of creativecommons_lite

kreynen’s picture

The update to Creative Commons got hung up by #1033202: [Meta] Generic entity processor. Who would have though it would take 3 years to entity support added to Feeds? The goal with the updated version of this module was really simple... to be able to import Media entities from Archive.org with their licenses. With entity support finally in Feeds, we're moving back to Creative Commons and adding license support to https://drupal.org/project/feeds_mediarss