diff --git a/ckanext/canada/i18n/fr/LC_MESSAGES/canada.po b/ckanext/canada/i18n/fr/LC_MESSAGES/canada.po index 6f907a293..89770d1ef 100644 --- a/ckanext/canada/i18n/fr/LC_MESSAGES/canada.po +++ b/ckanext/canada/i18n/fr/LC_MESSAGES/canada.po @@ -1487,6 +1487,9 @@ msgstr "Catégorie thématique" msgid "Format" msgstr "Format" +msgid "Type" +msgstr "Type" + msgid "Resource Type" msgstr "Type de ressource" diff --git a/ckanext/canada/schemas/presets.yaml b/ckanext/canada/schemas/presets.yaml index 0ece55a5a..93fc2dcc2 100644 --- a/ckanext/canada/schemas/presets.yaml +++ b/ckanext/canada/schemas/presets.yaml @@ -3423,6 +3423,7 @@ presets: fr: Taille [estimative] d’une distribution en octets form_panel: resource validators: ignore_missing int_validator + display_snippet: size.html # Field = Character Set. # {This is the character set of the dataset} diff --git a/ckanext/canada/templates/public/package/snippets/resource_item.html b/ckanext/canada/templates/public/package/snippets/resource_item.html index 9980d69a3..55c43d45c 100644 --- a/ckanext/canada/templates/public/package/snippets/resource_item.html +++ b/ckanext/canada/templates/public/package/snippets/resource_item.html @@ -10,6 +10,7 @@ {% set type_field = h.scheming_field_by_name(schema.resource_fields, 'resource_type') %} {% set format_field = h.scheming_field_by_name(schema.resource_fields, 'format') %} {% set lang_field = h.scheming_field_by_name(schema.resource_fields, 'language') %} +{% set size_field = h.scheming_field_by_name(schema.resource_fields, 'size') %} {# FIXME: using tables for formatting #}
{{ _('Resource Name') }} | -{{ _('Resource Type') }} | +{{ _('Name') }} | +{{ _('Type') }} | {{ _('Format') }} | {{ _('Language') }} | +{{ _('File Size') }} | {{ _('Links') }} |
---|