mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] default_doi_resolver in preferences
Instead of a hard-coded `oadoi.org` default, use the default value from
`settings.yml`.
Fix an issue in the themes: The replacement 'current_doi_resolver' contains the
doi_resolver_url, not the name of the DOI resolver. Compare return value of::
searx.plugins.oa_doi_rewrite.get_doi_resolver(...)
Fix a typo in `get_doi_resolver(..)`: suggested by @kvch:
*L32 should set doi_resolver not doi_resolvers*
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
76a5305ee2
commit
ebfd0eb2b7
5 changed files with 6 additions and 6 deletions
|
|
@ -1395,4 +1395,4 @@ doi_resolvers :
|
|||
doai.io : 'https://dissem.in/'
|
||||
sci-hub.tw : 'https://sci-hub.tw/'
|
||||
|
||||
default_doi_resolver : 'sci-hub.tw'
|
||||
default_doi_resolver : 'oadoi.org'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue