diff options
author | Alexandre Flament <alex@al-f.net> | 2022-09-24 22:11:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 22:11:35 +0200 |
commit | 94c4cc126b16d4cd1653c410df63af4bc0a4e998 (patch) | |
tree | 68c1296b945aa2e824a52ecd4e5d2bd929854bac /searx | |
parent | bfd6f6184911b5f4e7dcc8ee040daa9b790a28cb (diff) | |
parent | e36b023508c8c07a7398cd3f52772bc04d9f8c28 (diff) | |
download | searxng-94c4cc126b16d4cd1653c410df63af4bc0a4e998.tar.gz searxng-94c4cc126b16d4cd1653c410df63af4bc0a4e998.zip |
Merge pull request #1806 from return42/paper-link
fix some leftovers in the science category
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/core.py | 2 | ||||
-rw-r--r-- | searx/templates/simple/result_templates/paper.html | 12 |
2 files changed, 4 insertions, 10 deletions
diff --git a/searx/engines/core.py b/searx/engines/core.py index a997343f2..2a71a216c 100644 --- a/searx/engines/core.py +++ b/searx/engines/core.py @@ -18,7 +18,7 @@ about = { "results": 'JSON', } -categories = ['science'] +categories = ['science', 'scientific publications'] paging = True nb_per_page = 10 diff --git a/searx/templates/simple/result_templates/paper.html b/searx/templates/simple/result_templates/paper.html index 2c9717edd..dd610b903 100644 --- a/searx/templates/simple/result_templates/paper.html +++ b/searx/templates/simple/result_templates/paper.html @@ -30,15 +30,9 @@ {%- if result.content -%}<p class="content">{{- result.content | safe -}}</p>{%- endif -%} {%- if result.comments -%}<p class="comments">{{- result.comments -}}</p>{%- endif -%} <p class="altlink"> - {%- if result.pdf_url -%} - <a href="{{ result.pdf_url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('PDF') }}</a> - {%- endif -%} - {%- if result.html_url -%} - <a href="{{ result.html_url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('HTML') }}</a> - {%- endif -%} - {%- if result.doi %} - <a href="https://www.altmetric.com/details/doi/{{result.doi}}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>Altmetric</a> - {% endif -%} + {%- if result.pdf_url -%}{{ result_link(result.pdf_url, _('PDF')) }}{%- endif -%} + {%- if result.html_url -%}{{ result_link(result.html_url, _('HTML')) }}{%- endif -%} + {%- if result.doi %}{{ result_link('https://www.altmetric.com/details/doi/' + result.doi, 'Altmetric') }}{% endif -%} </p> {{- result_sub_footer(result, proxify) -}} {{- result_footer(result) }} |