diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-24 14:19:51 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-24 14:19:51 +0200 |
commit | 3198c906af6a552b6871e0948659bbf89fae08ed (patch) | |
tree | 97e9c462810ed4fb010c1c4d24da1d2adaba99ea /searx/templates | |
parent | ddd380fc063119e7e6103aaa7db222363cfb2fee (diff) | |
download | searxng-3198c906af6a552b6871e0948659bbf89fae08ed.tar.gz searxng-3198c906af6a552b6871e0948659bbf89fae08ed.zip |
[mod] paper.html: add links to doi resolver
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/result_templates/paper.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/result_templates/paper.html b/searx/templates/simple/result_templates/paper.html index 54704c866..2c9717edd 100644 --- a/searx/templates/simple/result_templates/paper.html +++ b/searx/templates/simple/result_templates/paper.html @@ -1,4 +1,4 @@ -{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %} +{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_link with context %} {{ result_header(result, favicons, image_proxify) -}} <div class="attributes"> @@ -23,7 +23,7 @@ {%- if result.publisher %}<div class="result_publisher"><span>{{ _("Publisher") }}:</span><span>{{ result.publisher }}</span></div>{% endif -%} {%- if result.type %}<div class="result_type"><span>{{ _("Type") }}:</span><span>{{ result.type }}</span></div>{% endif -%} {%- if result.tags %}<div class="result_tags"><span>{{ _("Tags") }}:</span><span>{{ result.tags | join(", ")}}</span></div>{%- endif -%} - {%- if result.doi %}<div class="result_doi"><span>{{ _("DOI") }}:</span><span>{{- result.doi -}}</span></div>{% endif -%} + {%- if result.doi %}<div class="result_doi"><span>{{ _("DOI") }}:</span><span>{{ result_link(doi_resolver + result.doi, result.doi) }}</span></div>{% endif -%} {%- if result.issn %}<div class="result_issn"><span>{{ _("ISSN") }}:</span><span>{{ result.issn | join(", ") }}</span></div>{% endif -%} {%- if result.isbn %}<div class="result_isbn"><span>{{ _("ISBN") }}:</span><span>{{ result.isbn | join(", ") }}</span></div>{% endif -%} </div> |