{% 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_issue_table(entity, data) %} {# NOTE: this section is pretty nested, with complex behavior; it could be hard to edit and understand #} {# TODO: these "sorts" are lexical, not numeric, which causes problems #} {% for year in data.keys()|sort|reverse %} {% set year_loop = loop %} {% for volume in data[year].keys()|sort|reverse %} {% set volume_loop = loop %} {% for issue in data[year][volume].keys()|sort|reverse %} {% set issue_loop = loop %} {% if volume_loop.first and issue_loop.first %} {% set year_rowspan = data[year].values()|map('length')|sum %} {% endif %} {% if issue_loop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Year Volume Issue Indexed Content
{{ year }} {% if volume != '000_unknown' %} Vol. {{ volume }} {% endif %} {% if issue != '000_unknown' %} Issue {{ issue }} {% endif %} {{ "{:,}".format(data[year][volume][issue]) }} releases
{% endmacro %} {% macro browse_releases(found) %}

Browsing: {% if request.args.volume %}Volume {{ request.args.volume }}  {% endif %} {% if request.args.issue %}Issue {{ request.args.issue }}  {% endif %} {% if request.args.year %}Year {{ request.args.year }}  {% endif %}


{% for release_doc in found.results %}
{% if request.args.volume %} {% if release_doc.pages %} {{ release_doc.pages }} {% else %} {# blank #} {% endif %} {% 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 %}

Publications by Year, Volume, and Issue

This table includes content which does not have article-level metadata about volume or issue, but at least the year of publication must be known. "Stub" releases (eg, spam or duplicate DOIs) are not listed. {{ browse_year_volume_issue_table(entity, entity._browse_volume_year) }}

{% endif %} {% endblock %}