{% set key_item_url = _('Item') + ' URL' %}
{% block extras scoped %} {# This performs a sort {% for extra in h.sorted_extras(pkg_dict.extras) %} #} {% if pkg_dict.extras %} {# Added by Francesco Mangiacrapa, see 17901 #} {% set extra_item_url = h.get_pkg_dict_extra(pkg_dict,key_item_url) %} {% if extra_item_url %}
{{ key_item_url }}
{{ extra_item_url }} {% snippet "package/snippets/qrcode_show.html", package_url=extra_item_url %}
{% endif %} {% set extras_indexed_for_categories = h.d4science_get_extras_indexed_for_namespaces(pkg_dict.extras) %} {% for k_cat in extras_indexed_for_categories %} {% set category_idx = extras_indexed_for_categories[k_cat] %} {% if(k_cat!='nocategory') %}
{{category_idx.category.title}}
{% if category_idx.category.description %}

Description: {{category_idx.category.description}}

{% endif %} {% set my_extras = h.d4science_get_extra_for_category(extras_indexed_for_categories, k_cat) %} {% snippet "package/snippets/extras_table.html", my_extras=my_extras, key_item_url=key_item_url %}
{{ _('Field') }} {{ _('Value') }}
{% endif %} {% endfor %} {% set my_extras = h.d4science_get_extra_for_category(extras_indexed_for_categories, 'nocategory') %} {% if my_extras|length > 0 %}
{{ _('Additional Info') }}
{% snippet "package/snippets/extras_table.html", my_extras=my_extras, key_item_url=key_item_url %}
{{ _('Field') }} {{ _('Value') }}
{% endif %} {% endif %} {% endblock %}
{{ _('Management Info') }}
{% block package_additional_info %} {% if pkg_dict.url %} {% if h.is_url(pkg_dict.url) %} {% else %} {% endif %} {% endif %} {% if pkg_dict.author_email %} {% elif pkg_dict.author %} {% endif %} {# Added by Francesco Mangiacrapa #} {% set user_maintainer = h.d4science_get_user_info(pkg_dict.maintainer) %} {% if pkg_dict.maintainer_email %} {% elif pkg_dict.maintainer %} {% endif %} {% if pkg_dict.version %} {% endif %} {% if h.check_access('package_update',{'id':pkg_dict.id}) %} {% endif %} {% if pkg_dict.metadata_modified %} {% endif %} {% if pkg_dict.metadata_created %} {% endif %}
{{ _('Field') }} {{ _('Value') }}
{{ _('Source') }}{{ h.link_to(pkg_dict.url, pkg_dict.url, rel='foaf:homepage', target='_blank') }}{{ pkg_dict.url }}
{{ _("Author") }} {{ h.mail_to(email_address=pkg_dict.author_email, name=pkg_dict.author) }}
{{ _("Author") }} {{ pkg_dict.author }}
{{ _('Maintainer') }} {{ h.mail_to(email_address=pkg_dict.maintainer_email, name=user_maintainer.fullname if (user_maintainer and user_maintainer.fullname) else pkg_dict.maintainer) }}
{{ _('Maintainer') }} {{ user_maintainer.fullname if (user_maintainer and user_maintainer.fullname) else pkg_dict.maintainer }}
{{ _("Version") }} {{ pkg_dict.version }}
{{ _("State") }} {{ _(pkg_dict.state) }}
{{ _("Last Updated") }} {% snippet 'snippets/local_friendly_datetime.html', datetime_obj=pkg_dict.metadata_modified %}
{{ _("Created") }} {% snippet 'snippets/local_friendly_datetime.html', datetime_obj=pkg_dict.metadata_created %}
{% endblock %}