{# 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 metrics of one community's records, in the community header above its menu (details/header.html), with the first column of PIDBOX_COMMUNITY_METRICS_COLUMN. Counted with the community's records API, and linked to the community's own search. What they count is the community type's (PIDBOX_COMMUNITY_METRICS_TYPES): a funder's community counts its awards. On a phone the header's grid gives up its gutters, which the cards' grid inside it takes away again, so the metrics are padded in line with the header's own content above them, as on the person and organization pages. #} {%- set slug = community_ui["slug"] | urlencode %} {%- set counted = pidbox_community_metrics(community_ui) %} {%- with metrics_id="community-metrics", metrics_api="/api/communities/" ~ slug ~ "/records", metrics_search="/communities/" ~ slug ~ "/records", metrics_query=counted.query, metrics_noun=counted.noun, metrics_column=pidbox_metrics_column(config.PIDBOX_COMMUNITY_METRICS_COLUMN, counted.noun) %} {%- include "invenio_pidbox/records_metrics.html" %} {%- endwith %}