about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-04-16 14:50:20 -0500
committerFrederick Muriuki Muriithi2026-04-16 14:50:20 -0500
commit112aa267709b130447d8ca387631f5dbeba02366 (patch)
tree8c94b3e80841af16b18316cdb5ba62de5169f119 /uploader
parente734e61219e1e23784cf137c24f5102e6feac8ca (diff)
downloadgn-uploader-main.tar.gz
Enable search by the publications titles and authors. HEAD main
Diffstat (limited to 'uploader')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html26
1 files changed, 24 insertions, 2 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index 3bb2586..fc84757 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -148,14 +148,36 @@
                       return `<a href="${url.toString()}" target="_blank">` +
                           `${pheno.InbredSetCode}_${pheno.xref_id}` +
                           `</a>`;
-                  }
+                  },
+                  title: "Record",
+                  visible: true,
+                  searchable: true
               },
               {
                   data: function(pheno) {
                       return (pheno.Post_publication_description ||
                               pheno.Original_description ||
                               pheno.Pre_publication_description);
-                  }
+                  },
+                  title: "Description",
+                  visible: true,
+                  searchable: true
+              },
+              {
+                  data: function(pheno) {
+                      return pheno.publication.Title;
+                  },
+                  title: "Publication Title",
+                  visible: false,
+                  searchable: true
+              },
+              {
+                  data: function(pheno) {
+                      return pheno.publication.Authors;
+                  },
+                  title: "Authors",
+                  visible: false,
+                  searchable: true
               }
           ],
           {