{% import 'macros/form.html' as form %} {% resource 'baepublisher/image_upload.js' %} {% set private = data.get('private') %} {% set name = offering['name'] if offering else data.title %} {% set description = offering['description'] if offering else data.notes %} {% set categories = offering['categories'] %} {% set version = offering['version'] if offering else '' %} {% set license_description = offering['license_description'] if offering else '' %} {% set price = offering['price'] if offering else '' %} {% set is_open = offering['is_open'] if offering else True %} {% set update_acquire_url = offering['update_acquire_url'] if offering else True %} {% set catalogs = offering['catalogs'] %} {% set role = offering['role'] if offering else '' %} {% if offering['license_title'] %} {% set license_title = offering['license_title'] %} {% elif data.get('license_id','') == 'notspecified' %} {% set license_title = '' %} {% else %} {% set license_title = data.get('license_title', '') %} {% endif %} {# This provides a full page that renders a form for publishing a dataset. It can then itself be extended to add/remove blocks of functionality. #}