From a96ca6e8df949f32e7647a285748712a9d842611 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 16:30:32 -0700 Subject: more small view tweaks --- python/fatcat/templates/file_view.html | 16 ++++++++++------ python/fatcat/templates/release_view.html | 18 ++++++++++++++++-- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/python/fatcat/templates/file_view.html b/python/fatcat/templates/file_view.html index 6a53b6c6..e8d81ed7 100644 --- a/python/fatcat/templates/file_view.html +++ b/python/fatcat/templates/file_view.html @@ -13,12 +13,6 @@
-

Size: {{ file.size }} (bytes) - -{% if file.mimetype %} -

File Type: {{ file.mimetype }} -{% endif %} - {% if file.extra != None %}

Additional Metadata (raw JSON):

{{ file.extra }}
@@ -83,6 +77,16 @@ Raw Object:
+{% if file.size != None %} +

Size  {{ file.size }} (bytes) +

+{% endif %} + +{% if file.mimetype != None %} +

File Type  {{ file.mimetype }} +

+{% endif %} + Fatcat Bits

Revision #{{ file.revision }}. State is "{{ file.state }}"
As JSON object via API diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 8c414088..8a0c1e76 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -26,7 +26,7 @@
DOI:  {{ release.doi }} {% endif %} {% if release.isbn13 != None %} -

ISBN-13:  {{ release.isbn13 }} +
ISBN-13:  {{ release.isbn13 }} {% endif %} {% if release.language != None %}
Primary Language:  {{ release.language }} (lookup ISO-639 code) @@ -143,10 +143,19 @@ This release citing other releases. {% endif %}

+{% if release.release_type != None %} +Release Type {{ release.release_type }} +
+{% endif %} + {% if release.doi %} DOI {{ release.doi }}
{% endif %} +{% if release.isbn13 != None %} +

ISBN-13  {{ release.isbn13 }} +

+{% endif %} {% if release.extra.is_oa == True %} Open Access @@ -186,7 +195,6 @@ This release citing other releases. {% endif %}
- Lookup Links {% if container != None and container.issnl != None %} @@ -195,6 +203,12 @@ This release citing other releases. {% if container.doi != None %}
oaDOI/unpaywall {% endif %} +{% if release.isbn13 != None %} +
Open Library +
Worldcat +{% else %} +
Worldcat +{% endif %}
wikidata.org
CORE.ac.uk
Semantic Scholar (CS, neuro) -- cgit v1.2.3