{% extends "source/admin_base.html" %} {% block subtitle %}{{ _('Job Report') }} - {{ super() }}{% endblock %} {% block primary_content_inner %}

{{ h.nav_named_link(_('Back to job list'), 'harvest_job_list', source=source.name, class_='btn', icon='arrow-left')}}

{{ _('Job Report') }}

{% snippet 'snippets/job_details.html', job=c.job %} {% if c.job.status == 'Finished' %} {% if c.job.object_error_summary|length == 0 and c.job.gather_error_summary|length == 0 %}

{{ _('Error Summary') }}

{{ _('No errors for this job') }}

{% else %}

{{ _('Error Summary') }} {{ _('Only the 20 most frequent errors are shown') }}

{% if c.job.gather_error_summary|length > 0 %}

{{ _('Job Errors') }}

{% snippet 'snippets/job_error_summary.html', summary=c.job.gather_error_summary %} {% endif %} {% if c.job.object_error_summary|length > 0 %}

{{ _('Document Errors') }}

{% snippet 'snippets/job_error_summary.html', summary=c.job.object_error_summary %} {% endif %} {% endif %} {% if c.job_report.gather_errors|length > 0 or c.job_report.object_errors.keys()|length > 0 %}

{{ _('Error Report') }}

{% if c.job_report.gather_errors|length > 0 %}

{{ _('Job Errors') }}

{% for error in c.job_report.gather_errors %} {% endfor %}
{{ error.message }}
{% endif %} {% if c.job_report.object_errors.keys()|length > 0 %}

{{ _('Document Errors') }} {{ c.job_report.object_errors.keys()|length}} {{ _('documents with errors') }}

{% for harvest_object_id in c.job_report.object_errors.keys() %} {% set object = c.job_report.object_errors[harvest_object_id] %} {% endfor %}
{% if 'original_url' in object%} {{ _('Remote content') }} {% endif %} {{ _('Local content') }}
{{ object.guid }}
{% for error in object.errors %}
{{ error.message }} {% if error.line %} (line {{ error.line }}) {% endif %}
{% endfor %}
{% endif %} {% endif %} {% endif %} {% endblock %}