summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-09-24 22:11:35 +0200
committerGitHub <noreply@github.com>2022-09-24 22:11:35 +0200
commit94c4cc126b16d4cd1653c410df63af4bc0a4e998 (patch)
tree68c1296b945aa2e824a52ecd4e5d2bd929854bac /searx
parentbfd6f6184911b5f4e7dcc8ee040daa9b790a28cb (diff)
parente36b023508c8c07a7398cd3f52772bc04d9f8c28 (diff)
downloadsearxng-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.py2
-rw-r--r--searx/templates/simple/result_templates/paper.html12
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) }}