{% extends "page.html" %} {% import "_dgu_jinja_util.html" as m with context %} {% block title %}Podrobnosti vira zunanjega zajema - {{ super() }}{% endblock %} {% block optional_head %} {% endblock %} {% block breadcrumb_content %}
  • Zbirke
  • Viri zunanjega zajema
  • {{c.source.title}}
  • {% endblock %} {% block secondary %}{% endblock %} {% block pre_primary %}

    Vir zunanjega zajema

    {{ super() }} {% endblock %} {% block primary_content_inner %}
    {% if c.source %}
    {% if h.check_access('harvest_source_update', {'id':c.source.id}) %} Uredi vir {% endif %} {% if h.check_access('harvest_job_create', {'source_id':c.source.id}) %} Osveži vir {% endif %}
    {% if not c.source.active %}
    Ta vir zajema ni aktiven, torej se zbirke iz njega ne bodo več zajemale. Doslej zajete zbirke sicer še ostajajo na portalu OPSI.
    {% endif %} {% with job_detail=h.check_access('harvest_job_create', {'source_id':c.source.id}) %} {% if job_detail and not c.source.name %} {% endif %} {% if job_detail %} {% endif %} {% if c.source.title%} {% endif %} {% if c.source.config %} {% else %} {% endif %} {% if job_detail %} {% endif %} {% if job_detail %} {% endif %}
    ID {{c.source.id}}
    URL naslov {{c.source.url}}
    Tip {{c.source.type}}
    Pogostost osveževanja {{(c.source.frequency or '').capitalize()}}
    Aktiven {%if c.source.active%}Da{% else %}Ne{% endif %}
    Ime {{c.source.title}}
    Opis {{c.source.description}}
    Dodatna konfiguracija{{c.source.config}}-
    Uporabnik {{c.source.user_id}}
    Organizacija {% if c.source.publisher_title %} {{c.source.publisher_title}} {% else %} {{c.source.publisher_id}} {% endif %}
    Ustvarjen {{h.render_datetime(c.source.created, with_hours=True)}}
    Št. zajemov {{c.source.status.job_count}}
    Status {% if c.source.status.running_job or c.source.status.last_job%} {% if c.source.status.running_job%}

    Zajem v poteku: {{h.literal(c.source.status.running_job)}}

    {% else %}

    Zadnji zajem:

    {% endif %} Datum: {{h.render_datetime(c.source.status.last_job.created, with_hours=True)}}
    {% if c.source.status.last_job %} Zajem {% if not c.source.status.running_job%} zaključen {% endif %} - {% if not c.source.status.last_job.stats.get('errored') %} ni napak {% else %} Št. napak: {{c.source.status.last_job.stats.get('errored', 0)}} {% endif %} {% if c.source.status.running_job %} do sedaj {% endif %}
    {% if c.source.status.last_job.gather_errors|length>0 %} Napake zajema
      {% for error in c.source.status.last_job.gather_errors %}
    • {% set lines=error.get('message', '').split('\n') %} {% for line in lines %}
      {{line}}
      {% endfor %}
    • {% endfor %}
    {% endif %} {% if c.source.status.last_job.object_errors|length>0 %} Napake zbirk
      {% for error in c.source.status.last_job.object_errors %}
    • Zajem zbirke z GUID {{error.object.guid}}
      {% for section in error.message.split('\n\n') %}
      {% for line in section.split('\n') %}
      {{line}}
      {% endfor %}
      {% endfor %}
    • {% endfor %}
    {% endif %} Zajete zbirke: {% for result in ['new', 'reimported', 'errored'] %} {{result}}: {{c.source.status.last_job.stats.get(result, 0)}} {% endfor %} {% for result in ['deleted', 'unchanged'] %} {% if c.source.status.last_job.stats.get(result) %} {{result}}: {{c.source.status.last_job.stats.get(result, 0)}} {% endif %} {% endfor %}
    {% endif %} {% endif %} {% if not (c.source.status.running_job or c.source.status.last_job)%} Zajem še ne poteka {% endif %}
    Naslednji zajem: {% if c.source.next_run%}
    Naslednji avtomatski zajem: {{h.render_datetime(c.source.next_run, with_hours=True)}}
    {% endif %} {% if c.source.status.next_harvest_job %}
    Načrtovan začetek v 10 minutah.
    {% endif %}
    Skupno število zbirk (iz vseh zajemov) {{c.source.status.total_datasets}}
    Zbirke {% if job_detail %}
    Preden se te zbirke ali njihove spremembe pojavijo na portalu in med rezultati iskalnika, lahko še preteče okoli 10 minut.
    {% endif %}

    Skupno {{c.page.item_count}} zbirk.

    {% for item in c.page.items %} {% endfor %} {{ m.paginator(c.page)}}
    {% endif %}
    {% endblock %}