summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 21:11:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 21:11:59 -0700
commitf481ce4aa987940f5491107b33d3d0988368e7cd (patch)
tree6b749427212469b283481daa4dd28782de5c3d56 /python
parentbd535251ce3d236f94bdaf1291c3ec2a74c7f951 (diff)
downloadfatcat-f481ce4aa987940f5491107b33d3d0988368e7cd.tar.gz
fatcat-f481ce4aa987940f5491107b33d3d0988368e7cd.zip
release view tweaks from real data
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/templates/release_view.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index 030662f3..03cd7b93 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -35,8 +35,8 @@
<br>There may be other versions or releases (pre-prints, publications, etc)
linked to the same work.
-<div class="ui segment">
{% if container != None %}
+<div class="ui segment">
<div class="ui top attached label">
{% if release.release_status == 'published' %}
Published as a <i>{{ release.release_type }}</i> in <a href="/container/{{ container.ident }}">{{ container.name }}</a>
@@ -44,7 +44,6 @@ linked to the same work.
A <i>{{ release.release_type }}</i> in <a href="/container/{{ container.ident }}">{{ container.name }}</a>
{% endif %}
</div><br>
-{% endif %}
{% if container != None and container.issnl != None %}<b>ISSN-L:</b> {{ container.issnl }}<br>{% endif %}
{% if release.volume != None %}<b>Volume:</b> {{ release.volume }}<br>{% endif %}
{% if release.issue != None %}<b>Issue:</b> {{ release.issue }}<br>{% endif %}
@@ -53,6 +52,7 @@ linked to the same work.
{% if release.release_status != None %}<b>Release Status:</b> {{ release.release_status }}<br>{% endif %}
{% if release.release_type != None %}<b>Release Type:</b> {{ release.release_type}}<br>{% endif %}
</div>
+{% endif %}
{% if release.extra != None %}
@@ -121,14 +121,14 @@ Believed to represent this release...
{% if release.refs.size != 0 %}
<h3>References</h3>
This release citing other releases.
-<ul>
+<ol>
{% for ref in release.refs %}
- <li>{{ ref.raw }}
+ <li>{% if ref.raw != None %}{{ ref.raw }}{% else %}<i>unknown</i>{% endif %}
{% if ref.target_release_id != None %}
(<a href="/release/{{ ref.target_release_id }}">fatcat release</a>)
{% endif %}
{% endfor %}
-</ul>
+</ol>
{% else %}
<p>No reference list available.
{% endif %}
@@ -150,6 +150,7 @@ This release citing other releases.
{% if release.doi %}
<b>DOI </b> <a href="https://doi.org/{{ release.doi }}">{{ release.doi }}</a>
+<br><a href="https://api.crossref.org/v1/works/http://dx.doi.org/{{ release.doi }}">Crossref Metadata</a> (via API)
</div><div class="ui segment attached">
{% endif %}
{% if release.isbn13 != None %}