diff --git a/layouts/custom/repository.html b/layouts/custom/repository.html
index 84d19fca56391c55ce6175d26ecf7c4024eefbf7..6d30a6c5a86fd3f1667699a29ba7cd54f0ac79a9 100644
--- a/layouts/custom/repository.html
+++ b/layouts/custom/repository.html
@@ -857,14 +857,19 @@
                     var row_ag = newRow.insertCell(4)
                     var row_et = newRow.insertCell(5)
                     var thm_pr = document.createElement("img")
-                    thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Pr/" + repo[i]["Disease Status"] + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Pr.jpg"
+                    if (repo[i]["Disease Status"] == "Donor") {
+                        var dis_status = "D"
+                    } else {
+                        var dis_status = repo[i]["Disease Status"]
+                    }
+                    thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Pr/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Pr.jpg"
                     thm_pr.height = "75"
                     row_he_pr.appendChild(thm_pr)
                     thm_pr.onerror=function(){
                         this.remove()
                     }
                     var thm_bl = document.createElement("img")
-                    thm_bl.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Bl/" + repo[i]["Disease Status"] + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Bl.jpg"
+                    thm_bl.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Bl/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Bl.jpg"
                     thm_bl.height = "75"
                     row_he_bl.appendChild(thm_bl)
                     thm_bl.onerror=function(){