--- a/ckanext/datagovau/templates/package/read.html +++ b/ckanext/datagovau/templates/package/read.html @@ -44,11 +44,11 @@ {{ pkg.get('Agency Program') }} {% endif %} - {% if pkg.get('DCTERMS.Source.URI') %} + {% if h.get_pkg_dict_extra(pkg,'DCTERMS.Source.URI') %} {{ _('Source') }} - {{ h.link_to(pkg.get('DCTERMS.Source.URI'), - pkg.get('DCTERMS.Source.URI'), rel='dct:source', target='_blank') }} + {{ 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') }} {% endif %} @@ -67,11 +67,11 @@ {{ pkg.spatial_coverage }} {% endif %} - {% if pkg.get('Geospatial Coverage') %} + {% if h.get_pkg_dict_extra(pkg,'Geospatial Coverage') %} Geospatial Coverage - {{ pkg.get('Geospatial Coverage') }} + {{ h.get_pkg_dict_extra(pkg,'Geospatial Coverage') }} {% endif %} {% if pkg.get('granularity') %} @@ -81,11 +81,11 @@ {{ pkg.granularity }} {% endif %} - {% if pkg.get('Granularity') %} + {% if h.get_pkg_dict_extra(pkg,'Granularity') %} Data Granularity - {{ pkg.get('Granularity') }} + {{ h.get_pkg_dict_extra(pkg,'Granularity') }} {% endif %} {% if pkg.get('jurisdiction') %} @@ -95,11 +95,11 @@ {{ pkg.jurisdiction }} {% endif %} - {% if pkg.get('AGLSTERMS.Jurisdiction') %} + {% if h.get_pkg_dict_extra(pkg,'AGLSTERMS.Jurisdiction') %} Government Jurisdiction - {{ pkg.get('AGLSTERMS.Jurisdiction') }} + {{ h.get_pkg_dict_extra(pkg,'AGLSTERMS.Jurisdiction') }} {% endif %} {% if pkg.get('temporal_coverage') %} @@ -109,11 +109,11 @@ {{ pkg.temporal_coverage }} {% endif %} - {% if pkg.get('Temporal Coverage') %} + {% if h.get_pkg_dict_extra(pkg,'Temporal Coverage') %} Temporal Coverage - {{ pkg.get('Temporal Coverage') }} + {{ h.get_pkg_dict_extra(pkg,'Temporal Coverage') }} {% endif %} {% if pkg.get('data_state') %} @@ -130,26 +130,33 @@ {{ pkg.update_freq }} {% endif %} - {% if pkg.get('Update Frequency') %} + {% if h.get_pkg_dict_extra(pkg,'Update Frequency') %} Update Frequency - {{ pkg.get('Update Frequency') }} + {{ 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','') %} {{ _('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",'')) }} - {% elif pkg.maintainer %} - {{ _('Maintainer') }} - {{ pkg.maintainer }} + Publisher/Agency + {{ c.pkg_dict['organization']['title']}} + - {% endif %} + + Type + Dataset + + + Language + English +