{# Displays a single of dataset with database icon and improved styling. package - A package to display. item_class - The class name to use on the list item. hide_resources - If true hides the resources (default: false). Example: {% snippet 'snippets/package_item.html', package=package %} #} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes, extract_length=180) %} {% set remote = package.get('fair3r_remote') %} {% set url = package.url if remote else h.url_for(package.type ~ '.read', id=package.name) %} {% block package_item %} {% block content %}
{{ h.humanize_entity_type('package', package.type, 'no description') or _("There is no description for this dataset") }}
{% endif %} {% endblock %} {% if remote and package.doi %} {% endif %} {% block resources %} {% if package.resources and not hide_resources %} {% block resources_outer %} {% endblock %} {% endif %} {% endblock %}