From a24e3a67987e7a070eca562ce1cf30a59c206e06 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 31 Jan 2019 17:10:33 -0800 Subject: tweaks and fixes for new container extra schema --- python/fatcat_web/templates/container_view.html | 44 +++++++++++++++---------- 1 file changed, 27 insertions(+), 17 deletions(-) (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 index 4a175a5d..ffe01185 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -15,14 +15,11 @@

Publisher: {% if container.publisher != None %}{{ container.publisher }}{% else %}Unknown{% 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 }} +{% if (container.extra != None) and (container.extra['urls'] != None) and (container.extra['urls']|length > 0) %} +
Homepage:  {{ container.extra['urls'][0] }} {% endif %} -{% if container.extra != None %} +{% if container.extra %}

Extra Metadata (raw JSON)

{% for (key, value) in container.extra.items() %} {{ key }}: {{ value }}
@@ -38,15 +35,16 @@ Raw Object:
-{% if container.extra.is_oa == True %} +{% if container.es and container.es.is_oa == True %} Open Access Publisher -{% elif container.extra.is_oa == False %} +{% elif container.es and container.es.is_oa == False %} Not Open Access {% else %} Unknown OA Status {% endif %}
+{% if container.issnl != None or container.wikidata_qid != None %} {% if container.issnl != None %} ISSN-L?  {{ container.issnl }} @@ -56,33 +54,45 @@ Raw Object: {% if container.extra != None and container.extra.ISSNe != None and (container.extra.ISSNe|length > 0) %}
Electronic:  {{ container.extra.ISSNe }} {% endif %} +{% endif %} +{% if container.wikidata_qid != None %} +
Wikidata:  {{ container.wikidata_qid }} +{% endif %}
{% endif %} +{% if (container.es and container.es != None) %} Directory Listings
-{% if (container.extra != None) %} - {% if container.extra.in_doaj == True %} + {% if container.es.in_doaj == True %} In DOAJ
- {% elif container.extra.in_doaj == False %} + {% elif container.es.in_doaj == False %} Not in DOAJ
{% endif %} - {% if container.extra.in_road == True %} + + {% if container.es.in_road == True %} In ISSN ROAD
- {% elif container.extra.in_road == False %} + {% elif container.es.in_road == False %} Not in ISSN ROAD
{% endif %} - {% if container.extra.is_kept == True %} + + {% if container.es.in_kbart == True %} In Keepers Registery
- {% elif container.extra.is_kept == False %} + {% elif container.es.in_kbart == False %} Not in Keepers Registry
{% endif %} -{% endif %} + + {% if container.extra and container.extra.sherpa_romeo and container.extra.sherpa_romeo.color %} + SHERPA/RoMEO color: {{ container.extra.sherpa_romeo.color }} + {% endif %}
+{% endif %} Lookup Links
SHERPA/RoMEO (access policies) -
wikidata.org +{% if not container.wikidata_qid %} +
wikidata.org +{% endif %}
Fatcat Bits -- cgit v1.2.3