summaryrefslogtreecommitdiffstats
path: root/python/fatcat/templates/release_view.html
blob: 09a0b97bca7261d542dbd87eb602ac800ef84756 (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
{% extends "base.html" %}
{% block body %}

<h1>{{ release.title }}</h1>
{% for contrib in authors %}
  {% if contrib.creator_id %}
    <a href="/creator/{{contrib.creator_id}}">{{ contrib.raw }}</a> 
  {% else %}
    {{ contrib.raw }}
  {% endif %}
{% endfor %}

<br><br>
<p><b>fatcat Work:</b> <a href="/work/{{ release.work_id }}"><code>{{ release.work_id }}</code></a>
{% if release.doi != None %}
<p><b>DOI:</b> <a href="https://doi.org/{{ release.doi }}"><code>{{ release.doi }}</code></a>
{% endif %}
{% if release.isbn13 != None %}
<p><b>ISBN-13:</b> <code>{{ release.isbn13 }}</code> (<a href="https://openlibrary.org/search?isbn={{ release.isbn13 }}">openlibrary.org</a>)
{% endif %}
{% if release.language != None %}
<p><b>Primary Language:</b> <code>{{ release.language }}</code> (<a href="https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1={{ release.language }}">lookup ISO-639 code</a>)
{% endif %}
{% if release.volume != None %}<p><b>Volume:</b> {{ release.volume }}{% endif %}
{% if release.issue != None %}<p><b>Issue:</b> {{ release.issue }}{% endif %}
{% if release.pages != None %}<p><b>Pages:</b> {{ release.pages }}{% endif %}
{% if release.publisher != None %}<p><b>Publisher:</b> {{ release.publisher }}{% endif %}
{% if release.release_date != None %}<p><b>Date (published):</b> {{ release.release_date }}{% endif %}
{% if release.release_status != None %}<p><b>Publication Status:</b> {{ release.release_status }}{% endif %}
{% if release.release_type != None %}<p><b>Publication Type:</b> {{ release.release_type}}{% endif %}

<p><b>fatcat Release Identifier:</b> <code>{{ release.ident }}</code> (revision #{{ release.revision }}, {{ release.state }})
{% if release.extra != None %}
<p><b>Additional Metadata (raw JSON):</b>
<pre>{{ release.extra }}</pre>
{% endif %}

<!--
Raw JSON Object:
<pre>{{ release }}</pre>
-->

<br>
{% if files != [] %}
<p>Files believed to represent this release:
<ul>
  {% for file in files %}
  <li><a href="/file/{{ file.ident }}">{{ file.sha1}}</a> ({{ file.size }} bytes), at <a href="{{ file.url }}">{{ file.url }}</a>
  {% endfor %}
</ul>
{% else %}
<p>There are no known files associated with this release (you could try other
releases for this work?).
{% endif %}

<br>
{% if release.contribs.size != 0 %}
<p>Full list of contributors (not just authors):
<table>
  <tr><th>Role
      <th>Attribution Order
      <th>Name
  {% for contrib in release.contribs %}
  <tr><td>{{ contrib.role or '' }}
      <td>{{ contrib.index }}
      {% if contrib.creator_id %}
        <td><a href="/creator/{{contrib.creator_id}}">{{ contrib.raw }}</a> 
      {% else %}
        <td>{{ contrib.raw }}
      {% endif %}
  {% endfor %}
</table>
{% else %}
<p>Contributors (authors, etc) not known.
{% endif %}

<br>
{% if release.refs.size != 0 %}
<p>References (this work citing other works):
<ul>
  {% for ref in release.refs %}
    <li>{{ ref.raw }}
    {% if ref.target_release_id != None %}
    (<a href="/release/{{ ref.target_release_id }}">fatcat release</a>)
    {% endif %}
  {% endfor %}
</ul>
{% else %}
<p>No reference list available.
{% endif %}

{% endblock %}