From ae97f4d8d4446d32b07efba587b57b741a16cfec Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 Feb 2022 20:51:01 -0800 Subject: containers: update preservation page Mostly adding copy and a KBART holdings page. --- python/fatcat_web/templates/container_view.html | 33 ----- .../templates/container_view_coverage.html | 134 ++++++++++++++------- python/fatcat_web/templates/entity_macros.html | 15 ++- 3 files changed, 101 insertions(+), 81 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index db458589..0432a12d 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -158,39 +158,6 @@ {% endif %} -{# -{%- if container.extra and container.extra.kbart %} -
-Preservation Holdings
- {% for k, v in container.extra.kbart.items() %} - {% if k == "lockss" %} - LOCKSS: - {% elif k == "clockss" %} - CLOCKSS: - {% elif k == "hathitrust" and container.issnl %} - HathiTrust: - {% elif k == "portico" and container.issnl %} - Portico: - {% elif k == "scholarsportal" and container.issnl %} - Scholars Portal: - {% else %} - {{ k }}: - {% endif %} - years - {% 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
diff --git a/python/fatcat_web/templates/container_view_coverage.html b/python/fatcat_web/templates/container_view_coverage.html index 3022c0d9..865723d5 100644 --- a/python/fatcat_web/templates/container_view_coverage.html +++ b/python/fatcat_web/templates/container_view_coverage.html @@ -6,35 +6,79 @@ {% block entity_main %} -
-
-
-
-
{{ "{:,}".format(container._stats.total) }}
-
Known Releases
-
- {% if container._stats.total >= 1 %} - {{ 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 %} -

+
+
+

This page summarizes and visualizes the article-level (or output-level) preservation status for a single publication venue ({{ container.name }}). Fatcat is a preservation-oriented catalog, and metadata is aggregated from many sources. +

However, metadata quality and consistency is difficult at scale and there may be preservation coverage not recorded here, or in some rare cases we may have content incorrectly matched and marked as preserved. Please contact us or submit corrections directly if you find any mistakes or inaccuracies.

{% if container._stats.total >= 1 %} -

-

Preservation Coverage by Year

+
+

Overall Preservation Coverage

+ {{ entity_macros.preservation_bar(container._stats.preservation, extra_class="large") }} +
+
+ {{ entity_macros.preservation_table(container._stats.preservation) }} +
+
+{% endif %} + +
+

Known Holdings Elsewhere

+

This table is based on KBART reports from large, independent, long-term digital preservation projects. We use the start and stop years of fulltext coverage, then count individuals works as included or not on the basis of year alone (not considering volume or issue metadata). These are mostly "dark" archives, with no direct public access to holdings. +

The Keeper's Registry project, currently run by issn.org, is a more authoritative source for aggregated KBART reports, and includes more archives. + {% if container.issnl %} + You can double check the Keeper's entry for this ISSN on portal.issn.org; click through to the "Archival Status" link to see holdings information. + {% endif %} + + {% if container.extra and container.extra.kbart %} + + + + + + + + {% for k, v in container.extra.kbart.items() %} + + + +
ArchiveYear Span(s)
+ {% if k == "lockss" %} + LOCKSS + {% elif k == "clockss" %} + CLOCKSS + {% elif k == "hathitrust" and container.issnl %} + HathiTrust + {% elif k == "portico" and container.issnl %} + Portico + {% elif k == "scholarsportal" and container.issnl %} + Scholars Portal + {% else %} + {{ k }} + {% endif %} + + {% for span in v.year_spans %} + {% if span|length >= 2 -%} + {{ span[0] }} to {{ span[1] -}} + {% elif span|length == 1 -%} + {{ span[0] -}} + {% endif -%} +
+ {% endfor %} + {% if not v.year_spans %}-{% endif %} + {% endfor %} +
+ {% else %} +

No holdings at any other locations recorded. + {% endif %} +

+ +{% if container._stats.total >= 1 %} +
+

Preservation Coverage by Year

+
@@ -45,7 +89,9 @@


-

Preservation Coverage by Volume

+
+

Preservation Coverage by Volume Number

+
@@ -56,23 +102,25 @@


-

Preservation Coverage by Release Type

- - - - - - {% for type_row in container._type_preservation %} - - -
Release Type - Total Count - Coverage -
{{ type_row.release_type }} - {{ "{:,}".format(type_row.total) }} - {{ entity_macros.preservation_bar(type_row) }} - {% endfor %} -
+
+

Preservation Coverage by Release Type

+ + + + + + {% for type_row in container._type_preservation %} + + +
Release Type + Total Count + Coverage +
{{ type_row.release_type }} + {{ "{:,}".format(type_row.total) }} + {{ entity_macros.preservation_bar(type_row) }} + {% endfor %} +
+
{% endif %} {% endblock %} diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index c510a8b9..5f8f6e0a 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -388,31 +388,36 @@ yellow {% set frac_dark = stats.dark/stats.total %} {% set frac_none = stats.none/stats.total %} - +
+
- {{ "{:,}".format(stats.bright) }} + {{ "{:,}".format(stats.bright) }} {{ (frac_bright*100)|round(2,method='ceil') }}% preserved and publicly accessible (bright)
- {{ "{:,}".format(stats.dark) }} + {{ "{:,}".format(stats.dark) }} {{ (frac_dark*100)|round(2,method='ceil') }}% preserved but not publicly accessible (dark) {% if stats.shadows_only %} {% set frac_shadows_only = stats.shadows_only/stats.total %}
- {{ "{:,}".format(stats.shadows_only) }} + {{ "{:,}".format(stats.shadows_only) }} {{ (frac_shadows_only*100)|round(2,method='ceil') }}% only independently preserved in "shadow" libraries {% endif %}
- {{ "{:,}".format(stats.none) }} + {{ "{:,}".format(stats.none) }} {{ (frac_none*100)|round(2,method='ceil') }}% no known independent preservation +
+ {{ "{:,}".format(stats.total) }} + + total
-- cgit v1.2.3