datacite / bolognese

Ruby gem and command-line utility for conversion of DOI metadata
MIT License
40 stars 14 forks source link

CSL-JSON and software #122

Open larsgw opened 3 years ago

larsgw commented 3 years ago

If I am reading https://github.com/datacite/bolognese/blob/master/lib/bolognese/utils.rb correctly, it looks like for CSL(-JSON), software-like types are not mapped, and then defaulting to article.

https://github.com/datacite/bolognese/blob/0f3b1d1f3830399a24e69d0f2262e7ff7c0190c9/lib/bolognese/readers/datacite_reader.rb#L90

The convention in CSL 1.0.1 is for software to be a book with a version, see https://forums.zotero.org/discussion/comment/363537/#Comment_363537. Could this be changed? I would do it myself, but I have not been able to get my local Ruby environment running.

Note: CSL 1.0.2 and onwards support a software type, but I am not sure whether that is fully released yet, see https://github.com/citation-style-language/documentation/issues/138#issuecomment-774514291.

larsgw commented 3 years ago

I'm actually also not seeing a version on the (Zenodo) DOI that I am looking at (https://doi.org/10.5281/zenodo.1476934), even though it has one in the DataCite XML. The DataCite JSON does not seem to have the version, perhaps that's the reason.