From d9d14dfc213d84e8e281b63ba47ac2c028314a65 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 22:45:46 -0700 Subject: yet more web tweaks --- python/fatcat/templates/container_view.html | 14 +++--- python/fatcat/templates/creator_view.html | 9 ++-- python/fatcat/templates/home.html | 69 +++++++++++++++++++++++------ python/fatcat/templates/release_view.html | 3 +- 4 files changed, 70 insertions(+), 25 deletions(-) diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html index 1b8903b2..db7e0d24 100644 --- a/python/fatcat/templates/container_view.html +++ b/python/fatcat/templates/container_view.html @@ -16,13 +16,13 @@

Publisher: {% if container.publisher != None %}{{ container.publisher }}{% else %}Unknown{% endif %} {% if container.coden != None %} -

CODEN?:  {{ container.coden }} +
CODEN?:  {{ container.coden }} {% endif %} {% if container.abbrev != None %} -

Abbrev.:  {{ container.abbrev }} +
Abbrev.:  {{ container.abbrev }} {% endif %} -{% if (container.extra != None) and (container.extra.url != None) %} -

Homepage:  {{ container.extra.url }} +{% if (container.extra != None) and (container.extra['url'] != None) and (container.extra['url']|length > 0) %} +
Homepage:  {{ container.extra['url'] }} {% endif %} {% if container.extra != None %} @@ -53,10 +53,10 @@ Raw Object: {% if container.issnl != None %} ISSN-L?  {{ container.issnl }} - {% if container.extra != None and container.extra.ISSNp != None %} + {% if container.extra != None and (container.extra.ISSNp|length > 0) %}
Print:  {{ container.extra.ISSNp }} {% endif %} - {% if container.extra != None and container.extra.ISSNe != None %} + {% if container.extra != None and (container.extra.ISSNe|length > 0) %}
Electronic:  {{ container.extra.ISSNe }} {% endif %}

@@ -76,7 +76,7 @@ Raw Object: Not in ISSN ROAD
{% endif %} {% if container.extra.is_kept == True %} - In Keepers Registery
+ In Keepers Registery
{% elif container.extra.is_kept == False %} Not in Keepers Registry
{% endif %} diff --git a/python/fatcat/templates/creator_view.html b/python/fatcat/templates/creator_view.html index 67d5e67b..a8a7cf51 100644 --- a/python/fatcat/templates/creator_view.html +++ b/python/fatcat/templates/creator_view.html @@ -13,8 +13,10 @@
-

Given ("first") name: {{ creator.given_name}} -

Sur ("family"/"last") name: {{ creator.surname }} +

Given ("first") name: + {% if creator.given_name != None %}{{ creator.given_name}}{% else %}None or unknown{% endif %} +

Sur ("family"/"last") name: + {% if creator.surname != None %}{{ creator.surname }}{% else %}None or unknown{% endif %} {% if creator.extra != None %}

Extra Metadata (raw JSON)

@@ -29,7 +31,8 @@

This creator has contributed to:

    {% for release in releases %} -
  • "{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} (status: {{ release.release_status }}). +
  • "{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} + {% if release.release_status != None %}(status: {{ release.release_status }}){% endif %}.
    Fatcat ID: {{ release.ident }} {% endfor %}
diff --git a/python/fatcat/templates/home.html b/python/fatcat/templates/home.html index 9a8a55c8..476127f6 100644 --- a/python/fatcat/templates/home.html +++ b/python/fatcat/templates/home.html @@ -4,8 +4,16 @@

Welcome to fatcat!

-

Current Status: Demo/prototype. No authentication, etc. All edits -will be lost. +

+
Current Status: Prototype
+
    +
  • No authentication or accounts +
  • Any edits will be lost +
  • Most creation/edit forms don't work +
  • Any data was bulk-imported, and may not be up to date +
  • Search results are from Crossref, not local API/database +
+

This is versioned, user-editable catalog of research publications: journal articles, conference proceedings, pre-prints, etc. Features include archival @@ -21,27 +29,60 @@ indexing (aka, linking together of pre-prints and final copies). Entity Actions Examples + Lookup +Release +
journal article, pre-print, book +
published version of a Work + Create + Dummy +
Realistic +

+
+ + +
+
Container +
journal or serial Create - Fake -
Real + Dummy +
Realistic +
+
+ + +
+
+ Creator +
authors, editors, translators - Fake -
Real + Dummy +
Realistic +
+
+ + +
+
File +
specific digital blobs (immutable) - Fake -
Real -Release - Create - Fake -
Real + Dummy +
Realistic +
+
+ + +
+
Work +
for grouping Releases + + Dummy +
Realistic - Fake -
Real
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 07c03a30..45997caa 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -188,7 +188,7 @@ This release citing other releases. Not in ISSN ROAD
{% endif %} {% if container.extra.is_kept == True %} - In Keepers Registery
+ In Keepers Registery
{% elif container.extra.is_kept == False %} Not in Keepers Registry
{% endif %} @@ -196,6 +196,7 @@ This release citing other releases. {% if container.issnl != None %} ISSN-L:  {{ container.issnl }}
{% endif %} + Fatcat:  {{ container.ident }}
{% endif %} -- cgit v1.2.3