summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-13 18:05:52 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-13 18:05:52 -0700
commitb7f2f6eef61a2ad4d6e7473687c3f864e0579b29 (patch)
treece859a0604d1604f0ccd54e09964a2b015ae17c8 /python
parentbcc065ea637fecb80afb5cb1c34f306b19abfc5c (diff)
downloadfatcat-b7f2f6eef61a2ad4d6e7473687c3f864e0579b29.tar.gz
fatcat-b7f2f6eef61a2ad4d6e7473687c3f864e0579b29.zip
rework release view identifiers, subtitle, other new schema
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/release_view.html58
1 files changed, 43 insertions, 15 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 820c2797..66388236 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -79,8 +79,15 @@
<div class="ui stackable mobile reversed grid centered">
<div class="one wide column"></div>
<div class="fifteen wide column">
- <h1 class="ui header"><span itemprop="headline"><span itemprop="name">{{ release.title }}</span></span>
- <span class="sub header"><code>release {{ release.ident }}</code></span></h1>
+ <h1 class="ui header">
+ <span itemprop="headline"><span itemprop="name">{{ release.title }}</span></span>
+ {% if release.subtitle %}
+ <br><span style="font-size: smaller; font-weight: normal;">{{ release.subtitle }}</span>
+ {% endif %}
+ <span class="sub header">
+ <code>release {{ release.ident }}</code>
+ </span>
+ </h1>
<p style="font-size: larger;">
{% if authors != [] %} by {% endif %}
{% for contrib in authors[:12] %}
@@ -113,6 +120,14 @@
</div><div class="content" itemscope itemtype="http://schema.org/Periodical" itemid="#container">
<table class="ui definition single line fixed compact small collapsing unstackable table">
<tbody>
+ {% if release.number != None %}
+ <tr><td class="right aligned">Number</td>
+ <td class="">{{ release.number }}
+ {% endif %}
+ {% if release.version != None %}
+ <tr><td class="right aligned">Version</td>
+ <td class="">{{ release.version }}
+ {% endif %}
{% if container != None and container.issnl != None %}
<tr><td class="right aligned">ISSN-L</td>
<td class="" itemprop="issn">{{ container.issnl }}
@@ -173,6 +188,11 @@
{% else %}
{{ contrib.raw_name or '' }}
{% endif %}
+ {% if contrib.surname %}
+ <code>&nbsp;
+ ({{ contrib.surname }}{% if contrib.given_name %}, {{ contrib.given_name }}{% endif %})
+ </code>
+ {% endif %}
</span><br><i>{{ contrib.role or 'unknown' }}</i>
{% endfor %}
</tbody>
@@ -325,12 +345,8 @@
{% if release.release_type or release.release_stage or release.release_year %}
<div class="ui segment attached">
- {% if release.release_type %}
- <b>Type</b> &nbsp;<code>{{ release.release_type }}</code><br>
- {% endif %}
- {% if release.release_stage %}
- <b>Status</b> &nbsp; <code>{{ release.release_stage or 'unknown' }}</code><br>
- {% endif %}
+ <b>Type</b> &nbsp;<code>{{ release.release_type or 'unknown' }}</code><br>
+ <b>Stage</b> &nbsp; <code>{{ release.release_stage or 'unknown' }}</code><br>
{% if release.release_date %}
<meta itemprop="datePublished" content="{{ release.release_date }}">
<b>Date</b> &nbsp; {{ release.release_date }}<br>
@@ -338,25 +354,37 @@
<meta itemprop="datePublished" content="{{ release.release_year }}">
<b>Year</b> &nbsp; {{ release.release_year }}<br>
{% endif %}
+ {% if release.version %}
+ <b>Version</b> &nbsp; <code>{{ release.version }}</code><br>
+ {% endif %}
</div>
{% endif %}
-{% if release.ext_ids.doi or release.ext_ids.pmid or release.ext_ids.pmcid or release.ext_ids.wikidata_qid %}
+{% if release.number or release.ext_ids.doi or release.ext_ids.pmid or release.ext_ids.pmcid or release.ext_ids.wikidata_qid or release.ext_ids.isbn13 %}
<div class="ui segment attached" style="word-wrap: break-word;">
+{% if release.number %}
+ <b>Number</b> &nbsp;<code>{{ release.number }}</code><br>
+{% endif %}
{% if release.ext_ids.doi %}
- <b>DOI </b> &nbsp;<a href="https://doi.org/{{ release.ext_ids.doi }}" title="{{ release.ext_ids.doi }}" itemprop="sameAs">{{ release.ext_ids.doi }}</a><br>
+ <b>DOI</b> &nbsp;<code><a href="https://doi.org/{{ release.ext_ids.doi }}" title="{{ release.ext_ids.doi }}" itemprop="sameAs">{{ release.ext_ids.doi }}</a></code><br>
+{% endif %}
+{% if release.ext_ids.isbn13 != None %}
+ <b>ISBN-13</b> &nbsp;<code>{{ release.ext_ids.isbn13 }}</code><br>
{% endif %}
{% if release.ext_ids.pmid != None %}
- <b>PubMed</b> <a href="https://www.ncbi.nlm.nih.gov/pubmed/{{ release.ext_ids.pmid }}">&nbsp;<code>{{ release.ext_ids.pmid }}</code></a><br>
+ <b>PubMed</b> &nbsp;<a href="https://www.ncbi.nlm.nih.gov/pubmed/{{ release.ext_ids.pmid }}"><code>{{ release.ext_ids.pmid }}</code></a><br>
{% endif %}
{% if release.ext_ids.pmcid != None %}
- <b>PMC</b> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/{{ release.ext_ids.pmcid }}">&nbsp;<code>{{ release.ext_ids.pmcid }}</code></a><br>
+ <b>PMC</b> &nbsp;<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/{{ release.ext_ids.pmcid }}"><code>{{ release.ext_ids.pmcid }}</code></a><br>
{% endif %}
{% if release.ext_ids.wikidata_qid != None %}
- <b>Wikidata</b> <a href="https://www.wikidata.org/wiki/{{ release.ext_ids.wikidata_qid }}">&nbsp;<code>{{ release.ext_ids.wikidata_qid }}</code></a><br>
+ <b>Wikidata</b> &nbsp;<a href="https://www.wikidata.org/wiki/{{ release.ext_ids.wikidata_qid }}"><code>{{ release.ext_ids.wikidata_qid }}</code></a><br>
{% endif %}
-{% if release.ext_ids.isbn13 != None %}
- <b>ISBN-13 </b> &nbsp;<code>{{ release.ext_ids.isbn13 }}</code>
+{% if release.ext_ids.arxiv != None %}
+ <b>arXiv</b> &nbsp;<a href="https://arxiv.org/abs/{{ release.ext_ids.arxiv }}"><code>{{ release.ext_ids.arxiv }}</code></a><br>
+{% endif %}
+{% if release.ext_ids.ark != None %}
+ <b>ARK</b> &nbsp;<a href="https://n2t.net/{{ release.ext_ids.ark }}"><code>{{ release.ext_ids.ark }}</code></a><br>
{% endif %}
</div>
{% endif %}