From 4032dc1ff11dcbbd4d9453749872b28b7188d45d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Oct 2020 17:56:08 -0700 Subject: coverage: show counts and fraction in tooltip of coverage bars --- python/fatcat_web/templates/entity_macros.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index d5ecd9b6..e8a763d2 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -270,19 +270,19 @@ yellow {% set frac_none = stats.none/stats.total %}
-
+
{# {{ (frac_bright*100)|int }}% #}
-
+
{# {{ (frac_dark*100)|int }}% #}
{% if stats.shadows_only %} - {% set frac_shadows_only = stats.shadows_only/stats.total %} -
+ {% set frac_shadows_only = stats.shadows_only/stats.total %} +
{# {{ (frac_shadows_only*100)|int }}% #}
{% endif %} -
+
{# {{ (frac_none*100)|int }}% #}
-- cgit v1.2.3 From 75b81a18969688c111d1a96c6a58374f46153a68 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Oct 2020 19:51:54 -0700 Subject: container view: fix non-OA empty box --- python/fatcat_web/templates/container_view.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 32c06a53..bdde6715 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -46,11 +46,11 @@
+{% if container._es and container._es.is_oa == True %}
- {% if container._es and container._es.is_oa == True %} - Open Access Publication - {% endif %} + Open Access Publication
+{% endif %} {% if container._stats %}
-- cgit v1.2.3 From 3fb19834758ac077dfc94091db3f591caaf331fb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Oct 2020 20:15:00 -0700 Subject: release view: remove abiguous OA status indicator --- python/fatcat_web/templates/release_view.html | 4 ---- 1 file changed, 4 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 54ead411..7836ef77 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -354,10 +354,6 @@ accessible version. Container Metadata
{% if release.container._es.is_oa == True %} Open Access Publication
-{% elif release.container._es.is_oa == False %} -Not Open Access
-{% else %} -Unknown OA Status
{% endif %} {% if (release.container._es != None) %} {% if release.container._es.in_doaj == True %} -- cgit v1.2.3 From bde55dc5c7dfd1cb8c2863127c4bc3675a22ddfa Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 13 Oct 2020 20:15:34 -0700 Subject: container coverage: add keeper link and KBART holdings list --- python/fatcat_web/templates/container_view_coverage.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'python') diff --git a/python/fatcat_web/templates/container_view_coverage.html b/python/fatcat_web/templates/container_view_coverage.html index 5ec31e73..2da1ab07 100644 --- a/python/fatcat_web/templates/container_view_coverage.html +++ b/python/fatcat_web/templates/container_view_coverage.html @@ -17,6 +17,17 @@ {{ entity_macros.preservation_bar(container._stats.preservation, extra_class="large") }} {{ entity_macros.preservation_table(container._stats.preservation) }} {% endif %} +

+ {% if container.extra and container.extra.kbart %} + There seem to be at least some "dark" preservation holdings in: + {% for k, v in container.extra.kbart.items() %} + {{ k }}{{ ", " if not loop.last }} + {% endfor %} + . + {% endif %} + {% if container.issnl %} + Our metadata may not be up to date, but you can verify preservation holdings in Keepers Registery (click "Archival Status"). + {% endif %}

-- cgit v1.2.3