{% set stats = h.citations_get_stats(pkg_dict.id, pkg_dict) %}

{{ _('FAIR & Impact') }}

{% set completeness = h.citations_completeness(pkg_dict) %} {% if completeness %} {% set bar_class = {"red": "citations-bar-red", "orange": "citations-bar-orange", "green": "citations-bar-green"}[completeness.band] %} {% endif %} {% if stats.coauthors %} {% endif %}
{{ _('Completeness') }}
{{ completeness.score }} %
{% if completeness.missing %}
{{ _('Missing fields') }} ({{ completeness.missing|length }})
    {% for section, label, required in completeness.missing %}
  • {{ section }} — {{ label }}{% if required %} *{% endif %}
  • {% endfor %}
{% endif %}
{{ _('Citations') }} {{ stats.citation_count if stats.checked else "—" }} {% if stats.last_checked %} ({{ _('last checked') }} {{ h.render_datetime(stats.last_checked) }}) {% endif %}
{{ _('Disruption index') }} {% if stats.disruption_index is not none %} {{ '%.2f' % stats.disruption_index }} {% else %} {{ _('not enough data yet') }} {% endif %}
{{ _('S-index') }} {{ stats.top_s_index }} {% if stats.coauthors|length > 1 %} ({{ _('highest among co-authors') }})
{{ _('All co-authors') }}
    {% for author in stats.coauthors %}
  • {{ author.name or author.orcid }} — {{ _('S-index') }}: {{ author.s_index }}
  • {% endfor %}
{% endif %}
{% if not stats.checked %}

{{ _('Not checked yet: citations are tracked once the dataset has a published DOI.') }}

{% endif %} {% if stats.citing_works %}

{{ _('Citing works') }}

{% for work in stats.citing_works[:10] %} {% endfor %}
{{ _('Title') }} {{ _('Authors') }} {{ _('Year') }} {{ _('Venue') }} {{ _('DOI') }}
{{ work.title or '—' }} {{ (work.authors or [])|map(attribute='name')|select|join(', ') }} {{ work.year or '—' }} {{ work.venue or '—' }} {% if work.doi %} {{ work.doi }} {% else %} — {% endif %}
{% if stats.citing_works|length > 10 %}
{{ _('Show all %(count)s citing works', count=stats.citing_works|length) }} {% for work in stats.citing_works[10:] %} {% endfor %}
{{ work.title or '—' }} {{ (work.authors or [])|map(attribute='name')|select|join(', ') }} {{ work.year or '—' }} {{ work.venue or '—' }} {% if work.doi %} {{ work.doi }} {% else %} — {% endif %}
{% endif %} {% endif %}