Add citation
- function to generate citation of dataset
- citation field in summary_metadata.csv
Chatted with Rushi about this, and it looks like the citation is currently generated from the EML content.
It's possible to query crossref for doi's, and there may be some integration we can do to get citation information into a format that is zotero/mendeley/etc friendly.
Citations Crossref endpoint: https://api.crossref.org/works/10.1007/S10040-016-1481-0 R package: https://github.com/ropensci/rcrossref
Other notes:
- LTER uses the same citation format that we use, except with "Date accessed" at the end
- the DataONE citation format is based on some Google? standard
Some discussion about citations in the dataspice repo: https://github.com/ropenscilabs/dataspice/issues/57
their thoughts: An R object could also contain the citation (perhaps as an R bibitem object, which R can already turn into either bibtex or text-based citation). i.e. simply x$citation; or we could have a methods-y interface like citation(x)
Looks like crossref does not work for ADC (and probably all? DataONE doi's). We need to use DataCite instead: https://api.datacite.org/works/10.18739/A2TB0XV0F
also works with the rdatacite package: dc_work(doi = "10.18739/A2TB0XV0F")
Pros:
- date published given without needing to do any logic
- resolvable doi (https://doi.org/...)
- repository dataset page URL
- repository name (Arctic Data Center)
- dataset title
Problems:
- author field unusuable
- possible case sensitivity
Another related issue: https://github.com/NCEAS/metacatui/issues/491
from @rushirajnenuji:

response:
@article{2018,
doi = {10.3390/f9010019},
url = {https://doi.org/10.3390%2Ff9010019},
year = 2018,
month = {jan},
publisher = {{MDPI} {AG}},
volume = {9},
number = {1},
pages = {19},
author = {and},
title = {The Role of Environmental Filtering in Structuring Appalachian Tree Communities: Topographic Influences on Functional Diversity Are Mediated through Soil Characteristics},
journal = {Forests}
}