{% extends "base.html" %} {% block title %}Thesaurus Management{% endblock %} {% block content %}

ICCD Thesaurus Management

Select Table and Field
{% if not selected_table %}
Step 1: Select a table from the dropdown above.
{% elif not selected_field %}
Step 2: Select a field from the second dropdown.
{% endif %} {% if selected_table and selected_field %}
Add New Value
Thesaurus Values {{ values|length }} values
{% if values %}
{% for val in values %} {% set is_predefined = (val.id|string).startswith('predefined_') %} {% endfor %}
ID Value Label Description Actions
{{ val.id }} {% if is_predefined %} ICCD {% endif %} {{ val.value }} {% if not is_predefined %} {% endif %} {{ val.label or '-' }} {% if not is_predefined %} {% endif %} {{ val.description or '-' }} {% if not is_predefined %} {% endif %} {% if is_predefined %} Read-only {% else %}
{% endif %}
{% else %}
No values found for this field.
{% endif %}
{% endif %}
About ICCD Thesaurus

The ICCD Thesaurus is a system of controlled vocabularies used to standardize archaeological data.

How to use this interface:
  1. Select a Table: Choose the database table (e.g., us_table, inventario_materiali_table)
  2. Select a Field: Choose the specific field you want to manage values for
  3. Manage Values: Add, edit, or delete controlled vocabulary values
Types of values:
  • ICCD Predefined Values: Standard ICCD vocabularies (read-only, highlighted in gray)
  • Custom Values: User-added entries (editable and deletable)

Note: Thesaurus values are used as options in data entry form dropdowns. ICCD predefined values cannot be modified to maintain standards compliance.

{% endblock %}