kopia lustrzana https://github.com/jupyterhub/repo2docker
Add comment about supporting Zenodo instances not at zenodo.org
rodzic
8fe9c71826
commit
e99c80799d
|
@ -16,6 +16,10 @@ class Zenodo(ContentProvider):
|
||||||
|
|
||||||
def detect(self, doi, ref=None, extra_args=None):
|
def detect(self, doi, ref=None, extra_args=None):
|
||||||
"""Trigger this provider for things that resolve to a Zenodo record"""
|
"""Trigger this provider for things that resolve to a Zenodo record"""
|
||||||
|
# To support Zenodo instances not hosted at zenodo.org we need to
|
||||||
|
# start maintaining a list of known DOI prefixes and their hostname.
|
||||||
|
# We should also change to returning a complete `record_url` that
|
||||||
|
# fetch() can use instead of constructing a URL there
|
||||||
doi = doi.lower()
|
doi = doi.lower()
|
||||||
# 10.5281 is the Zenodo DOI prefix
|
# 10.5281 is the Zenodo DOI prefix
|
||||||
if doi.startswith("10.5281/"):
|
if doi.startswith("10.5281/"):
|
||||||
|
|
Ładowanie…
Reference in New Issue