{% comment %}
Copyright (C) 2017-2026 The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}
{% load swh_templatetags %}
{{ activate_citations_ui|json_script:"activate_citations_ui" }}
{% if swhids_info %}
To
reference or cite
the objects present in the Software Heritage archive, permalinks based on
SoftWare Hash IDentifiers (SWHIDs)
must be used.
Select below a type of object currently browsed in order to display its
associated SWHID and permalink.
{% for swhid_info in swhids_info %}
{% if forloop.first %}
{% endif %}
{% if swhid_info.swhid_with_context is not None %}
{% endif %}
{% endfor %}
{% if activate_citations_ui or request.user.is_staff or user_is_ambassador %}
This interface enables to generate software citations, provided
that the root directory of browsed objects contains a
citation.cff or
codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.
{% for swhid_info in swhids_info %}
{% if forloop.first %}