From b03bfc8f3fd84141738f775b273a99850d78e1ff Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Nov 2018 23:18:56 -0800 Subject: refactor python modules --- python/fatcat_web/templates/creator_view.html | 82 +++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 python/fatcat_web/templates/creator_view.html (limited to 'python/fatcat_web/templates/creator_view.html') diff --git a/python/fatcat_web/templates/creator_view.html b/python/fatcat_web/templates/creator_view.html new file mode 100644 index 00000000..2ce01fb6 --- /dev/null +++ b/python/fatcat_web/templates/creator_view.html @@ -0,0 +1,82 @@ +{% extends "base.html" %} +{% block fullbody %} + +
+
+
+

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

+
+
+ +
+
+
+ +

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.wikidata_qid != None %} +
Wikidata Entity:  {{ creator.wikidata_qid }} +{% endif %} +{% if creator.extra != None %} +

Extra Metadata (raw JSON)

+{% for (key, value) in creator.extra.items() %} +{{ key }}: {{ value }}
+{% endfor %} +{% endif %} + +
+

Releases

+{% if releases != [] %} +

This creator has contributed to: +

    + {% for release in releases %} +
  • "{{ 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 %} +
+{% 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 +

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

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