Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licence of content is not machine readable #1643

Open
elearningdienst opened this issue Dec 29, 2020 · 0 comments
Open

Licence of content is not machine readable #1643

elearningdienst opened this issue Dec 29, 2020 · 0 comments

Comments

@elearningdienst
Copy link

elearningdienst commented Dec 29, 2020

EDIT: The issues title should be changed in: Set a proper "licence" attribute on HTML. I can't change that.

Hi Folks,

I found a problem with make my contents licence machine readable. The problem is affecting the YAML Metadata and as well HTML code inside of a note.

Setting

My content is licenced with a CC licence (CC BY-SA 4.0). Google and other search engines should classify the content with the right licence, so that it can be found with the extendes search. I tried two possibilities to reach that aim.

Firs thing - YAML

I put in YAML metadata at the beginning of the document in this matter:

---
title: Example Title
description: Some description
tags: OER, YAML, Another Tag, Foo
lang: de-de
license: https://creativecommons.org/licenses/by-sa/4.0/deed.de
---

As I inspect the output with Mozillas webinspector, I see the description, but no other YAML metadata:

grafik

Additionally, the language seems to be wrong (en instead of de) --> I found this will be fixed in next release: #1481

Second thing - licence attribute in a link

As Markdown does not allow attributes, I tried that with pure HTML code, wich should be fine. That setting works e.g. in Wordpress with Markdown support. But unforunately that won't be parsed in the right way by CodiMD. As you see in the Screenshot, the rel="licence" attribute is completley ignored.

<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.de">**CC BY-SA 4.0**</a>

grafik

Example Note: https://codimd.elearningdienst.de/cPKkvZlETsmdR_Q6KbV43Q?both

I think that behaviour is not expected.

System

I'm on a docker employment with release 2.2.0 but with an own Database server.

Possible Solution

The licence in YAML metadata should be parsed correctly in HTML Google and other search engines need something like that to get the licence of content: <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.de">**CC BY-SA 4.0**</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant