about summary refs log tree commit diff
path: root/uploader/templates/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-05 11:51:25 -0500
committerFrederick Muriuki Muriithi2025-05-05 12:41:50 -0500
commit7057f7ddd0c14790398f65ae7ca1acf10da5a52e (patch)
tree6400fd5a75bcbf954ce7393a97109b9b25cf59eb /uploader/templates/phenotypes
parent8ba9a5831041e41e6e2bec805f72635c6ac13e2c (diff)
downloadgn-uploader-7057f7ddd0c14790398f65ae7ca1acf10da5a52e.tar.gz
Include the publication when provided.
Diffstat (limited to 'uploader/templates/phenotypes')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html1
-rw-r--r--uploader/templates/phenotypes/review-job-data.html15
2 files changed, 14 insertions, 2 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 2ff6a4f..5709491 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -585,6 +585,7 @@
           }));
       });
       formdata.append("resumable-upload", "true");
+      formdata.append("publication-id", $("#txt-publication-id").val());
       return formdata;
   }
 
diff --git a/uploader/templates/phenotypes/review-job-data.html b/uploader/templates/phenotypes/review-job-data.html
index 7bc8c62..befb5e2 100644
--- a/uploader/templates/phenotypes/review-job-data.html
+++ b/uploader/templates/phenotypes/review-job-data.html
@@ -40,9 +40,20 @@
     species &#x201C;<strong>{{species.SpeciesName}} ({{species.FullName}})</strong>&#x201D;
     will be updated as follows:</p>
 
+  <ul>
+    {%if publication%}
+    <li>All {{summary.get("pheno", {}).get("total-data-rows", "0")}} phenotypes
+      are linked to the following publication:
+      <ul>
+        <li><strong>Publication Title:</strong>
+          {{publication.Title or "—"}}</li>
+        <li><strong>Author(s):</strong>
+          {{publication.Authors or "—"}}</li>
+      </ul>
+    </li>
+    {%endif%}
   {%for ftype in ("phenocovar", "pheno", "phenose", "phenonum")%}
   {%if summary.get(ftype, False)%}
-  <ul>
     <li>A total of {{summary[ftype]["number-of-files"]}} files will be processed
       adding {%if ftype == "phenocovar"%}(possibly){%endif%}
       {{summary[ftype]["total-data-rows"]}} new
@@ -53,9 +64,9 @@
       {%endif%}
       to the database.
     </li>
-  </ul>
   {%endif%}
   {%endfor%}
+  </ul>
 
   <a href="#" class="not-implemented btn btn-primary">continue</a>
 </div>