paper.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %}
  2. {{ result_header(result, favicons, image_proxify) -}}
  3. <div class="attributes">
  4. {%- if result.publishedDate %}<div class="result_publishedDate"><span>{{ _("Published date") }}:</span><span><time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time></span></div>{% endif -%}
  5. {%- if result.authors %}<div class="result_authors"><span>{{ _("Author") }}:</span><span>{{ result.authors | join(", ") }}</span></div>{% endif -%}
  6. {%- if result.journal -%}
  7. <div class="result_journal">
  8. <span>{{- _("Journal") }}:</span><span>{{ result.journal -}}
  9. {%- if result.volume -%}
  10. &nbsp;{{- result.volume -}}
  11. {%- if result.number -%}
  12. .{{- result.number -}}
  13. {%- endif -%}
  14. {%- endif -%}
  15. {%- if result.pages -%}
  16. &nbsp;{{- result.pages -}}
  17. {%- endif -%}
  18. </span>
  19. </div>
  20. {%- endif %}
  21. {%- if result.editor %}<div class="result_editor"><span>{{ _("Editor") }}:</span><span>{{ result.editor }}</span></div>{% endif -%}
  22. {%- if result.publisher %}<div class="result_publisher"><span>{{ _("Publisher") }}:</span><span>{{ result.publisher }}</span></div>{% endif -%}
  23. {%- if result.type %}<div class="result_type"><span>{{ _("Type") }}:</span><span>{{ result.type }}</span></div>{% endif -%}
  24. {%- if result.tags %}<div class="result_tags"><span>{{ _("Tags") }}:</span><span>{{ result.tags | join(", ")}}</span></div>{%- endif -%}
  25. {%- if result.doi %}<div class="result_doi"><span>{{ _("DOI") }}:</span><span>{{- result.doi -}}</span></div>{% endif -%}
  26. {%- if result.issn %}<div class="result_issn"><span>{{ _("ISSN") }}:</span><span>{{ result.issn | join(", ") }}</span></div>{% endif -%}
  27. {%- if result.isbn %}<div class="result_isbn"><span>{{ _("ISBN") }}:</span><span>{{ result.isbn | join(", ") }}</span></div>{% endif -%}
  28. </div>
  29. {%- if result.content -%}<p class="content">{{- result.content | safe -}}</p>{%- endif -%}
  30. {%- if result.comments -%}<p class="comments">{{- result.comments -}}</p>{%- endif -%}
  31. <p class="altlink">
  32. {%- if result.pdf_url -%}
  33. <a href="{{ result.pdf_url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('PDF') }}</a>
  34. {%- endif -%}
  35. {%- if result.html_url -%}
  36. <a href="{{ result.html_url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('HTML') }}</a>
  37. {%- endif -%}
  38. {%- if result.doi %}
  39. <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>
  40. {% endif -%}
  41. </p>
  42. {{- result_sub_footer(result, proxify) -}}
  43. {{- result_footer(result) }}