From 5ba831d6a88bca617d984593f6710d0c18bae120 Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Fri, 26 Aug 2022 16:07:18 +0000 Subject: Add paper.html result template --- searx/templates/simple/result_templates/paper.html | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 searx/templates/simple/result_templates/paper.html (limited to 'searx/templates') diff --git a/searx/templates/simple/result_templates/paper.html b/searx/templates/simple/result_templates/paper.html new file mode 100644 index 000000000..3ede1b250 --- /dev/null +++ b/searx/templates/simple/result_templates/paper.html @@ -0,0 +1,44 @@ +{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %} + +{{ result_header(result, favicons, image_proxify) -}} +
+ {%- if result.publishedDate %}
{{ _("Published date") }}:
{% endif -%} + {%- if result.authors %}
{{ _("Author") }}:{{ result.authors | join(", ") }}
{% endif -%} + {%- if result.journal -%} +
+ {{- _("Journal") }}:{{ result.journal -}} + {%- if result.volume -%} +  {{- result.volume -}} + {%- if result.number -%} + .{{- result.number -}} + {%- endif -%} + {%- endif -%} + {%- if result.start_page -%} +  {{- result.start_page -}} / {{- result.end_page -}} + {%- endif -%} + +
+ {%- endif %} + {%- if result.editor %}
{{ _("Editor") }}:{{ result.editor }}
{% endif -%} + {%- if result.publisher %}
{{ _("Publisher") }}:{{ result.publisher }}
{% endif -%} + {%- if result.type %}
{{ _("Type") }}:{{ result.type }}
{% endif -%} + {%- if result.tags %}
{{ _("Tags") }}:{{ result.tags | join(", ")}}
{%- endif -%} + {%- if result.doi %}
{{ _("DOI") }}:{{- result.doi -}}
{% endif -%} + {%- if result.issn %}
{{ _("ISSN") }}:{{ result.issn | join(", ") }}
{% endif -%} + {%- if result.isbn %}
{{ _("ISBN") }}:{{ result.isbn | join(", ") }}
{% endif -%} +
+{%- if result.content -%}

{{- result.content | safe -}}

{%- endif -%} +{%- if result.comments -%}

{{- result.comments -}}

{%- endif -%} + +{{- result_sub_footer(result, proxify) -}} +{{- result_footer(result) }} -- cgit v1.2.3 From d6446be38f3f858c09887a89c8fc490a3c300b95 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 23 Sep 2022 19:58:14 +0200 Subject: [mod] science category: various update of about PR 1705 --- searx/templates/simple/result_templates/paper.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/templates') diff --git a/searx/templates/simple/result_templates/paper.html b/searx/templates/simple/result_templates/paper.html index 3ede1b250..54704c866 100644 --- a/searx/templates/simple/result_templates/paper.html +++ b/searx/templates/simple/result_templates/paper.html @@ -13,8 +13,8 @@ .{{- result.number -}} {%- endif -%} {%- endif -%} - {%- if result.start_page -%} -  {{- result.start_page -}} / {{- result.end_page -}} + {%- if result.pages -%} +  {{- result.pages -}} {%- endif -%} -- cgit v1.2.3