{% extends "wagtailadmin/base.html" %} {% load static i18n %} {% block titletag %}{% trans "Dataset Helper" %}{% endblock %} {% block extra_css %} {{ block.super }} {% endblock %} {% block content %} {% trans "Dataset helper" as header_title %} {% url "dataset_helper:js_catalog" as js_catalog_url %} {% include "wagtailadmin/shared/header.html" with title=header_title icon="pick" %}
{% get_current_language as LANGUAGE_CODE %} {% trans "Complete the required settings first" as locked_title %}
{% include "dataset_helper/_settings.html" %}
GeoManager · {% trans "Layer catalog for the Climweb map viewer" %}
{% trans "A new catalog version is available" %} —
{% trans "Compare the changeset and import the new version." %}
{% trans "No catalog loaded yet" %}
{% trans "The local catalog is empty. Load the embedded catalog to populate it, then synchronize with Climweb." %}
-
{% trans "Catalog layers" %}
-
{% trans "Enabled" %}
-
{% trans "Synced" %}

{% blocktrans %}Bootstrap the Climweb administrative boundaries layer from the OCHA Common Operational Datasets (COD-AB) published on HDX. The shapefile archive for the configured country is downloaded, its columns are normalized per admin level, and every level is loaded into the boundary manager (served as vector tiles).{% endblocktrans %}

{% trans "Source" %}
OCHA COD-AB
{% trans "Country" %}
{% if plugin_settings.country_name %}{{ plugin_settings.country_name }} ({{ plugin_settings.country_alpha3|upper }}){% else %}{% trans "not configured" %}{% endif %}
{% trans "Features loaded" %}
-
{% trans "How it works" %}
  1. {% blocktrans %}The country comes from the plugin settings (ISO codes). Set it on the Settings tab first.{% endblocktrans %}
  2. {% blocktrans %}The COD-AB shapefile ZIP is located on HDX automatically (cod-ab-<iso3>) and downloaded.{% endblocktrans %}
  3. {% blocktrans %}Each admin level (adm0, adm1, …) is extracted, its columns are normalized, re-zipped and loaded.{% endblocktrans %}
  4. {% blocktrans %}Re-running the import replaces the previously loaded levels for this country (idempotent).{% endblocktrans %}

{% trans "Loaded admin levels" %}

{% trans "Loading…" %}

{% trans "Map preview" %}

{% trans "Vector tiles served by the boundary manager." %}

{% trans "Danger Zone" %}

{% trans "Clear catalog-managed datasets" %}

{% blocktrans %}Delete every Climweb Dataset this plugin provisioned (tracked via CatalogEntry.dataset_id) and its dedicated Metadata, then sweep any SubCategories and Categories that no longer hold anything. Datasets you created outside the plugin are kept; so are taxonomy nodes still pointed to by non-plugin Datasets. Catalog entries go back to pending_add and can be re-provisioned by clicking Synchronize with Climweb.{% endblocktrans %}


{% trans "Wipe ALL Climweb data (nuclear)" %}

{% blocktrans %}This deletes every Dataset, SubCategory, and Category in the Climweb geomanager — including any not created by this plugin. Use only if you understand what this implies. Cannot be undone.{% endblocktrans %}

{% endblock %}