From 95024f64d18f165bd262f64153a433120f5b13eb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 26 Sep 2018 23:34:56 -0700 Subject: many tweaks to release_view page --- python/fatcat/templates/release_view.html | 111 +++++++++++++++++------------- 1 file changed, 63 insertions(+), 48 deletions(-) (limited to 'python') diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 96430f5f..46e5f2de 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -23,9 +23,6 @@
{% if release.release_date != None %}

Date (published): {{ release.release_date }}{% endif %} -{% if release.doi != None %} -
DOI:  {{ release.doi }} -{% endif %} {% if release.pmid != None %}
PubMed:  {{ release.pmid }} {% endif %} @@ -35,34 +32,35 @@ {% if release.wikidata_qid != None %}
Wikidata Entity:  {{ release.wikidata_qid }} {% endif %} -{% if release.isbn13 != None %} -
ISBN-13:  {{ release.isbn13 }} -{% endif %} {% if release.language != None %}
Primary Language:  {{ release.language }} (lookup ISO-639 code) {% endif %} -
Fatcat Work:  {{ release.work_id }} -
There may be other versions or releases (pre-prints, publications, etc) -linked to the same work. +
This {{ release.release_status or "unknown-type" }} is a release +(version) of the work  {{ +release.work_id }}. There may be other releases (eg, pre-prints, +formal publications, etc) linked to the same work. {% if container != None %} -

-

-{% if release.release_status == 'published' %} - Published in {{ container.name }} -{% else %} - In {{ release.release_type }} in {{ container.name }} -{% endif %} -

+
+
+ + {% if release.release_status == 'published' %} + Published in {{ container.name }} + {% else %} + Released in {{ release.release_type }} in {{ container.name }} + {% endif %} + {% if release.publisher %} + by {{ release.publisher }} + {% endif %} +
+ {% if container != None and container.issnl != None %}ISSN-L: {{ container.issnl }}
{% endif %} + {% if release.volume != None %}Volume: {{ release.volume }}
{% endif %} + {% if release.issue != None %}Issue: {{ release.issue }}
{% endif %} + {% if release.pages != None %}Page(s): {{ release.pages }}
{% endif %} + {% if release.publisher != None %}Publisher: {{ release.publisher }}
{% endif %} + {% if release.release_status != None %}Release Status: {{ release.release_status }}
{% endif %} + {% if release.release_type != None %}Release Type: {{ release.release_type}}
{% endif %}
-
-{% if container != None and container.issnl != None %}ISSN-L: {{ container.issnl }}
{% endif %} -{% if release.volume != None %}Volume: {{ release.volume }}
{% endif %} -{% if release.issue != None %}Issue: {{ release.issue }}
{% endif %} -{% if release.pages != None %}Page(s): {{ release.pages }}
{% endif %} -{% if release.publisher != None %}Publisher: {{ release.publisher }}
{% endif %} -{% if release.release_status != None %}Release Status: {{ release.release_status }}
{% endif %} -{% if release.release_type != None %}Release Type: {{ release.release_type}}
{% endif %}
{% endif %} @@ -99,7 +97,7 @@ Raw Object: {% for contrib in release.contribs %} - {{ contrib.index }} + {{ contrib.index or '' }} {% if contrib.creator_id %} {{ contrib.raw_name }} {% else %} @@ -110,13 +108,12 @@ Raw Object: {% else %} -

Contributors (authors, etc) not known. +

Contributors (authors, translators, etc) not known. {% endif %}
-

Files

+

Known Files and URLs

{% if files != [] %} -Believed to represent this release... {% for file in files %} -
SHA-1 @@ -126,7 +123,7 @@ Believed to represent this release...
{{ file.sha1}} +
{{ file.sha1[:16] + "..." }} {% if file.size != None %}{{ file.size }}{% endif %} {% if file.mimetype != None %}{{ file.mimetype }}{% endif %} {% for url in file.urls %} @@ -167,32 +164,35 @@ This release citing other releases. {% else %} No Full Text Available {% endif %} -
{% if release.release_type != None %} +
Release Type {{ release.release_type }} -
+
{% endif %} {% if release.doi %} +
+
{% endif %} {% if release.isbn13 != None %} +

ISBN-13  {{ release.isbn13 }} -

+
{% endif %} {% if release.extra.is_oa == True %} +
Open Access
{% elif release.extra.is_oa == False %} Not Open Access -
+
{% endif %} {% if container != None %} +
Container Metadata
{% if container.extra.is_oa == True %} Open Access Publication
@@ -222,28 +222,35 @@ This release citing other releases. ISSN-L:  {{ container.issnl }}
{% endif %} Fatcat:  {{ container.ident }}
-
+
{% endif %} -Lookup Links +
+
Lookup Links
+
{% if container != None and container.issnl != None %} -
SHERPA/RoMEO (journal policies) + SHERPA/RoMEO (journal policies)
{% endif %} {% if container != None and container.doi != None %} -
oaDOI/unpaywall + oaDOI/unpaywall
{% endif %} {% if release.isbn13 != None %} -
Open Library -
Worldcat + Open Library
+ Worldcat
{% else %} -
Worldcat + Worldcat
{% endif %} -
wikidata.org -
CORE.ac.uk -
Semantic Scholar (CS, neuro) -
Google Scholar -
+{% if release.doi %} +Crossref Metadata (via API)
+{% endif %} +wikidata.org
+CORE.ac.uk
+Semantic Scholar (CS, neuro)
+Google Scholar
+
+
+
Fatcat Bits

State is "{{ release.state }}". Revision:
{{ release.revision }} @@ -258,3 +265,11 @@ This release citing other releases.

{% endblock %} + +{% block postscript %} + +{% endblock %} -- cgit v1.2.3