--- a/ckanext/datagovau/templates/package/read.html +++ b/ckanext/datagovau/templates/package/read.html @@ -1,167 +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 h.get_pkg_dict_extra(pkg,'DCTERMS.Source.URI') %} - - - - - {% endif %} - - {% if pkg.get('contact_point') %} - - - - - {% endif %} - {% if pkg.get('spatial_coverage') %} - - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Geospatial Coverage') %} - - - - - - {% endif %} - {% if pkg.get('granularity') %} - - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Granularity') %} - - - - - - {% endif %} - {% if pkg.get('jurisdiction') %} - - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'AGLSTERMS.Jurisdiction') %} - - - - - - {% endif %} - {% if pkg.get('temporal_coverage') %} - - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Temporal Coverage') %} - - - - - - {% endif %} - {% if pkg.get('data_state') %} - - - - - - {% endif %} - {% if pkg.get('update_freq') %} - - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Update Frequency') %} - - - - - {% endif %} - -{% set email =h.get_last_active_user(c.pkg_dict['id']).get('email','') %} - - - - - - - - - - - - - - - - - - -
{{ _('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(h.get_pkg_dict_extra(pkg,'DCTERMS.Source.URI'), - h.get_pkg_dict_extra(pkg,'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 {{ h.get_pkg_dict_extra(pkg,'Geospatial Coverage') }}
Data Granularity {{ pkg.granularity }}
Data Granularity {{ h.get_pkg_dict_extra(pkg,'Granularity') }}
Government Jurisdiction {{ pkg.jurisdiction }}
Government Jurisdiction {{ h.get_pkg_dict_extra(pkg,'AGLSTERMS.Jurisdiction') }}
Temporal Coverage {{ pkg.temporal_coverage }}
Temporal Coverage {{ h.get_pkg_dict_extra(pkg,'Temporal Coverage') }}
Data State {{ pkg.data_state }}
Update Frequency {{ pkg.update_freq }}
Update Frequency {{ h.get_pkg_dict_extra(pkg,'Update Frequency') }}
{{ _('Maintainer') }}{{ - h.mail_to(email_address=(email or ' '), name=h.get_last_active_user(c.pkg_dict['id']).get("display_name",'')) }} -
Publisher/Agency{{ c.pkg_dict['organization']['title']}} -
TypeDataset
LanguageEnglish
-
- + {% 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 %}