Announcement

  •  » Extensions
  •  » I would like to improve plugin Copyrights but cannot find a way

#1 2016-07-21 10:58:50

tomass
Member
New Zealand
2015-06-16
18

I would like to improve plugin Copyrights but cannot find a way

Hi,
I noticed that plugin Copyrights produces following HTML (example):

Code:

<a target="_blanc" href="http://creativecommons.org/licenses/by/4.0/" title="Creative Commons (BY): This license lets others distribute, remix, tweak, and build upon this work, even commercially, as long as they credit the author for the original creation. This is the most accommodating of Creative Commons licenses. It allows maximum dissemination and use of licensed materials.">Creative Commons (BY)</a>

Cross-checking this with current CC license chooser - https://creativecommons.org/choose/ - this would produce something like:

Code:

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.

In my opinion we should add

Code:

rel="license"

to our code. This requires a simple change in file image.php
Original line:

Code:

<a target="_blanc" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a>

Change to:

Code:

<a target="_blanc" rel="license" href="{$CR_INFO_URL}" title="{$CR_INFO_NAME}: {$CR_INFO_DESCR}">{$CR_INFO_NAME}</a>

I looked around the website but I cannot figure out how to do this change. I didn't even manage to find a way to contact the authors - I always end up on a page saying "You do not have permission to access this page." when I try to follow "Send e-mail" link on their profiles.

Can someone please pass this onto the right people or help me to fix the code myself?
Cheers, Tomas

Offline

 

#2 2016-08-07 10:31:57

tomass
Member
New Zealand
2015-06-16
18

Re: I would like to improve plugin Copyrights but cannot find a way

Hi,
Is anyone able to contact users J.Commelin, Mattias, or ddtddt and bring this thread to their attention? My profile for some reason doesn't let me send them a direct message.
Cheers, Tomas

Offline

 

#3 2016-08-08 07:10:22

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6797

Re: I would like to improve plugin Copyrights but cannot find a way

Hi :-)
ok can you send me email for I change this


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2016-08-08 08:25:08

tomass
Member
New Zealand
2015-06-16
18

Re: I would like to improve plugin Copyrights but cannot find a way

Hi ddtddt,
I am still unable to send you an email. This is the issue I described above. When I click on the email link to any user, not just yourself, I get a page saying:

You do not have permission to access this page.

Posting here on the forum is the only thing my account is allowed for some reason. I have put some detail about the actual improvement also to the original post. I think this would be a quick win. I did it in my local copy anyway, but I thought it would be useful to put it into the code base - in short: adding attribute

Code:

rel="license"

to the HTML anchor tag.

I was also looking at the Creative Commons license Zero, a.k.a. CC0. This is effectively gifting the image into public domain. When I look at the CC chooser for this license, it generates code with little extra complexity. It would be for example good to include country (jurisdiction) where a person applied this license. Supposedly it can have legal consequences to the person using the work (different countries define copyright and neighbouring rights differently). Here is an example:

Code:

<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
  <a rel="license"
     href="http://creativecommons.org/publicdomain/zero/1.0/">
    <img src="https://licensebuttons.net/p/zero/1.0/80x15.png" style="border-style: none;" alt="CC0" />
  </a>
  <br />
  To the extent possible under law,
  <a rel="dct:publisher"
     href="https://tomassobekphotography.co.nz">
    <span property="dct:title">Tomas Sobek</span></a>
  has waived all copyright and related or neighboring rights to
  this work.
This work is published from:
<span property="vcard:Country" datatype="dct:ISO3166"
      content="NZ" about="https://tomassobekphotography.co.nz">
  New Zealand</span>.
</p>

I thought perhaps it could be accommodated in the plugin with two new fields: Free-form flag (Yes/No) and Free-form text, where the text would include the whole HTML code to include on the page. The HTML would have to be obviously shortened in some way, but that could be left as an end-user's exercise. What do you think?
Cheers, Tomas

Offline

 
  •  » Extensions
  •  » I would like to improve plugin Copyrights but cannot find a way

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact