{% extends "thesaurus_base.html" %} {% block content %}
{% csrf_token %}

{% if concept.id %}

Edit "{{ concept }}"

{% else %}

Add new named entity, name, word or concept

{% endif %}
{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {% if form.errors %}
{{ form.errors }}
{% endif %}
Name
Query
Aliases
Groups
Relations
Custom tags
Notes
{{ form.prefLabel.errors }} {{ form.prefLabel }} {{ form.facet.errors }} {{ form.facet }}

Search query (optional)

Only necessary if different from label or name (default query) or more complex than the name or label (i.e. including wildcards)

{{ form.query.errors }} {{ form.query }} {{ form.query_type.errors }} {{ form.query_type }}

Groups (optional)

{% if concept.id %} {{ form.groups }} {% else %}
Please save this new entry to have the ability to add it to groups ...
{% endif %}

Notes (optional)

{{ form.note.errors }} {{ form.note }}

Alternate labels, synonyms or aliases (optional)

Alternate labels, synonyms, aliases or additional queries (for example different pronouncations, e-mail adresses or usernames)

{% if not concept.id %}
Please save this new entry to have the ability to add alternate labels or aliases ...
{% endif %} {{ alternates_formset.management_form }} {% for alternate_form in alternates_formset %} {{ alternate_form.id }}
{% if alternate_form.non_field_errors %}
{{ alternate_form.non_field_errors }}
{% endif %} {% if alternate_form.errors %}
{{ alternate_form.errors }}
{% endif %} {{ alternate_form.altLabel.errors }} {{ alternate_form.altLabel }} {{ alternate_form.query.errors }} {{ alternate_form.query }} {{ alternate_form.query_type.errors }} {{ alternate_form.query_type }} {% if alternate_form.DELETE %} {{ alternate_form.DELETE }} {% endif %}
{% endfor %}

Misspellings (optional)

Misspellings or OCR errors (hidden labels)

{% if not concept.id %}
Please save this new entry to have the ability to add misspelled labels ...
{% endif %} {{ misspellings_formset.management_form }} {% for misspelling_form in misspellings_formset %} {{ misspelling_form.id }}
{% if misspelling_form.non_field_errors %}
{{ misspelling_form.non_field_errors }}
{% endif %} {% if misspelling_form.errors %}
{{ misspelling_form.errors }}
{% endif %} {{ misspelling_form.hiddenLabel.errors }} {{ misspelling_form.hiddenLabel }} {{ misspelling_form.query.errors }} {{ misspelling_form.query }} {{ misspelling_form.query_type.errors }} {{ misspelling_form.query_type }} {% if misspelling_form.DELETE %} {{ misspelling_form.DELETE }} {% endif %}
{% endfor %}

Relations (optional)

{% if concept.id %}

Broader

{% if not concept.id %}
Please save this new entity to have the ability to link to other concepts ...
{% endif %} {{ broader_formset.management_form }} {% for broader_form in broader_formset %} {{ broader_form.id }}
{% if broader_form.non_field_errors %}
{{ broader_form.non_field_errors }}
{% endif %} {% if broader_form.errors %}
{{ broader_form.errors }}
{% endif %} {{ broader_form }}
{% endfor %}

Narrower

{% if not concept.id %}
Please save this new entity to have the ability to link to other concepts ...
{% endif %} {{ narrower_formset.management_form }} {% for narrower_form in narrower_formset %} {{ narrower_form.id }}
{% if narrower_form.non_field_errors %}
{{ narrower_form.non_field_errors }}
{% endif %} {% if narrower_form.errors %}
{{ narrower_form.errors }}
{% endif %} {{ narrower_form }}
{% endfor %}

Related

{% if not concept.id %}
Please save this new entity to have the ability to link to other concepts ...
{% endif %} {{ related_formset.management_form }} {% for related_form in related_formset %} {{ related_form.id }}
{% if related_form.non_field_errors %}
{{ related_form.non_field_errors }}
{% endif %} {% if related_form.errors %}
{{ related_form.errors }}
{% endif %} {{ related_form }}
{% endfor %} {% else %}
Please save this new entry to have the ability to link to other terms ...
{% endif %}

Additional tags / facets / properties (optional)

Documents with the named entity are tagged with its name into the facet you configured with the name (in the main tab "Name").
Here you have the optional possibility to tag them with additional values/tags and/or another facets

{% if not concept.id %}
Please save this new entity to have the ability to add tags and facets ...
{% endif %} {{ tags_formset.management_form }} {% for tag_form in tags_formset %} {{ tag_form.id }}
{% if tag_form.non_field_errors %}
{{ tag_form.non_field_errors }}
{% endif %} {% if tag_form.errors %}
{{ tag_form.errors }}
{% endif %} {{ tag_form }}
{% endfor %}

{% if concept.id %} Cancel {% else %} Cancel {% endif %}
{% endblock content %}