{% macro fatcat_bits(entity, entity_type, expand="") -%}
State is "{{ entity.state }}".
{% if entity.state != "deleted" %}
Revision:
{{ entity.revision }}
{% endif %}
As JSON object via API
{{ key }}.{{ inner_key }} |
{{ inner_value }}
{% endfor %}
{% else %}
|
{{ key }} |
{{ value }}
{% endif %}
{% endfor %}
|
{% if release.release_date %}{{ release.release_date }}{% elif release.release_year %}{{ release.release_year }}{% endif %} |
{{ release.title }}
{{ release.release_status or "unknown status" }} | {{ release.release_type or "unknown type" }} {% if release.license_slug %} | {{ release.license_slug }}{% endif %} {% if release.doi %} doi:{{ release.doi }} {% endif %} {% endfor %} |
{{ url.rel }} |
{% if url.url.count('/') >= 3 %}
{{ '/'.join(url.url.split('/')[0:2]) }}/{{ ''.join(url.url.split('/')[2]) }}/{{ '/'.join(url.url.split('/')[3:]) }}
{% else %}
{{ url.url }}
{% endif %}
{% endfor %}
|