mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 01:52:21 +02:00
[enh] oa_doi_rewrite plugin broadens doai_rewrite
This commit is contained in:
parent
7de8b43eb2
commit
575159b194
6 changed files with 59 additions and 6 deletions
|
@ -15,6 +15,7 @@ LANGUAGE_CODES = [l[0] for l in languages]
|
|||
LANGUAGE_CODES.append('all')
|
||||
DISABLED = 0
|
||||
ENABLED = 1
|
||||
DOI_RESOLVERS = [r for r in settings['doi_resolvers'].keys()]
|
||||
|
||||
|
||||
class MissingArgumentException(Exception):
|
||||
|
@ -266,7 +267,9 @@ class Preferences(object):
|
|||
'results_on_new_tab': MapSetting(False, map={'0': False,
|
||||
'1': True,
|
||||
'False': False,
|
||||
'True': True})}
|
||||
'True': True}),
|
||||
'doi_resolver': MultipleChoiceSetting(['oadoi.org'], choices=DOI_RESOLVERS),
|
||||
}
|
||||
|
||||
self.engines = EnginesSetting('engines', choices=engines)
|
||||
self.plugins = PluginsSetting('plugins', choices=plugins)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue