summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Elashri <muhammadelashri@gmail.com>2022-09-27 14:03:12 +0000
committerGitHub <noreply@github.com>2022-09-27 14:03:12 +0000
commit212c98c9f55dc602f57b4f01a73192450e9782b7 (patch)
treef30e1914601843df6919d64606b8f548c2918daa
parent5832c70680580f6acd521f09548bc2102c187791 (diff)
parent94c4cc126b16d4cd1653c410df63af4bc0a4e998 (diff)
downloadsearxng-212c98c9f55dc602f57b4f01a73192450e9782b7.tar.gz
searxng-212c98c9f55dc602f57b4f01a73192450e9782b7.zip
Merge branch 'searxng:master' into master
-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) }}