{# Displays a single harvest source result. source - A source to display. item_class - The class name to use on the list item. hide_resources - If true hides the resources (default: false). banner - If true displays a popular banner (default: false). truncate - The length to trucate the description to (default: 180) truncate_title - The length to truncate the title to (default: 80). show_organization - Boolean on whether to show the related organization Example: {% snippet 'snippets/source_item.html', source=c.sources[0] %} #} {% set truncate = truncate or 180 %} {% set truncate_title = truncate_title or 80 %} {% set title = source.title or source.name %} {% set source_type = h.get_pkg_dict_extra(source, 'source_type') %} {% set url = h.url_for('harvest_admin', id=source.name) if within_organization else h.url_for('harvest_read', id=source.name) %}
{{ source.notes }}
{% else %}{{ _('There is no description for this harvest source') }}
{% endif %}{% if source.status %} {{ _('Datasets') }}: {{ source.status.total_datasets }} {% endif %} {% if not within_organization and source.organization %} — {{ _('Organization') }}: {{ h.link_to(source.organization.title or source.organization.name, h.url_for('organization_read', id=source.organization.name)) }} {% endif %}