creativecommons / creativecommons.org

Legacy legal code translations and general support issues
MIT License
154 stars 201 forks source link

CC0 tool outputs bad metadata #27

Open Aeva opened 9 years ago

Aeva commented 9 years ago

The author name should be dct:creator, not dct:title.

This is the output of the tool currently:

<p xmlns:dct="http://purl.org/dc/terms/">
  <a rel="license"
     href="http://creativecommons.org/publicdomain/zero/1.0/">
    <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
  </a>
  <br />
  To the extent possible under law,
  <a rel="dct:publisher"
     href="http://work_url">
    <span property="dct:title">author name</span></a>
  has waived all copyright and related or neighboring rights to
  <span property="dct:title">title_of_work</span>.
</p>

Also, to be more consistent with the normal chooser, the 'xmlns:dct="http://purl.org/dc/terms/"' attribute should just appear on every element that uses dct properties, so as to prevent the end user from breaking the metadata so easily if they decide they want a div instead of a paragraph element.

leela52452 commented 4 years ago

w3c validator errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fleela52452.gitlab.io%2F0.html&checkerrorpages=yes&showsource=yes&showoutline=yes

Aeva commented 4 years ago

🙃