From a9e135af76362b27b39e0c33a308332188b41d70 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 26 Feb 2021 10:30:25 -0800 Subject: web: container bar improvements (eg, kbart holdings) --- python/fatcat_web/templates/container_view.html | 35 +++++++++++++++++++------ 1 file changed, 27 insertions(+), 8 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 bdde6715..128741e5 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -46,14 +46,8 @@
-{% if container._es and container._es.is_oa == True %} -
- Open Access Publication -
-{% endif %} - {% if container._stats %} -
+
{{ "{:,}".format(container._stats.total) }}
@@ -61,6 +55,13 @@
+ +{% if container._es and container._es.is_oa == True %} +
+ Open Access Publication +
+ +{% endif %} {% if container._stats.total >= 1 %}
Preservation Status
@@ -122,7 +123,8 @@ {% endif %} {% if container._es.any_kbart == True %} - In Keepers Registery
+ In Keepers Registery +
{% elif container._es.any_kbart == False %} Not in Keepers Registry
{% endif %} @@ -133,6 +135,23 @@
{% endif %} +
+Preservation Holdings
+{%- if container.extra and container.extra.kbart %} + {% for k, v in container.extra.kbart.items() %} +

{{ k }}: + {% for span in v.year_spans %} + {% if span|length >= 2 %} + {{ span[0] }}-{{ span[1] }} + {% elif span|length == 1 %} + {{ span[0] }} + {% endif %} + {{ ", " if not loop.last }} + {% endfor %} + {% endfor %} +{% endif %} +

+
Lookup Links
-- cgit v1.2.3