From fb4a5f87a22ce33bc46a99df800cb239aca47e33 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 16:14:49 -0700 Subject: bunch more view updates --- python/fatcat/templates/container_view.html | 20 ++-- python/fatcat/templates/creator_view.html | 71 ++++++++++---- python/fatcat/templates/file_view.html | 85 +++++++++++++--- python/fatcat/templates/release_view.html | 146 +++++++++++++++++++--------- python/fatcat/templates/work_view.html | 47 +++++++-- 5 files changed, 276 insertions(+), 93 deletions(-) diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html index 47a6dcbf..4aae2f0d 100644 --- a/python/fatcat/templates/container_view.html +++ b/python/fatcat/templates/container_view.html @@ -16,22 +16,22 @@

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 }} +

Homepage:  {{ container.extra.url }} {% endif %} {% if container.extra != None %}

Additional Metadata (raw JSON): -{{ container.extra }}{{ container.extra }} {% endif %} @@ -49,12 +49,12 @@ Raw JSON Object: {% if container.issnl != None %} ISSN-L? - {{ container.issnl }} +  {{ container.issnl }} {% if container.extra != None and container.extra.ISSNp != None %} -
Print: {{ container.extra.ISSNp }} +
Print:  {{ container.extra.ISSNp }} {% endif %} {% if container.extra != None and container.extra.ISSNe != None %} -
Electronic: {{ container.extra.ISSNe }} +
Electronic:  {{ container.extra.ISSNe }} {% endif %}

{% endif %} @@ -82,7 +82,7 @@ Raw JSON Object: Lookup Links
SHERPA/RoMEO (access policies) -
wikidata.org +
wikidata.org
Fatcat Bits diff --git a/python/fatcat/templates/creator_view.html b/python/fatcat/templates/creator_view.html index 24dfdc56..97708863 100644 --- a/python/fatcat/templates/creator_view.html +++ b/python/fatcat/templates/creator_view.html @@ -1,37 +1,72 @@ {% extends "base.html" %} -{% block body %} +{% block fullbody %} -

{{ creator.display_name }}

+
+
+
+

{{ creator.display_name }} +
creator {{ creator.ident }}

+
+
+ +
+
+

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

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

ORCID?: -{% if creator.orcid != None %} - {{ creator.orcid }} -{% else %} - unknown -{% endif %} -

