Hello,

I've been using views + creative commons and I added the "license field" to a certain view to display an icon according to the license type used. It seems to work fine except when "copyright" is selected (instead of selecting other CC license -I have to admit that I have not tried choosing all CC types nor public domain), when this happens, no icon is displayed, although I have seen that there's a special icon for that called "zero.png". It doesn't matter if I choose tiny icons, icons... the problem is the same.

Hope you can fix it. You're doing a great job with it.

CommentFileSizeAuthor
#2 copyright.png1.27 KBc-c-m

Comments

balleyne’s picture

Status: Active » Closed (works as designed)

You mean, no icon is appearing when it's "All Rights Reserved?" That should actually be the expected behaviour right now. "zero.png" is for the CC0 public domain waiver. There's currently no icon for "all rights reserved."

But you bring up a good point -- maybe there should be.

I'd just taken the images from the creativecommons.org downloads, so we'd have to fight icons to use for "all rights reserved" from elsewhere. I could see the tiny icon being pretty straightforward (e.g. (C) ), but I'm not sure what the buttons should look like.

Thoughts? Or maybe I'll just leave it as is for now...

c-c-m’s picture

StatusFileSize
new1.27 KB

Yes, I made a mistake. What I wanted to say is that when Copyright license is selected an icon should be displayed.

Something like the one attached here (I made a custom icon based on the CC icons which has inverse colours and the text says "copyright" I wish I could have the originals to make a better results... :S)

Could you do that, please?

turadg’s picture

I object to using the (c) Copyright graphic because it implies that there is no copyright with the other license. In fact, Creative Commons licenses depend on copyright law. All CC-licensed works are copyrighted. That is how they enforce their license terms.

The "All Rights Reserved" license (which is what I think you mean when you write "Copyright" license) means that no rights are granted, they are all reserved. There is precedent for using the (C) graphic for ARR (http://seesmic.com/docs/CreativeCommons.html) but I think we should try to come up with something better.

Why not leave the graphic out? ARR is implied when no license is specified.

c-c-m’s picture

Although default ARR may be implied when no license is specified, I think it would be better to display it, even though that can be seen reduntant. Some people think that everything on the Internet is public and therefore subject to be used as they want, others are a little bit more aware about copyrights and think that when no license is displayed that means that it's Public Domain.

In addition I'm using a view with a "license type" field to list a series of content and it looks weird when nothing is displayed.

PS: yes, you were right: I meant All Rights Reserved

c-c-m’s picture

Hello,

It looks you're quite busy right now. Could you please tell me where can I make a modification of the code in order to display an icon when "All Rights Reserved" is selected. I think it's quite important to display something instead of leaving that field empty.

Regards

balleyne’s picture

Status: Closed (works as designed) » Active
toemaz’s picture

I used a tpl to override the field theming. In there, I did whatever I wanted to have. Could be an option to temporary solve this issue.

kreynen’s picture

Status: Active » Closed (works as designed)

Switching this back to "by design" since the design is to serve as many use cases as possible, but with a framework that allow users like toemaz to customize the module for their specific use case without modifying the module code itself.

@toemaz Other users might find your tpl code helpful. If you have time, please post it using the <code>YOUR .TPL CODE<code> as an attachment. Using <code> will allow you to leave the rest of you HTML and PHP as is and will look like...

<?php print 'YOUR .TPL CODE'; ?>
toemaz’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev

You'll need to use the cc release from after 27th of July 2010 which has an implementation for hook_theme(). Now you can override the theming: creativecommons-node-license.tpl.php.

Concerning theming a view field, e.g. views-view-field--license-uri.tpl.php, use something like this:

  $node->nid = $row->nid;
  $node->cc = new creativecommons_license($row->creativecommons_node_license_uri, array());
  $node->cc->format = 'icons';
  print theme('creativecommons_node_license', $node);