adiwg / mdEditor

Web application for writing metadata, an ADIwg project
https://www.mdeditor.org
GNU General Public License v3.0
43 stars 24 forks source link

Add built-in support for SPDX licences #120

Open jlblcc opened 6 years ago

jlblcc commented 6 years ago

Might be really helpful to make it easy for folks to add a license constraint. The SPDX license list is a good source for building a minimal citation. Basically, you'd create a constraint and select a license which fills out the relevant constraint sections.

https://github.com/sindresorhus/spdx-license-list

akeister commented 6 years ago

I think this is related to an issue/improvement I'd like to see. The South Atlantic LCC has always added a use constraint to our data that says "This work is licensed under a Creative Commons Attribution 4.0 International License. The indicator data and maps provided are only intended for use as a reference tool for landscape-level conservation planning efforts."

In the past, we did this in ScienceBase by using the What\Rights field. When imported into Databasin, this field then populates to DataBasin in the "Use Constraints" field.

In mdEditor, we have tried populating the Constraints/constraint Type/use/Use Limitations field with our constraint. However, after publishing, this does not populate the ScienceBase What/Rights field.

We would like to be able to use the mdEditor Constraints/constraint Type/use/Use Limitations field to populate the ScienceBase What/Rights field, so that it can populate the Databasin Use Constraint's field. sb_what_rights mdeditor_constraints

jlblcc commented 6 years ago

@akeister This is actually supported, but you'll need to put the license info into a legal constraint, specifically legalConstraint->otherConstraint. See https://github.com/adiwg/mdTranslator/issues/60 for more info on the translation.

akeister commented 6 years ago

Thank you Josh! Will try this out next week.

akeister commented 6 years ago

Josh,

We are still not able to find a way to enter our legal constraint in a way in mdEditor that will populate the "rights" field in ScienceBase. Can you please help me understand what I am doing wrong? Here is my most recent attempt (that does not populate the "rights" field in ScienceBase):

image

akeister commented 6 years ago

I think I have it working now. I missed that we needed to use a "legal" constraint type instead of a "use" constraint type.