aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2016-08-17 17:42:32 +0000
committerzsloan2016-08-17 17:42:32 +0000
commit1d1d4e702b6da30e77d8a5dea3990a0e2d0c752a (patch)
treeac34baa77221a9aa1d443b8e2a401bfc7e349397
parente695e8d162ca04f41694a525e93ced1b9d23a85b (diff)
downloadgenenetwork2-1d1d4e702b6da30e77d8a5dea3990a0e2d0c752a.tar.gz
Fixed problem where Year column didn't sort properly in phenotype search and global search results
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html2
-rw-r--r--wqflask/wqflask/templates/search_result_page.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 9be0349f..b28a34df 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -52,7 +52,7 @@
<td><a href="{{ url_for('show_trait_page', trait_id = this_trait.name, dataset = this_trait.dataset.name)}}">{{ this_trait.name }}</a></td>
<td>{{ this_trait.description_display }}</td>
<td>{{ this_trait.authors }}</td>
- <td><a href="{{ this_trait.pubmed_link }}">{{ this_trait.pubmed_text }}</a></td>
+ <td data-order="{{ this_trait.pubmed_text }}"><a href="{{ this_trait.pubmed_link }}">{{ this_trait.pubmed_text }}</a></td>
<td align="right">{% if this_trait.LRS_score_repr != "N/A" %}{{ '%0.1f' % this_trait.LRS_score_repr|float }}{% else %}N/A{% endif %}</td>
<td align="right">{{ this_trait.LRS_location_repr }}</td>
<td align="right">{% if this_trait.additive != "" %}{{ this_trait.additive }}{% else %}N/A{% endif %}</td>
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index bf1475ff..b4881c25 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -117,7 +117,7 @@
{% elif dataset.type == 'Publish' %}
<TD>{{ this_trait.description_display }}</TD>
<TD>{{ this_trait.authors }}</TD>
- <TD>
+ <TD data-order="{{ this_trait.pubmed_text }}">
<a href="{{ this_trait.pubmed_link }}">
{{ this_trait.pubmed_text }}
</a>