{% if grouped_series %}
{% for study_uid, study in grouped_series %}
-
+ {{ study.description|default:"(no description)" }}
({{ study_uid }}) — {{ study.series|length }} series
@@ -27,6 +27,20 @@
+ {% if study.partial_imported_uids %}
+
+
+ Partial import detected:
+ {{ study.partial_imported_count }} series in this study already exist.
+ The highlighted rows can finish importing the remaining images.
+
+
+
+ {% endif %}
{% if study.import_suggestions %}
Study already imported:
@@ -51,7 +65,19 @@
{% endif %}
{% for series, n, tags, date in study.series %}
- {% include 'atlas/partials/_series_item.html' with show_tags_link=True %}
+ {% if series in study.partial_imported_uids %}
+ {% if case %}
+ {% include 'atlas/partials/_series_item.html' with show_tags_link=True series_is_partial=True series_item_classes='series-item--partial-import' import_case_id=case.pk %}
+ {% else %}
+ {% include 'atlas/partials/_series_item.html' with show_tags_link=True series_is_partial=True series_item_classes='series-item--partial-import' %}
+ {% endif %}
+ {% else %}
+ {% if case %}
+ {% include 'atlas/partials/_series_item.html' with show_tags_link=True series_is_partial=False series_item_classes='' import_case_id=case.pk %}
+ {% else %}
+ {% include 'atlas/partials/_series_item.html' with show_tags_link=True series_is_partial=False series_item_classes='' %}
+ {% endif %}
+ {% endif %}
{% endfor %}
@@ -59,7 +85,11 @@
{% else %}
{% for series, n, tags, date in series_list %}
- {% include 'atlas/partials/_series_item.html' %}
+ {% if case %}
+ {% include 'atlas/partials/_series_item.html' with series_is_partial=False series_item_classes='' import_case_id=case.pk %}
+ {% else %}
+ {% include 'atlas/partials/_series_item.html' with series_is_partial=False series_item_classes='' %}
+ {% endif %}
{% endfor %}