--- a/ckanext/datagovau/templates/package/read.html +++ b/ckanext/datagovau/templates/package/read.html @@ -1,160 +1,18 @@ {% ckan_extends %} +{% block primary_content_inner %} +{{ super() }} +
+ {{ h.disqus_comments() }} +
+{% endblock %} -{% block package_additional_info %} -
-

{{ _('Additional Info') }}

- - - - - - - - +{% block secondary_content %} + {{ super() }} - - {# Add our custom field to the dataset read page. #} - {% if pkg.get('metadata_created') %} - - - - - {% endif %} - {% if pkg.get('metadata_updated') %} - - - - - {% endif %} - {% if pkg.get('agency_program') %} - - - - - {% endif %} - {% if pkg.get('Agency Program') %} - - - - - {% endif %} - {% if pkg.get('DCTERMS.Source.URI') %} - - - - - {% endif %} - - {% if pkg.get('contact_point') %} - - - - - {% endif %} - {% if pkg.get('spatial_coverage') %} - - - - - - {% endif %} - {% if pkg.get('Geospatial Coverage') %} - - - - - - {% endif %} - {% if pkg.get('granularity') %} - - - - - - {% endif %} - {% if pkg.get('Granularity') %} - - - - - - {% endif %} - {% if pkg.get('jurisdiction') %} - - - - - - {% endif %} - {% if pkg.get('AGLSTERMS.Jurisdiction') %} - - - - - - {% endif %} - {% if pkg.get('temporal_coverage') %} - - - - - - {% endif %} - {% if pkg.get('Temporal Coverage') %} - - - - - - {% endif %} - {% if pkg.get('data_state') %} - - - - - - {% endif %} - {% if pkg.get('update_freq') %} - - - - - - {% endif %} - {% if pkg.get('Update Frequency') %} - - - - - {% endif %} - - {% if pkg.maintainer_email %} - - - - - {% elif pkg.maintainer %} - - - - - {% endif %} - - -
{{ _('Field') }}{{ _('Value') }}
Date Published{{ pkg.metadata_created.split("T")[0] }}
Date Updated{{ pkg.metadata_updated.split("T")[0] }}
Agency Program {{ pkg.agency_program }}
Agency Program {{ pkg.get('Agency Program') }}
{{ _('Source') }}{{ h.link_to(pkg.get('DCTERMS.Source.URI'), - pkg.get('DCTERMS.Source.URI'), rel='dct:source', target='_blank') }} -
Contact Point {{ h.mail_to(email_address=pkg.contact_point, - name=pkg.contact_point) }}
Geospatial Coverage {{ pkg.spatial_coverage }}
Geospatial Coverage {{ pkg.get('Geospatial Coverage') }}
Data Granularity {{ pkg.granularity }}
Data Granularity {{ pkg.get('Granularity') }}
Government Jurisdiction {{ pkg.jurisdiction }}
Government Jurisdiction {{ pkg.get('AGLSTERMS.Jurisdiction') }}
Temporal Coverage {{ pkg.temporal_coverage }}
Temporal Coverage {{ pkg.get('Temporal Coverage') }}
Data State {{ pkg.data_state }}
Update Frequency {{ pkg.update_freq }}
Update Frequency {{ pkg.get('Update Frequency') }}
{{ _('Maintainer') }}{{ - h.mail_to(email_address=pkg.maintainer_email, name=pkg.maintainer) }} -
{{ _('Maintainer') }}{{ pkg.maintainer }}
-
- + {% 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 %}