Revision 4505db3fd8a9dc1ba26c36f3fea9accbf02d47d8 authored by Daniel Himmelstein on 05 February 2019, 21:22:22 UTC, committed by GitHub on 05 February 2019, 21:22:22 UTC
Merges https://github.com/manubot/manubot/pull/93
Closes https://github.com/manubot/manubot/issues/92

Cite like @doi:10/98p

* Create function to expand shortDOI: manubot.cite.doi.expand_short_doi.
standardize_citation calls this function to expand shortDOIs to regular DOIs,
such that standardized citations should never be short unless the shortDOI
was invalid.

* Restructure DOI inspection to differentiate between regular and short DOIs.

* Error handling for non-existent shortDOIs.
Use existing error handling rather than introducing error handling
into the standardize_citation mapping stage.

* Cache cite.util.standardize_citation
Prevents standardize_citation from logging the same error twice
if called multiple times. Also can save time if the same citation
is referenced many times.
1 parent 1b3ac66
History
File Mode Size
manubot
media
release-notes
.appveyor.yml -rw-r--r-- 640 bytes
.gitignore -rw-r--r-- 217 bytes
.travis.yml -rw-r--r-- 1.1 KB
LICENSE.md -rw-r--r-- 1.5 KB
MANIFEST.in -rw-r--r-- 27 bytes
README.md -rw-r--r-- 8.9 KB
setup.py -rw-r--r-- 2.0 KB

README.md

back to top