{% extends "page.html" %} {% import "_dgu_jinja_util.html" as m with context %} {% set can_update=h.check_access('package_update',{'id':c.pkg.id}) %} {% set can_publish=h.is_executive_editor() or h.is_sysadmin() %} {% set can_delete=h.check_access('package_delete', {'id':c.pkg.id}) and not h.is_package_deleted(c.pkg) %} {% set harvest_object=h.get_harvest_object(c.pkg) %} {% set can_harvest=harvest_object and h.check_access('harvest_source_update',{'id':harvest_object.source.id}) %} {% set update_link=h.url_for(controller='package', action='edit', id=c.pkg.name) %} {% set dataset_is_from_ns_pubhub = h.dataset_is_from_ns_pubhub(c.pkg_dict) %} {% set admin_mode = can_update or can_delete or can_harvest %} {% set all_licences = h.get_licenses(c.pkg) %} {% set publisher = c.pkg_dict.get('organization') %} {% set draft = h.is_draft_item(c.pkg_dict) %} {% set unpublished = h.is_unpublished_item(c.pkg_dict) %} {#% block secondary %}{% endblock %#} {% block secondary_content %}