Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_doi_csl_item_zotero functionality #161

Merged
merged 2 commits into from
Oct 28, 2019
Merged

Conversation

dhimmel
Copy link
Member

@dhimmel dhimmel commented Oct 25, 2019

No description provided.

doi_retrievers = [
get_doi_csl_item_crosscite,
get_doi_csl_item_zotero,
]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching the order such that get_doi_csl_item_zotero is first would resolve #158. But in other cases, like for a bioRxiv preprint, the zotero metadata seems to be worse than what we get from crosscite (DOI Content Negotiation).

@dhimmel dhimmel merged commit ddd0995 into manubot:master Oct 28, 2019

def test_get_doi_csl_item_zotero():
"""
As of 2019-10-25, DOI Content Negotiation (i.e. crosscite) encodes the consurtium
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm reviewing old pull requests I missed originally. There's a typo there that could be cleaned up later: consurtium -> consortium

def get_csl_item(identifier: str):
"""
Use a translation-server serach query followed by an export query
to return a CSL Item (the first & only record of a the returned CSL JSON).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: a the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants