diff options
author | zsloan | 2023-04-11 18:15:14 +0000 |
---|---|---|
committer | zsloan | 2023-04-11 18:15:14 +0000 |
commit | e2e78c906ffebc84b59f1f8b3aa921c3b6f3d872 (patch) | |
tree | 94181cefb51acc3f01a4b90bf5b9f46166c2801f | |
parent | b8b62aea1c7924e2ee7455c6fe8b34eee7cb8e74 (diff) | |
download | genenetwork2-e2e78c906ffebc84b59f1f8b3aa921c3b6f3d872.tar.gz |
Fix bug where publication years had links even when there's no PMID
This was just caused by the correlation code not directly being passed the PMID (and instead only being passed the link and the text), so the logic in the table code needed to be changed to check for the link instead of the PMID
-rw-r--r-- | wqflask/wqflask/templates/correlation_page.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 29fdc5f1..a85ac19b 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -411,7 +411,7 @@ 'data': null, 'width': "80px", 'render': function(data) { - if (data.pubmed_id != "N/A"){ + if (data.pubmed_link != "N/A"){ return '<a href="' + data.pubmed_link + '">' + data.pubmed_text + '</a>' } else { return data.pubmed_text |