{% extends "manage/base.html" %} {% load i18n base_tags breadcrumbs generic_delete content_delete pagination_tags %} {% block breadcrumbs %} {% breadcrumbs "Collection groups:../../../" collection.collectiongroup collection %} {% endblock %} {% block extrahead %} {% endblock %} {% block content %} {% with collection.collectiongroup as collectiongroup %}

{{ collection }}

elements-tab
{% head "Collection meta data" %} {% head "Publishing status" %}

{% if collection.is_publishable %} {% trans "This collection is ready to use" %} {% else %} {% trans "This collection is NOT ready to use" %} {% endif %} ({% blocktrans %}go to publishing steps tab for more details{% endblocktrans %})

{% head "Fields" %} {% for field in collection.fields.all %} {% endfor %}
{% trans "Name" %}{% trans "Slug" %}{% trans "Field type" %}{% trans "Is matchup" %}
{{ field }}{{ field.slug }}{{ field.get_field_type_display }}{{ field.is_matchup|yesno:"sí,no" }}
{% with collection.item_set.all as items_parsed %} {% head "Items parsed" %}

{% blocktrans with items_parsed.count as items_number %} {{ items_number }} extracted elements{% endblocktrans %}

{% autopaginate items_parsed %} {% if items_parsed %}
{% paginate %}
{% paginate %}
{% else %} {% trans "There are no items parsed for this collection" %} {% endif %} {% endwith %}
{% with collection.item_set.invalids as items_parsed %} {% head "Invalid elements" %}

{% blocktrans with items_parsed.count as items_number %} {{ items_number }} invalid elements{% endblocktrans %}

{% autopaginate items_parsed %} {% if items_parsed %}
{% paginate %}
{% paginate %}
{% else %} {% trans "There are no invalid items for this collection" %} {% endif %} {% endwith %}
{% if not collection.fields.all %}

{% trans "There is no crawler collection mapped yet" %}

{% trans "You can not map a collection without fields. Please edit this collection and add some fields to it." %}

{% else %} {% with collection.crawler_collection as crawler_collection %} {% if crawler_collection %} {% head "Crawling information" %} {% head "Field mapping" %} {% for field in collection.fields.all %} {% endfor %}
{% trans "P. Layer" %}{% trans "Scraping tool" %}
{{ field.slug }}{{ field.mapped_field }}{% if field.custom_format %} ({{ field.custom_format }}){% endif %}
{% head "Parameters" %} {% head "Crawler schema" %}
{{ crawler_collection.schema|json_format }}
{% else %}

{% trans "There is no crawler collection mapped yet" %}

{% endif %} {% endwith %} {% endif %}
  1. {% trans "Collection well defined" %}

    {% if collection.is_well_defined %} {% trans "The collection is properly defined." %} {% else %} {% trans "The collection is not properly defined. Maybe left:" %}

    • {% trans "A field as identifier" %}
    • {% trans "A field as text representation" %}
    • {% trans "All the fields are mapped properly" %}
    {% endif %}

  2. {% trans "First crawl" %}

    {% if collection.first_crawl_done %} {% trans "The first crawl has been done" %} {% else %} {% trans "There is no crawl done for this collection" %} {% endif %}

  3. {% trans "First crawl validation" %}

    {% if collection.crawling_checked %} {% trans "The crawl was checked as correct" %} {% else %} {% url collection_source collection.slug as url_result %} {% blocktrans %} The first crawl has not been checked yet. To check it take a look to the result XML and see if everything is correct. {% endblocktrans %} {% endif %}

    {% csrf_token %}

{% endwith %} {% endblock %}