{# 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 share of works with an open license, a Creative Commons license or CC0, as a ring beside the metrics cards, with the open access logo and in its orange: one arc on a neutral track, the share in its middle in text colour, the counts in its tooltip. Counted in the browser like the cards, with the license query, metadata.rights.id:cc*, added to the query of the works the page is about. The ring links to those works, and stays hidden while there are none. Included with four variables: donut_id the id of the ring, unique on the page donut_api the records API to count with, e.g. /api/records donut_query the query of the page's works, "" for all of them donut_search the search page the ring links to, e.g. /search #} {#- r = 50, so the circumference is 314.16. The arc starts at the top. #}