Skip to content

Commit f749d2c

Browse files
committed
Moving files around for package development in publications.
1 parent c6253a8 commit f749d2c

File tree

3 files changed

+3
-169
lines changed

3 files changed

+3
-169
lines changed

Proposals/publications/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

Proposals/publications/update_doi_bibtex.py

Lines changed: 0 additions & 162 deletions
This file was deleted.

Proposals/publications/update_publications.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ For publications the primary concern is that DOIs are unique. This is the nature
3636
ALTER TABLE ndb.publications ADD CONSTRAINT publications_doi_unique UNIQUE(doi);
3737
```
3838

39+
This is ideal, however, there are duplicated publications in Neotoma where we can reasonably expect to find duplicated DOIs. Until this issue is resolved, we cannot implement a unique constraint on the DOIs.
40+
3941
### Ensuring Proper Metadata
4042

4143
The CrossRef API provides a source of publisher "validated" metadata. We put validated in quotes because the validation is up to the publisher. We have found instances in the past where publishers provide incomplete metadata, or alternate formatting for test strings (for example, failing to capitalize specific epithets). Regardless, the CrossRef metadata form the basis for updating and improving our internal metadata.
4244

4345
In the script `add_bibtex.py` in this folder we see the function `check_crossref()` which calls out using the title string for a paper. By calling the `works` endpoint of the CrossRef API we can either call for a DOI or call with a `title` query. Here we have pulled the title from the citation string and passed it into the `cite_object` variable:
4446

4547
```py
46-
def check_crossref(cite_object:str):
48+
def check_crossref(cite_object:str) -> dict:
4749
url = 'https://api.crossref.org/works'
4850
url_call = requests.get(url,
4951
headers = {'Accept': 'application/json',

0 commit comments

Comments
 (0)