Smithsonian / CCN-Data-Library

The Coastal Carbon Network Data Library: An open-source database featuring carbon data from tidal wetlands around the world
https://serc.si.edu/coastalcarbon
5 stars 2 forks source link

One to one relationship violation between citation and bibliography ID #64

Closed mlonneman closed 10 months ago

mlonneman commented 3 years ago

The following study IDs have multiple citations associated with a single bibliography ID, however, all the hook scripts will have to be revisited to eliminate the redundant key column and standardize assigned publication type. This should be easily fixed in the hook scripts.

jaxinewolfe commented 3 years ago

Few notes:

jaxinewolfe commented 3 years ago

RefManageR::GetBibEntryWithDOI() usually works but can be pretty finicky so we should avoid using it more than we have to in hook scripts. Currently, I put an if statement around the citation-generating workflow that checks to see if the study citation table is already present in the derivative folder. Ideally, we should only have to use the function once per hook script.

jaxinewolfe commented 2 years ago

We should no longer rely on RefManageR::GetBibEntryWithDOI(). There needs to be a more stable method for cataloguing study citations. Here are three options: 1) download Bibtex article citation(s) to the intermediate data folder, read in to curate and output to final folder 2) create the study citation in the curation script and output it using writeBib(as.BibEntry(study_citation)) 3) create a study_citation.csv in the intermediate folder, read it in and output bib file to final folder