.oO SearXNG Developer Documentation Oo.
|
Functions | |
extract_doi (url) | |
get_doi_resolver (preferences) | |
on_result (request, _search, result) | |
Variables | |
regex = re.compile(r'10\.\d{4,9}/[^\s]+') | |
name = gettext('Open Access DOI rewrite') | |
description = gettext('Avoid paywalls by redirecting to open-access versions of publications when available') | |
bool | default_on = False |
str | preference_section = 'general' |
searx.plugins.oa_doi_rewrite.extract_doi | ( | url | ) |
Definition at line 18 of file oa_doi_rewrite.py.
Referenced by searx.plugins.oa_doi_rewrite.on_result().
searx.plugins.oa_doi_rewrite.get_doi_resolver | ( | preferences | ) |
Definition at line 29 of file oa_doi_rewrite.py.
searx.plugins.oa_doi_rewrite.on_result | ( | request, | |
_search, | |||
result ) |
Definition at line 37 of file oa_doi_rewrite.py.
References searx.plugins.oa_doi_rewrite.extract_doi().
bool searx.plugins.oa_doi_rewrite.default_on = False |
Definition at line 14 of file oa_doi_rewrite.py.
searx.plugins.oa_doi_rewrite.description = gettext('Avoid paywalls by redirecting to open-access versions of publications when available') |
Definition at line 13 of file oa_doi_rewrite.py.
searx.plugins.oa_doi_rewrite.name = gettext('Open Access DOI rewrite') |
Definition at line 12 of file oa_doi_rewrite.py.
str searx.plugins.oa_doi_rewrite.preference_section = 'general' |
Definition at line 15 of file oa_doi_rewrite.py.
searx.plugins.oa_doi_rewrite.regex = re.compile(r'10\.\d{4,9}/[^\s]+') |
Definition at line 10 of file oa_doi_rewrite.py.