{% set container = entity %} {% set entity_view = "browse" %} {% set entity_type = "container" %} {% import "entity_macros.html" as entity_macros %} {% extends "entity_base.html" %} {% macro browse_year_volume_table(entity, data) %} {% for year in data.keys()|sort|reverse %} {% for volume in data[year].keys()|sort|reverse %} {% if loop.first %} {% endif %} {% if volume == '000_unknown' %} {% endfor %} {% endfor %}
{{ year }} {% if data[year]|length > 1 %}n/a{% endif %} {{ data[year][volume] }} releases {% else %} Vol. {{ volume }} {{ data[year][volume] }} releases {% endif %}
{% endmacro %} {% macro browse_releases(found) %} {% for release_doc in found.results %}
{% if release_doc.pages %} {{ release_doc.pages }} {# {% elif release_doc.release_date %} {{ release_doc.release_date }} #} {% endif %}
{{ entity_macros.release_search_result_row(release_doc, margin_top=False) }}
{% endfor %} {% endmacro %} {% block entity_main %} {% if releases_found %} {{ browse_releases(releases_found) }} {% elif entity._browse_volume_year %}

Contents by Year and Volume

{{ browse_year_volume_table(entity, entity._browse_volume_year) }}
{% endif %} {% endblock %}