{% load i18n %} {% comment %} — the record's metadata in one card: what it belongs to, its licence, who can see its data, its status and dates, and how a machine reaches it. Every entry is a : an icon and a title in capitals, the value underneath. Attributes: rows – [{label, icon, text, url, record, date, until, note, badge, badge_variant, warning}] record – a record, shown by name and linked by its own address text + url – a value, linked when `url` is set date/until – a date, or a date range; formatted here badge – shown as a badge in `badge_variant` note – a line under the value warning – draws the value as a warning api_url – the record's REST API address, if it has one class – extra classes on the card Slots: (default) – entries after the rows, e.g. a project's timeline and funding {% endcomment %}
{% for row in rows %} {% if row.record %} {{ row.record }} {% elif row.badge %} {{ row.badge }} {% elif row.date %} {{ row.date|date:"SHORT_DATE_FORMAT" }}{% if row.until %} – {{ row.until|date:"SHORT_DATE_FORMAT" }}{% endif %} {% elif row.url %} {{ row.text }} {% else %} {{ row.text }} {% endif %} {% if row.note %}{{ row.note }}{% endif %} {% endfor %} {{ slot }} {% if api_url %} {% endif %} {% translate "Metadata downloads" as downloads %} {% translate "The DataCite JSON and schema.org JSON-LD records, served from this address." as reason %}