{% macro fatcat_bits(entity, entity_type, expand="", editgroup=None) -%} {% if entity.state == None and editgroup %}
This is the version of the entity as of a specific merged editgroup: {% elif editgroup.submitted %} Submitted Edit Version
This is a version of the entity that has been submitted for approval as part of an editgroup: {% else %} Edit In Progress
This is a version of the entity that has not yet been submitted for approval, part of an editgroup: {% endif %} {{ editgroup.editgroup_id }}
This is a specific, static metadata record, not necessarily linked to any current entity in the catalog.
This entity has not been "accepted" into the official database yet.
  {% if entity.state %}
    State is "{{ entity.state }}".
  {% endif %}
  {% if entity.revision %}
    Revision:
    {{ entity.revision }}
  {% endif %}
  
  As JSON object via API
  
| {{ key }}.{{ inner_key }} | {{ inner_value }}{% endfor %}
  {% elif key in ("urls", "webarchive_urls") and value and value is iterable and value is not string and value[0] is string %} | 
| {{ key }} | 
          {% for u in value %}
            {{ u }}{% else %} | 
| {{ key }} | {% if value != None %}{{ value }}{% endif %}{% endif %}
{% endfor %} | 
| {% if release.release_date %}{{ release.release_date }}{% elif release.release_year %}{{ release.release_year }}{% else %}unknown{% endif %} | {{ release.title }} {{ release.release_stage or "unknown status" }} | {{ release.release_type or "unknown type" }} {% if release.version %} | {{ release.version }}{% endif %} {% if release.license_slug %} | {{ release.license_slug }}{% endif %} {% if release.ext_ids.doi %} doi:{{ release.ext_ids.doi }} {% endif %} {% endfor %} | 
| {{ "{:,}".format(stats.bright) }} | {{ (frac_bright*100)|round(2,method='ceil') }}% | preserved and publicly accessible (bright) | |
| {{ "{:,}".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) }} | {{ (frac_shadows_only*100)|round(2,method='ceil') }}% | only independently preserved in "shadow" libraries {% endif %} | |
| {{ "{:,}".format(stats.none) }} | {{ (frac_none*100)|round(2,method='ceil') }}% | no known independent preservation | 
| {{ "{:,}".format(stats.bright) }} | preserved and accessble (bright) | |
| {{ "{:,}".format(stats.dark) }} | preserved, inaccessible (dark) {% if stats.shadows_only %} {% set frac_shadows_only = stats.shadows_only/stats.total %} | |
| {{ "{:,}".format(stats.shadows_only) }} | shadow library only {% endif %} | |
| {{ "{:,}".format(stats.none) }} | no known preservation |