aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_references.html
blob: 22ebaddf9b91e2ec5cd39907b3bcf337a832c634 (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
{% set release = entity %}
{% set entity_view = "references" %}
{% set entity_type = "release" %}
{% import "entity_macros.html" as entity_macros %}
{% extends "entity_base.html" %}

{% block entity_main %}

{% if release.refs != None and release.refs.size != 0 %}
<h3>References</h3>
<i>This release citing other releases</i>
{# see https://github.com/Semantic-Org/Semantic-UI/issues/2639 #}
<ol>
  {% for ref in release.refs %}
    <li>
    {% if ref.title %}
      {{ ref.title }}
      {% if ref.container_name %}{{ ref.container_name }}.{% endif %}
      {% if ref.year %}{{ ref.year }}{% endif %}
      {% if ref.locator %}{{ ref.locator }}{% endif %}
    {% elif ref.extra != None %}
      {% if ref.extra.get('author') %}{{ ref.extra['author'] }}.{% endif %}
      {% if ref.extra.get('article-title') %}{{ ref.extra['article-title'] }}.{% endif %}
      {% if ref.container_name %}{{ ref.container_name }}.{% endif %}
      {% if ref.year %}{{ ref.year }}.{% endif %}
      {% if ref.extra.unstructured %}{{ ref.extra.unstructured }}{% endif %}
    {% else %}
      <i>unknown</i>
    {% endif %}
    {% if ref.target_release_id != None %}
      (<a href="/release/{{ ref.target_release_id }}">fatcat entry</a>)
    {% endif %}
    {% if ref.extra != None and ref.extra.doi %}
      (DOI: <a href="/release/lookup?doi={{ ref.extra.doi }}">{{ ref.extra.doi }}</a>)
    {% endif %}
    </li>
  {% endfor %}
</ol>
{% else %}
<p>No reference list available.
{% endif %}

{% endblock %}