From b7f2f6eef61a2ad4d6e7473687c3f864e0579b29 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 13 May 2019 18:05:52 -0700 Subject: rework release view identifiers, subtitle, other new schema --- python/fatcat_web/templates/release_view.html | 58 ++++++++++++++++++++------- 1 file changed, 43 insertions(+), 15 deletions(-) (limited to 'python/fatcat_web/templates/release_view.html') 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 @@
-

{{ release.title }} - release {{ release.ident }}

+

+ {{ release.title }} + {% if release.subtitle %} +
{{ release.subtitle }} + {% endif %} + + release {{ release.ident }} + +

{% if authors != [] %} by {% endif %} {% for contrib in authors[:12] %} @@ -113,6 +120,14 @@

+ {% if release.number != None %} + + + @@ -325,12 +345,8 @@ {% if release.release_type or release.release_stage or release.release_year %}
- {% if release.release_type %} - Type  {{ release.release_type }}
- {% endif %} - {% if release.release_stage %} - Status   {{ release.release_stage or 'unknown' }}
- {% endif %} + Type  {{ release.release_type or 'unknown' }}
+ Stage   {{ release.release_stage or 'unknown' }}
{% if release.release_date %} Date   {{ release.release_date }}
@@ -338,25 +354,37 @@ Year   {{ release.release_year }}
{% endif %} + {% if release.version %} + Version   {{ release.version }}
+ {% endif %}
{% 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 %}
+{% if release.number %} + Number  {{ release.number }}
+{% endif %} {% if release.ext_ids.doi %} - DOI  {{ release.ext_ids.doi }}
+ DOI  {{ release.ext_ids.doi }}
+{% endif %} +{% if release.ext_ids.isbn13 != None %} + ISBN-13  {{ release.ext_ids.isbn13 }}
{% endif %} {% if release.ext_ids.pmid != None %} - PubMed  {{ release.ext_ids.pmid }}
+ PubMed  {{ release.ext_ids.pmid }}
{% endif %} {% if release.ext_ids.pmcid != None %} - PMC  {{ release.ext_ids.pmcid }}
+ PMC  {{ release.ext_ids.pmcid }}
{% endif %} {% if release.ext_ids.wikidata_qid != None %} - Wikidata  {{ release.ext_ids.wikidata_qid }}
+ Wikidata  {{ release.ext_ids.wikidata_qid }}
{% endif %} -{% if release.ext_ids.isbn13 != None %} - ISBN-13  {{ release.ext_ids.isbn13 }} +{% if release.ext_ids.arxiv != None %} + arXiv  {{ release.ext_ids.arxiv }}
+{% endif %} +{% if release.ext_ids.ark != None %} + ARK  {{ release.ext_ids.ark }}
{% endif %}
{% endif %} -- cgit v1.2.3
Number{{ release.number }} + {% endif %} + {% if release.version != None %} +
Version{{ release.version }} + {% endif %} {% if container != None and container.issnl != None %}
ISSN-L {{ container.issnl }} @@ -173,6 +188,11 @@ {% else %} {{ contrib.raw_name or '' }} {% endif %} + {% if contrib.surname %} +   + ({{ contrib.surname }}{% if contrib.given_name %}, {{ contrib.given_name }}{% endif %}) + + {% endif %}
{{ contrib.role or 'unknown' }} {% endfor %}