aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat/templates/work_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-17 15:39:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-17 15:39:46 -0700
commita4f9a344bb7d80fdb830b764d26eec986a47e4c1 (patch)
treeb7a6c24e57459dfb660d871d0195c6468d307ce8 /python/fatcat/templates/work_view.html
parent2fed334b353a070b7c7d1ec1b38fd826fa866455 (diff)
downloadfatcat-a4f9a344bb7d80fdb830b764d26eec986a47e4c1.tar.gz
fatcat-a4f9a344bb7d80fdb830b764d26eec986a47e4c1.zip
fix broken basic/boring templates
Diffstat (limited to 'python/fatcat/templates/work_view.html')
-rw-r--r--python/fatcat/templates/work_view.html36
1 files changed, 16 insertions, 20 deletions
diff --git a/python/fatcat/templates/work_view.html b/python/fatcat/templates/work_view.html
index 8c5e955d..1a81d456 100644
--- a/python/fatcat/templates/work_view.html
+++ b/python/fatcat/templates/work_view.html
@@ -1,37 +1,33 @@
{% extends "base.html" %}
{% block body %}
-<h1>{{ work.title }}</h1>
+<h1>Work {{ work.ident }}</h1>
-<p>Work type: {{ work.type }}
-<p><a href="/work/{{ work.id }}/history">History</a>
-<p>Contributors:
-{% for c in work.contributors %} {{ c.name }}; {% endfor %}
-
-{% if primary %}
-<h2>Primary Release/Edition</h2>
-<p>Title: {{ primary.title }}
-<p>Date: {{ primary.date }}
-
-{% if primary.container %}
-<p>Container: <a href="/container/{{ primary.container.id }}">{{ primary.container.title }}</a>
+<p><b>fatcat Work Identifier:</b> <code>{{ work.ident }}</code> (revision #{{ work.revision }}, {{ work.state }})
+{% if work.extra != None %}
+<p><b>Additional Metadata (raw JSON):</b>
+<pre>{{ work.extra }}</pre>
{% endif %}
-{% if primary.doi %}
-<p>DOI: <a href="https://dx.doi.org/{{ primary.doi }}">{{ primary.doi }}</a>
-{% endif %}
+<!--
+Raw JSON Object:
+{{ work }}
+-->
-{% else %}
-<p>No primary release
-{% endif %}
+<p>A "work" is just a linking identifier between a set of releases. For
+example, a pre-print and a published article may contain small differences, but
+still reference the same underlying "work".
+
+<br>
{% if releases %}
<ul>
{% for r in releases %}
- <ul><a href="/release/{{ r.id }}">{{ r.title }}</a> ({{ y.date }} - {{ y.release_type }})
+ <ul><a href="/release/{{ r.ident }}">{{ r.title }}</a> ({{ y.release_type }} - {{ y.date }})
{% endfor %}
</ul>
{% else %}
+<p>There are no known releases associated with this work.
{% endif %}
{% endblock %}