Closed mlonneman closed 10 months ago
Few notes:
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.
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
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.