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/container_view.html | 108 ++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 python/fatcat_web/templates/container_view.html (limited to 'python/fatcat_web/templates/container_view.html') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html new file mode 100644 index 00000000..c2ca7327 --- /dev/null +++ b/python/fatcat_web/templates/container_view.html @@ -0,0 +1,108 @@ +{% extends "base.html" %} +{% block fullbody %} + +
+
+
+

{{ container.name }} +
container {{ container.ident }}

+
+
+ +
+
+
+ +

Publisher: +{% if container.publisher != None %}{{ container.publisher }}{% else %}Unknown{% endif %} +{% if container.coden != None %} +
CODEN?:  {{ container.coden }} +{% endif %} +{% if container.abbrev != None %} +
Abbrev.:  {{ container.abbrev }} +{% endif %} +{% if (container.extra != None) and (container.extra['url'] != None) and (container.extra['url']|length > 0) %} +
Homepage:  {{ container.extra['url'] }} +{% endif %} +{% if container.wikidata_qid != None %} +
Wikidata Entity:  {{ container.wikidata_qid }} +{% endif %} + +{% if container.extra != None %} +

Extra Metadata (raw JSON)

+{% for (key, value) in container.extra.items() %} +{{ key }}: {{ value }}
+{% endfor %} +{% endif %} + + + +
+
+
+ +{% if container.extra.is_oa == True %} +Open Access Publisher +{% elif container.extra.is_oa == False %} +Not Open Access +{% else %} +Unknown OA Status +{% endif %} +
+ +{% if container.issnl != None %} + ISSN-L? +  {{ container.issnl }} + {% if container.extra != None and (container.extra.ISSNp|length > 0) %} +
Print:  {{ container.extra.ISSNp }} + {% endif %} + {% if container.extra != None and (container.extra.ISSNe|length > 0) %} +
Electronic:  {{ container.extra.ISSNe }} + {% endif %} +
+{% endif %} + + +Directory Listings
+{% 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 %} +
+ +Lookup Links +
SHERPA/RoMEO (access policies) +
wikidata.org +
+ +Fatcat Bits +

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

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