forked from zaclys/searxng
Merge pull request #1360 from Popolon/master
get_doi_resolver return doi resolver url instead of doi resolver name
This commit is contained in:
commit
19f18a2638
|
@ -30,7 +30,8 @@ def get_doi_resolver(args, preference_doi_resolver):
|
|||
doi_resolver = args.get('doi_resolver', preference_doi_resolver)[0]
|
||||
if doi_resolver not in doi_resolvers:
|
||||
doi_resolvers = settings['default_doi_resolver']
|
||||
return doi_resolver
|
||||
doi_resolver_url = doi_resolvers[doi_resolver]
|
||||
return doi_resolver_url
|
||||
|
||||
|
||||
def on_result(request, search, result):
|
||||
|
|
|
@ -765,5 +765,6 @@ doi_resolvers :
|
|||
oadoi.org : 'https://oadoi.org/'
|
||||
doi.org : 'https://doi.org/'
|
||||
doai.io : 'http://doai.io/'
|
||||
sci-hub.tw : 'http://sci-hub.tw/'
|
||||
|
||||
default_doi_resolver : 'oadoi.org'
|
||||
|
|
Loading…
Reference in New Issue