summaryrefslogtreecommitdiff
path: root/searx/templates/simple/result_templates/paper.html
blob: 074ad9081845bfc65fe9997fe7c7a6906ac3a588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{% 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">
  {%- if result.date_of_publication %}
    <div>
      <span>{{ _("Published date") }}:</span>
      <span>{{ result.date_of_publication.l10n_date("long", "UI") }}</span>
    </div>
  {% endif -%}
  {%- if result.authors %}
    <div>
      <span>{{ _("Author") }}:</span>
      <span>{{ result.authors | join(", ") }}</span>
    </div>
  {% endif -%}
  {%- if result.journal -%}
    <div>
      <span>{{- _("Journal") }}:</span>
      <span>{{ result.journal -}}
        {%- if result.volume -%}
          &nbsp;{{- result.volume -}}
          {%- if result.number -%}.{{- result.number -}}{%- endif -%}
        {%- endif -%}
        {%- if result.pages -%}&nbsp;{{- result.pages -}}{%- endif -%}
      </span>
    </div>
  {%- endif %}
  {%- if result.editor %}
    <div>
      <span>{{ _("Editor") }}:</span>
      <span>{{ result.editor }}</span>
    </div>
  {% endif -%}
  {%- if result.publisher %}
    <div>
      <span>{{ _("Publisher") }}:</span>
      <span>{{ result.publisher }}</span>
    </div>
  {% endif -%}
  {%- if result.type %}
    <div>
      <span>{{ _("Type") }}:</span>
      <span>{{ result.type }}</span>
    </div>
  {% endif -%}
  {%- if result.tags %}
    <div>
      <span>{{ _("Tags") }}:</span>
      <span>{{ result.tags | join(", ")}}</span>
    </div>
  {%- endif -%}
  {%- if result.doi %}
    <div>
      <span>{{ _("DOI") }}:</span>
      <span>{{ result_link(doi_resolver + result.doi, result.doi) }}</span>
    </div>
  {% endif -%}
  {%- if result.issn %}
    <div>
      <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 -%}
  {%- if result.views %}
    <div>
      <span>{{ _('Views') }}:</span>
      <span>{{ result.views }}</span>
    </div>
  {% endif -%}
</div>
{%- if result.content -%}
  <p class="content">{{- result.content | safe -}}</p>
{%- endif -%}
{%- if result.comments -%}
  <p class="comments">{{- result.comments -}}</p>
{%- endif -%}

{%- if result.metadata %}
  <div class="highlight">{{ result.metadata|safe }}</div>
{% endif -%}

<p class="altlink">
  {%- 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) -}}
{{- result_footer(result) }}