aboutsummaryrefslogtreecommitdiff
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.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 4e142846..c626a589 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -184,10 +184,17 @@
'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."
+ author_string = author_list.slice(0, 6).join(",") + ", et al."
} else{
- return data.authors
+ author_string = data.authors
}
+
+ try {
+ return decodeURIComponent(escape(author_string))
+ } catch(err) {
+ return author_string
+ }
+
}
},
{