mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 04:41:00 +00:00
return doi resolver url instead of doi resolver name
This commit is contained in:
parent
d51732c0e5
commit
3a160d3aed
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue