From 87663622e1fd011571650de6c35293ca6d4fce8b Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Thu, 29 Jul 2021 15:26:31 -0500
Subject: [PATCH] Update repo html to display images based on study id only

---
 layouts/custom/repository.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/custom/repository.html b/layouts/custom/repository.html
index 43ea5ec..506dc1d 100644
--- a/layouts/custom/repository.html
+++ b/layouts/custom/repository.html
@@ -866,7 +866,7 @@
                         var dis_status = repo[i]["Disease Status"]
                     }
                     for (j = 0; j < thumbnails.length; j++) {
-                        if (thumbnails[j].patient == dis_status + ("000"+repo[i]["Study ID"]).slice(-3)) {
+                        if (thumbnails[j].patient == repo[i]["Study ID"]) {
                             if (thumbnails[j].Pr != ""){
                                 thm_pr_file = thumbnails[j].Pr
                                 thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/Pr/" + thm_pr_file
-- 
GitLab