From 5bbb493b94a63d66151a53837aa66f0d986df497 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 24 Jul 2020 20:02:05 -0700 Subject: first iteration of flexible search coverage --- python/fatcat_web/templates/coverage_search.html | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 python/fatcat_web/templates/coverage_search.html (limited to 'python/fatcat_web/templates/coverage_search.html') diff --git a/python/fatcat_web/templates/coverage_search.html b/python/fatcat_web/templates/coverage_search.html new file mode 100644 index 00000000..c730ef9d --- /dev/null +++ b/python/fatcat_web/templates/coverage_search.html @@ -0,0 +1,81 @@ +{% import "entity_macros.html" as entity_macros %} +{% extends "base.html" %} + +{% block title %} +{% if query.q %} + Search: {{ query.q }} +{% else %} + Coverage Search +{% endif %} +{% endblock %} + +{% block fullmain %} + +
+
+

Preservation Coverage Visualizer

+
+
+
+ + +
+
Can also search for releases (eg, individual papers) or containers (eg, journals). +
+
+
+
+ +
+ +{% if coverage_stats != None %} +
+
+
+
+
{{ "{:,}".format(coverage_stats.total) }}
+
Known Releases
+
+ {% if coverage_stats.total >= 1 %} + {{ entity_macros.preservation_bar(coverage_stats.preservation, extra_class="large") }} + {{ entity_macros.preservation_table(coverage_stats.preservation) }} + {% endif %} +
+
+
+{% endif %} + +{% if year_histogram_svg != None %} +

+

Perpetual Access Coverage by Year

+ +
+ +
+ +{% endif %} + +{% if coverage_type_preservation != None %} +

+

Perpetual Access Coverage by Release Type

+ + + + + + {% for type_row in coverage_type_preservation %} + + +
Release Type + Total Count + Coverage +
{{ type_row.release_type }} + {{ "{:,}".format(type_row.total) }} + {{ entity_macros.preservation_bar(type_row) }} + {% endfor %} +
+{% endif %} + +
+{% endblock %} + -- cgit v1.2.3