about summary refs log tree commit diff
path: root/wqflask/wqflask/templates/gsearch_pheno.html
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/templates/gsearch_pheno.html')
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 2a0e5c0c..fd06b771 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -135,10 +135,10 @@
                       'width': "25%",
                       'data': null,
                       'render': function(data, type, row, meta) {
-			try {
+			                  try {
                             return decodeURIComponent(escape(data.description))
-			} catch {
-			    return escape(data.description)
+			                  } catch {
+			                      return data.description
                         }
                       }
                     },
@@ -146,7 +146,15 @@
                       'title': "Authors",
                       'type': "natural",
                       'width': "25%",
-                      'data': "authors"
+                      'data': null,
+                      'render': function(data, type, row, meta) {
+                        author_list = data.authors.split(",")
+                        if (author_list.length >= 6) {
+                          return author_list.slice(0, 6).join(",") + ", et al."
+                        } else{
+                          return data.authors
+                        }
+                      }
                     },
                     {
                       'title': "Year",