{# Copyright (C) 2026 Front Matter. invenio-pidbox is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. The first column of the metrics, beside their two rows of three cards, on the front page, a community's pages and the person and organization pages: the open license ring (license_donut.html), or cards, one per row so that each lines up with a row beside it (see invenio_pidbox.ext.metrics_column). The cards count in the browser, like the others, and each stays hidden until it has its number, and while there are no works. Included with five variables: column_id the prefix of the ids, unique on the page: the ring is -license, a card - column_api the records API to count with, e.g. /api/records column_query the query of the page's works, "" for all of them column_search the search page the cards link to, e.g. /search column the items, as pidbox_metrics_column returns them #} {%- set column_cards = column | rejectattr("card", "equalto", "license") | list %} {%- if column_cards %} {%- from "invenio_pidbox/metrics_styles.html" import metrics_styles %} {{ metrics_styles("#" ~ column_id ~ "-column") }} {%- endif %}
{%- for item in column %} {%- if item.card == "license" %} {%- with donut_id=column_id ~ "-license", donut_api=column_api, donut_query=column_query, donut_search=column_search %} {%- include "invenio_pidbox/license_donut.html" %} {%- endwith %} {%- else %} {%- endif %} {%- endfor %}
{%- if column_cards %} {%- endif %}