{% ckan_extends %}

{% block package_basic_fields_tags %}
{% endblock %}

{% ckan_extends %}

{% block package_basic_fields_tags %}
{% endblock %}

{% block package_basic_fields_license %}
<div class="control-group">
    {% set error = errors.license_id %}
    <label class="control-label" for="field-license">{{ _("License") }}</label>
    <div class="controls">
        <select id="field-license" name="license_id" data-module="autocomplete">
            {% set existing_license_id = data.get('license_id') %}
            {% for license_id, license_desc in h.license_options(existing_license_id) %}
            {% set default_value='notspecified' %}
            {% if existing_license_id is not none %}
            <option value="{{ license_id }}" {% if existing_license_id==license_id %}selected="selected" {% endif %}>{{
                license_desc }}</option>
            {% else %}
            <option value="{{ license_id }}" {% if default_value==license_id %}selected="selected" {% endif %}>{{
                license_desc }}</option>
            {% endif %}
            {% endfor %}
        </select>
        {% if error %}<span class="error-block">{{ error }}</span>{% endif %}
        <span class="info-block info-inline">
            <i class="fa fa-info-circle"></i>
            {% trans %}
            License definitions and additional information can be found
            at <a href="http://opendefinition.org/licenses/">opendefinition.org</a>
            {% endtrans %}
        </span>
    </div>
</div>
{% endblock %}

Make 'notspecified' default licence value
Make 'notspecified' default licence value
