{# # This file is part of Invenio. # Copyright (C) 2013, 2014, 2015, 2016 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Invenio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Invenio; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # # In applying this license, CERN does not # waive the privileges and immunities granted to it by virtue of its status # as an Intergovernmental Organization or submit itself to any jurisdiction. #} {%- extends config.COMMUNITIES_BASE_TEMPLATE -%} {%- block javascript -%} {{ super() }} {%- endblock javascript -%} {% block page_body %}
{% if not is_new %} {% if community.is_deleted %}
This community will be deleted on {{ community.delete_time.strftime('%d-%m-%Y') }}.
{% endif %} {% endif %}

{% if is_new -%} {{ _("New community") }} {%- else -%} {{ _("Edit community") }} {%- endif %}

{{form.csrf_token}}
{% if not is_new %}
{{ community.community_url }}

Above address links directly to your community collection.

{{ community.upload_url }}

Above address will automatically ensure people who use it will have their record added to your community collection.

{{ community.community_provisional_url }}

Above address links to your private curation URL. You will find all uploads pending your curation.

{{config.THEME_SITENAME}}{{ community.oaiset_url }}

Above address links to a OAI-PMH feed, which can be used by other digital repositories to harvest this community.

{% endif %} {%- for title, fieldnames, conf in form.field_sets %}
{%- if title %}
{{conf.state}} {{title}}
{%- endif %}
{%- if conf.description %}

{{ conf.description|urlize }}

{%- endif %} {% if not is_new %}

The identifier cannot be changed after creation of the community.

{% endif %}
{%- for f in fieldnames %} {% if f == '-' %}
{%- else %} {%- set field = form.get_field_by_name(f) %} {% if field %}
{% if form.has_autocomplete(field) %}
    {% if f == "funding_source" %} {% for tag in field.get_tags() %}
  • {{tag.label}}
  • {% endfor %} {% endif %}
{% endif %} {%- if field.type == "Date" %} {{ field(class_="form-control col-md-2 " + field.short_name, placeholder=form.get_field_placeholder(f)) }} {%- else %} {{ field(class_="form-control col-md-5 " + field.short_name, placeholder=form.get_field_placeholder(f)) }} {%- endif %} {% if field.description %}

{{field.description|urlize}}

{% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
{%- endif %} {%- endif %} {%- endfor %}
{%- endfor %}
{% if not community.is_deleted %} {% endif %}
{% include "invenio_communities/mycommunities.html" %}
{% endblock %}