--- a/ckanext/datagovau/templates/package/read.html +++ b/ckanext/datagovau/templates/package/read.html @@ -1,44 +1,18 @@ {% ckan_extends %} +{% block primary_content_inner %} +{{ super() }} +
+ {{ h.disqus_comments() }} +
+{% endblock %} -{% block package_additional_info %} -{{ super() }} +{% block secondary_content %} + {{ super() }} -{# Add our custom field to the dataset read page. #} -{% if pkg.get('agency_program') %} -
-

Agency Program: {{ pkg.agency_program }}

-
-{% endif %} -{% if pkg.get('contact_point') %} -
-

Contact Point: {{ pkg.contact_point }}

-
-{% endif %} -{% if pkg.get('spatial_coverage') %} -
-

Geospatial Coverage: {{ pkg.spatial_coverage }}

-{% endif %} -{% if pkg.get('granularity') %} -
-

Data Granularity: {{ pkg.granularity }}

-{% endif %} -{% if pkg.get('jurisdiction') %} -
-

Government Jurisdiction: {{ pkg.jurisdiction }}

-{% endif %} -{% if pkg.get('temporal_coverage') %} -
-

Temporal Coverage: {{ pkg.temporal_coverage }}

-{% endif %} -{% if pkg.get('data_state') %} -
-

Data State: {{ pkg.data_state }}

-{% endif %} -{% if pkg.get('update_freq') %} -
-

Update Frequency: {{ pkg.update_freq }}

- -{% endif %} + {% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %} + {% if dataset_extent %} + {% snippet "spatial/snippets/dataset_map_sidebar.html", extent=dataset_extent %} + {% endif %} {% endblock %}