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

{{ _('Additional Info') }}

@@ -38,17 +43,11 @@ {% endif %} - {% if pkg.get('Agency Program') %} - - - - - {% endif %} - {% if h.get_pkg_dict_extra(pkg,'DCTERMS.Source.URI') %} + {% if pkg.get('url') %} - {% endif %} @@ -67,13 +66,6 @@ {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Geospatial Coverage') %} - - - - - - {% endif %} {% if pkg.get('granularity') %} @@ -81,43 +73,19 @@ {% 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') %} - @@ -130,26 +98,27 @@ {% endif %} - {% if h.get_pkg_dict_extra(pkg,'Update Frequency') %} - - - - - {% endif %} - {% if pkg.maintainer_email %} +{% set email =h.get_last_active_user(c.pkg_dict['id']).get('email','') %} - {% elif pkg.maintainer %} - - + + - {% endif %} + + + + + + + +
{{ 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') }} + {{ h.link_to(pkg.get('url'), + pkg.get('url'), rel='dct:source', target='_blank') }}
{{ pkg.spatial_coverage }}
Geospatial Coverage {{ h.get_pkg_dict_extra(pkg,'Geospatial Coverage') }}
{{ 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 }} {{ pkg.update_freq }}
Update Frequency {{ h.get_pkg_dict_extra(pkg,'Update Frequency') }}
{{ _('Maintainer') }} {{ - h.mail_to(email_address=pkg.maintainer_email, name=pkg.maintainer) }} + h.mail_to(email_address=(email or ' '), name=h.get_last_active_user(c.pkg_dict['id']).get("display_name",'')) }}
{{ _('Maintainer') }}{{ pkg.maintainer }}Publisher/Agency{{ c.pkg_dict['organization']['title']}} +
TypeDataset
LanguageEnglish
@@ -158,3 +127,13 @@ {% endblock %} +{% block secondary_content %} + {{ super() }} + + {% 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 %} +