[cc-devel] Creative Commons Image using web service api

Wendy J Bossons wbossons at MIT.EDU
Wed Mar 17 15:10:21 EDT 2010


That's correct and yeah! -- Unfortunately I sent a localhost version of a handle. If I had used a production level url, it would actually have been browseable!

http://hdl.handle.net/1721.1/39126

<http://hdl.handle.net/1721.1/39126>
..\Wendy
Wendy Bossons
Web Developer
MIT Libraries
Technology Research & Development
77 Massachusetts Avenue
Cambridge, MA 02139-4307
617-253-0770
wbossons at mit.edu<mailto:wbossons at mit.edu>


On Mar 17, 2010, at 3:01 PM, Nathan Yergler wrote:

That looks like valid RDFa for expressing the license of
http://hdl.handle.net/123456789/3.

NRY

On Wed, Mar 17, 2010 at 11:01 AM, Wendy J Bossons <wbossons at mit.edu<mailto:wbossons at mit.edu>> wrote:
Thank you John for the information . . . a further request for feedback is
the choice of rdfa for the content in the MIT repository.
I read the CCRel document by Hal Abelson, et al., I came up with the
solution below for embedding RDFa . . . the example is for a by license.
I'm primarily interested in some feedback about the form of the RDFa . . .
In the below, the subject is about="http://hdl.handle.net . . .",  the
property is rel="license" and the value is the
href="http://creativecommons.org....".

<div about=”http://hdl.handle.net/123456789/3”>

<a rel="license" href="http://creativecommons.org/licenses/by/3.0/us/"><img
alt="Creative Commons License" style="border-width:0"
src="http://i.creativecommons.org/l/by/3.0/us/88x31.png"/></a>

</div>


..\Wendy
Wendy Bossons
Web Developer
MIT Libraries
Technology Research & Development
77 Massachusetts Avenue
Cambridge, MA 02139-4307
617-253-0770
wbossons at mit.edu<mailto:wbossons at mit.edu>


On Mar 17, 2010, at 12:39 PM, John Doig wrote:

Hi Wendy,

There are currently no API methods that deal with the license badges solely,
but I think I have a straightforward suggestion for you.

Here are the URLS to all of the images...
http://i.creativecommons.org/l/%license-code%/3.0/88x31.png
http://i.creativecommons.org/l/zero/1.0/88x31.png
http://i.creativecommons.org/l/publicdomain/88x31.png

By iterating over the list of license codes you can generate the URL for
each license. CC0 and Public Domain will be edge cases however, and will
need to be hard codes in your repository.

Note that you can replace "88x31" with "80x15" in any of the above URLs for
a slimmer, smaller icon.

As for a page discussing each license in detail:
http://creativecommons.org/about/licenses/.

Regards,
John Doig

On 03/17/2010 08:52 AM, Wendy J Bossons wrote:

Hello,

I recently integrated the CC license api into our repository. In order for
the project to be completed, I want to add an image to the subject page that
represents Creative Commons -- a nice non-specific license image which will
have a url pointing at the creative commons site page where the license type
is described. My other option is to programmatically derive the image for
each license type. Regarding the latter, is there a pattern/algorithm to
follow to build the image url?

Thanks!

..\Wendy
Wendy Bossons
Web Developer
MIT Libraries
Technology Research & Development
Building E25-131
77 Massachusetts Ave.
Cambridge, MA 02141-4307
Phone 617-253-0770
Fax     617-253-4462
wbossons at mit.edu<mailto:wbossons at mit.edu>
http://libraries.mit.edu



_______________________________________________
cc-devel mailing list
cc-devel at lists.ibiblio.org<mailto:cc-devel at lists.ibiblio.org>
http://lists.ibiblio.org/mailman/listinfo/cc-devel


_______________________________________________
cc-devel mailing list
cc-devel at lists.ibiblio.org<mailto:cc-devel at lists.ibiblio.org>
http://lists.ibiblio.org/mailman/listinfo/cc-devel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20100317/661ac9d1/attachment.html 


More information about the cc-devel mailing list