{% set url = h.url_for(controller='dataset_resource', action='read', id=pkg.name, resource_id=res.id) %} {% set format = res.format.lower() or 'data' %} {% set is_web_format = h.is_web_format(res) %} {% set is_preview_format = h.is_preview_format(res) %} {% set is_map_format = h.is_map_format(res) %} {% set is_cartodb_format = h.is_cartodb_format(res) %} {% set is_plotly_format = h.is_plotly_format(res) %} {% set is_arcgis_format = h.is_arcgis_format(res) %} {% set filesize = res.size %} {% set tooltip = _("ZIP files may contain data and documentation in one or more formats. In Data.gov’s Geospatial catalog, most of the files are multi-part shapefiles.") if format == 'zip' %}
{% if res.description %} {{ h.markdown_extract(res.description, extract_length=80) }} {% else %} {% endif %} {# {% if filesize != 0 and filesize != None and not is_map_format and not is_web_format %} ( {{ filesize|float/1000 }} KB ) {% endif %} #}
{% if res.archiver %} {% set archiver = res.archiver %}