From 48e78b9521b4a1e5c7538869068e1884bab1a97b Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Wed, 11 Jun 2025 12:49:25 -0500
Subject: Specify searchable columns.
---
.../templates/phenotypes/add-phenotypes-base.html | 39 ++++++++++++----------
1 file changed, 21 insertions(+), 18 deletions(-)
(limited to 'uploader/templates')
diff --git a/uploader/templates/phenotypes/add-phenotypes-base.html b/uploader/templates/phenotypes/add-phenotypes-base.html
index a7aaeb0..9730852 100644
--- a/uploader/templates/phenotypes/add-phenotypes-base.html
+++ b/uploader/templates/phenotypes/add-phenotypes-base.html
@@ -92,36 +92,39 @@
[
{data: "index"},
{
+ searchable: true,
data: (pub) => {
- if(pub.PubMed_ID) {
- return `` +
- `${pub.PubMed_ID}`;
- }
- return "";
+ if(pub.PubMed_ID) {
+ return `` +
+ `${pub.PubMed_ID}`;
+ }
+ return "";
}
},
{
+ searchable: true,
data: (pub) => {
- var title = "⸻";
- if(pub.Title) {
- title = pub.Title
- }
- return `` +
`${title}`;
}
},
{
+ searchable: true,
data: (pub) => {
- authors = pub.Authors.split(",").map(
- (item) => {return item.trim();});
- if(authors.length > 1) {
- return authors[0] + ", et. al.";
- }
- return authors[0];
+ authors = pub.Authors.split(",").map(
+ (item) => {return item.trim();});
+ if(authors.length > 1) {
+ return authors[0] + ", et. al.";
+ }
+ return authors[0];
}
}
],
--
cgit v1.2.3