summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_view_coverage.html
blob: fd173cd40786588fe277a4e3ea513e87ae55c627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% set container = entity %}
{% set entity_view = "coverage" %}
{% set entity_type = "container" %}
{% import "entity_macros.html" as entity_macros %}
{% extends "entity_base.html" %}

{% block entity_main %}

<div class="ui centered grid">
  <div class="row">
    <div class="twelve wide column">
      <div class="ui large horizontal statistic">
        <div class="value">{{ "{:,}".format(container._stats.total) }}</div>
        <div class="label" style="text-transform: none;">Known Releases</div>
      </div>
      {% if container._stats.total >= 1 %}
        {{ entity_macros.preservation_bar(container._stats.preservation, extra_class="large") }}
        {{ entity_macros.preservation_table(container._stats.preservation) }}
      {% endif %}
    </div>
  </div>
</div>

{% if container._stats.total >= 1 %}
  <br><br>
  <h2>Perpetual Access Coverage by Year</h2>

  <figure style="margin: 0 0 0 0;">
    <embed type="image/svg+xml" src="/container/{{ container.ident }}/preservation_by_year.svg" />
  </figure>

  <div style="float: right;">
    <a href="/container/{{ container.ident }}/preservation_by_year.json">Download as JSON</a>
  </div>

  <br><br>
  <h2>Perpetual Access Coverage by Volume</h2>

  <figure style="margin: 0 0 0 0;">
    <embed type="image/svg+xml" src="/container/{{ container.ident }}/preservation_by_volume.svg" />
  </figure>

  <div style="float: right;">
    <a href="/container/{{ container.ident }}/preservation_by_volume.json">Download as JSON</a>
  </div>

  <br><br>
  <h2>Perpetual Access Coverage by Release Type</h2>
  <table class="ui table">
    <thead>
      <tr>
        <th>Release Type
        <th class="right aligned">Total Count
        <th>Coverage
    </thead>
    <tbody>
      {% for type_row in container._type_preservation %}
      <tr>
        <td class="two wide">{{ type_row.release_type }}
        <td class="two wide right aligned">{{ type_row.total }}
        <td class="twelve wide">{{ entity_macros.preservation_bar(type_row) }}
      {% endfor %}
    </tbody>
  </table>
{% endif %}

{% endblock %}