From 32dc033a445dc938098e9c94da70dfedc0ee3b35 Mon Sep 17 00:00:00 2001 From: Rebecca Cremona Date: Tue, 24 Oct 2023 15:30:18 -0400 Subject: [PATCH 1/2] Reword capture engine info in playback tray. --- perma_web/perma/templates/archive/single-link.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/perma_web/perma/templates/archive/single-link.html b/perma_web/perma/templates/archive/single-link.html index 1a36ef250..cd13ea207 100755 --- a/perma_web/perma/templates/archive/single-link.html +++ b/perma_web/perma/templates/archive/single-link.html @@ -146,8 +146,14 @@ {% if request.user.is_staff %}
-
Captured by
-
{{link.captured_by_software}}
+
Source
+ {% if link.captured_by_software == 'upload' %} +
User Upload
+ {% elif link.captured_by_software == 'perma' %} +
Captured by Perma (internal)
+ {% else %} +
Captured by Scoop
+ {% endif %}
{% endif %} {% if can_delete and not link.capture_job.status == 'in_progress' %} From 13a158bfeeaaed3f50e5cda09d12e6d69a75b642 Mon Sep 17 00:00:00 2001 From: Rebecca Cremona Date: Tue, 24 Oct 2023 15:49:42 -0400 Subject: [PATCH 2/2] Display "Source: User Upload" to non-staff. --- perma_web/perma/templates/archive/single-link.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/perma_web/perma/templates/archive/single-link.html b/perma_web/perma/templates/archive/single-link.html index cd13ea207..2d47da57a 100755 --- a/perma_web/perma/templates/archive/single-link.html +++ b/perma_web/perma/templates/archive/single-link.html @@ -155,6 +155,13 @@
Captured by Scoop
{% endif %} + {% else %} + {% if link.captured_by_software == 'upload' %} +
+
Source
+
User Upload
+
+ {% endif %} {% endif %} {% if can_delete and not link.capture_job.status == 'in_progress' %}
@@ -189,6 +196,12 @@
Description
{{link.submitted_description}}
+ {% if link.captured_by_software == 'upload' %} +
+
Source
+
User Upload
+
+ {% endif %} {% endif %} {% comment %} {% if link.organization %}