{% extends "page.html" %} {% block title %}Zunanji zajem virov - {{ super() }}{% endblock %} {% block optional_head %} {% endblock %} {% block breadcrumb_content %}
  • Zbirke
  • Viri zunanjega zajema
  • {% endblock %} {% block secondary %}{% endblock %} {% macro harvest_source_table(sources, can_edit) %} {% set old_publisher=None%} {% set sources=sources%} {% if not can_edit%} {% set sources=h.get_active_sources(sources) %} {% endif %} {% for source in sources %} {% if old_publisher!=source['publisher_id']%} {% if source.get('publisher_title')%} {% else %} {% endif %} {% endif %} {% set old_publisher=source['publisher_id'] %} {% endfor %}
    URL naslov Tip Aktiven Ustvarjen
    {{source['publisher_title']}}{{source['publisher_id']}}
    Ogled   {% if h.check_access('harvest_source_update', {'id':source.id}) %} Uredi   {% endif %} {% if h.check_access('harvest_job_create', {'source_id':source.id})%} Osveži {% endif %} {{h.truncate(source.url, 60)}} {{source.type}} {% if not source.active%}ne{% endif %}aktiven {{h.render_datetime(source.created)}}
    {% endmacro %} {% set can_edit=h.check_access('harvest_source_create') %} {% set org_ids=h.get_org_ids() %} {% block pre_primary %}

    Viri zunanjega zajema

    {{ super() }} {% endblock %} {% block primary_content_inner %}
    {% if can_edit %} Dodaj vir zajema {% endif %}
    {% if can_edit and c.status %}

    Status:

    {{h.literal(c.status)}}
    {% endif %} {% if org_ids %}

    Moje organizacije

    {{harvest_source_table(h.allowed_sources(org_ids), can_edit)}} {% if can_edit %}
    {% endif %} {% endif %} {% if c.sources %}

    Vse organizacije

    {{harvest_source_table(c.sources, can_edit)}} {% if can_edit and not org_ids %}
    {% endif %} {% else %}
    Za zajem še ni definiranih nobenih virov.
    {% endif %}
    {% endblock%}