fatcat Creator Identifier: {{ creator.ident }} (revision #{{ creator.revision }}, {{ creator.state }}) {% if creator.extra != None %}

Additional Metadata (raw JSON): -

{{ creator.extra }}
{{ creator.extra }} {% endif %} - - +
+

Releases

{% if releases != [] %} -Releases this creator has contributed to: +

This creator has contributed to:

    {% for release in releases %} -
  • "{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} as {{ release.release_status }}. -
    {{ release.ident }} +
  • "{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} (status: {{ release.release_status }}). +
    Fatcat ID: {{ release.ident }} {% endfor %}
{% else %} This creator has not contributed to any releases. {% endif %} + + +
+
+
+ +{% if creator.orcid != None %} + ORCID?: +  {{ creator.orcid }} +
+{% endif %} + +Lookup Links +
wikidata.org +
VIAF +
dblp (CS) +
Google Scholar +
+ +Fatcat Bits +

Revision #{{ creator.revision }}. State is "{{ creator.state }}" +
As JSON object via API + +

+ + +
+
+ {% endblock %} diff --git a/python/fatcat/templates/file_view.html b/python/fatcat/templates/file_view.html index f45c9238..6a53b6c6 100644 --- a/python/fatcat/templates/file_view.html +++ b/python/fatcat/templates/file_view.html @@ -1,27 +1,30 @@ {% extends "base.html" %} -{% block body %} +{% block fullbody %} -

File {{ file.ident }}

+
+
+
+

+
file {{ file.ident }}

+
+
+ +
+
+

Size: {{ file.size }} (bytes) -

SHA-1 checksum: {{ file.sha1 }} -{% if file.sha256 != None %} -

SHA-256 checksum: {{ file.sha256 }} -{% endif %} -{% if file.md5 != None %} -

MD5 checksum: {{ file.md5 }} + +{% if file.mimetype %} +

File Type: {{ file.mimetype }} {% endif %} -

fatcat File Identifier: {{ file.ident }} (revision #{{ file.revision }}, {{ file.state }}) + {% if file.extra != None %}

Additional Metadata (raw JSON):

{{ file.extra }}
{% endif %} - - +

Releases

{% if file.releases != None %}

Releases associated with this file:

    @@ -33,13 +36,65 @@ Raw JSON Object: This file is not associated with any fatcat release. {% endif %} +

    URLs

    {% if file.url != None %}

    Known locations of this file:

    {% else %} No known public URL, mirror, or archive for this file. {% endif %} +

    Checksums

    + + + + {% if file.sha1 != None %} +
    Algorithm + Value +
    SHA-1 + {{ file.sha1 }} + {% endif %} + {% if file.sha1 != None %} +
    SHA-256 + {{ file.sha256 }} + {% endif %} + {% if file.md5!= None %} +
    MD5 + {{ file.md5 }} + {% endif %} +
    + + + +
+
+ +{% if file.url != None %} +Download File +{% else %} +No Download Available +{% endif %} + +
+ +Fatcat Bits +

Revision #{{ file.revision }}. State is "{{ file.state }}" +
As JSON object via API + +

+ + +
+
+ + {% endblock %} diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html index 4d67644d..8c414088 100644 --- a/python/fatcat/templates/release_view.html +++ b/python/fatcat/templates/release_view.html @@ -3,49 +3,57 @@
-
+
+

{{ release.title }} +
release {{ release.ident }}

+ {% if authors != [] %} by {% endif %} + {% for contrib in authors %} + {% if contrib.creator_id %} + {{ contrib.raw }}{% if not loop.last %}, {% endif %} + {% else %} + {% if contrib.raw != None %}{{ contrib.raw }}{% else %}Unknown{% endif %}{% if not loop.last %}, {% endif %} + {% endif %} + {% endfor %} +
+
-

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

-{% for contrib in authors %} - {% if contrib.creator_id %} - {{ contrib.raw }} - {% else %} - {{ contrib.raw }} - {% endif %} -{% endfor %} +
+
+
-

{% if release.release_date != None %}

Date (published): {{ release.release_date }}{% endif %} {% if release.doi != None %} -
DOI: {{ release.doi }} +
DOI:  {{ release.doi }} +{% endif %} +{% if release.isbn13 != None %} +

ISBN-13:  {{ release.isbn13 }} {% endif %} {% if release.language != None %} -
Primary Language: {{ release.language }} (lookup ISO-639 code) +
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.

-{% if container and release.release_status == 'published' %} -
-Published as a {{ release.release_type }} in {{ container.name }} -{% if container.extra.is_oa %} (open access!){% endif %} -
+{% if container != None %} +
+ {% if release.release_status == 'published' %} + Published as a {{ release.release_type }} in {{ container.name }} + {% else %} + A {{ release.release_type }} in {{ container.name }} + {% endif %} +

{% endif %} -{% if 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 %}
-There may be other versions or releases (pre-prints, publications, etc) linked -to the same work: -{{ release.work_id }} -{% if release.isbn13 != None %} -

ISBN-13: {{ release.isbn13 }} (openlibrary.org) -{% endif %} {% if release.extra != None %}

Additional Metadata (raw JSON): @@ -53,8 +61,8 @@ to the same work: {% endif %}
@@ -128,29 +136,79 @@ This release citing other releases.

-Download Full Text +{% if files != [] and files[0].url != None %} +Download Full Text +{% else %} +No Full Text Available +{% endif %}
-A Bunch Of Other Content... +{% if release.doi %} +DOI {{ release.doi }} +
+{% endif %} - +{% if release.extra.is_oa == True %} + Open Access +
+{% elif release.extra.is_oa == False %} + Not Open Access +
+{% endif %} -Over here +Container Metadata
+{% if container.extra.is_oa == True %} +Open Access Publication
+{% elif container.extra.is_oa == False %} +Not Open Access
+{% else %} +Unknown OA Status
+{% endif %} +{% if (container.extra != None) %} + {% if container.extra.in_doaj == True %} + In DOAJ
+ {% elif container.extra.in_doaj == False %} + Not in DOAJ
+ {% endif %} + {% if container.extra.in_road == True %} + In ISSN ROAD
+ {% elif container.extra.in_road == False %} + Not in ISSN ROAD
+ {% endif %} + {% if container.extra.is_kept == True %} + In Keepers Registery
+ {% elif container.extra.is_kept == False %} + Not in Keepers Registry
+ {% endif %} +{% endif %} +{% if container.issnl != None %} + ISSN-L:  {{ container.issnl }}
+{% endif %}
-DOI {{ release.doi }} + + +Lookup Links +{% if container != None and container.issnl != None %} +
SHERPA/RoMEO (journal policies) +{% endif %} +{% if container.doi != None %} +
oaDOI/unpaywall +{% endif %} +
wikidata.org +
CORE.ac.uk +
Semantic Scholar (CS, neuro) +
Google Scholar
+ Fatcat Bits

Revision #{{ release.revision }}. State is "{{ release.state }}" +
As JSON object via API

diff --git a/python/fatcat/templates/work_view.html b/python/fatcat/templates/work_view.html index 8fd384d6..6fe900bf 100644 --- a/python/fatcat/templates/work_view.html +++ b/python/fatcat/templates/work_view.html @@ -1,17 +1,26 @@ {% extends "base.html" %} -{% block body %} +{% block fullbody %} -

Work {{ work.ident }}

+
+
+
+

+
work {{ work.ident }}

+
+
+ +
+
+
-

fatcat Work Identifier: {{ work.ident }} (revision #{{ work.revision }}, {{ work.state }}) {% if work.extra != None %}

Additional Metadata (raw JSON): -

{{ work.extra }}
{{ work.extra }} {% endif %}

A "work" is just a linking identifier between a set of releases. For @@ -31,4 +40,30 @@ still reference the same underlying "work".

There are no known releases associated with this work. {% endif %} + +

+
+
+ +Work Type: +{% if work.work_type != None %} + {{ work.work_type }} +{% else %} +unkonwn +{% endif %} +
+ +Fatcat Bits +

Revision #{{ work.revision }}. State is "{{ work.state }}" +
As JSON object via API + +

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