aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2022-11-28 17:24:41 +0300
committerBonfaceKilz2022-11-28 17:27:28 +0300
commitbc9b4c3e48df84b33b0ecc85258d1043f3d12f72 (patch)
treeb48e0e48674e8d3a5f427960737269276e336a5e /wqflask
parent6e6fd71f3ee8df8c40fe82d5df93bec4a125ed29 (diff)
downloadgenenetwork2-bc9b4c3e48df84b33b0ecc85258d1043f3d12f72.tar.gz
Fetch the accession_id from the dataset object
* wqflask/wqflask/templates/search_result_page.html: Replace metadata.accession_id with dataset.accession_id. * wqflask/wqflask/templates/show_trait.html: Ditto.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html6
-rw-r--r--wqflask/wqflask/templates/show_trait.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 3a6f6e91..e013c7e6 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -17,7 +17,7 @@
<div style="padding-top: 10px; padding-bottom: 10px; font-size: 16px;">
<!-- Need to customize text more for other types of searches -->
- <p>We searched <a href="http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&{% if metadata.accession_id %}GN_AccessionId={{ metadata.accession_id }}{% else %}InfoPageName={{ dataset.name }}{% endif %}">{{ dataset.fullname }}</a>
+ <p>We searched <a href="http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&{% if dataset.accession_id %}GN_AccessionId={{dataset.accession_id }}{% else %}InfoPageName={{ dataset.name }}{% endif %}">{{ dataset.fullname }}</a>
<br>
to find all records
{% if go_term is not none %}
@@ -97,8 +97,8 @@
<input type="hidden" name="database_name" id="database_name" value="{{ dataset.fullname }}">
<input type="hidden" name="file_name" id="file_name" value="search_results">
<input type="hidden" name="filter_term" id="filter_term" value="None">
- {% if metadata.accession_id %}
- <input type="hidden" name="accession_id" id="accession_id" value="{{ metadata.accession_id }}">
+ {% if dataset.accession_id %}
+ <input type="hidden" name="accession_id" id="accession_id" value="{{ dataset.accession_id }}">
{% endif %}
<input type="hidden" name="export_data" id="export_data" value="">
<input type="text" id="searchbox" class="form-control" style="width: 200px; display: inline;" placeholder="Search For...">
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index 4b92545c..b0390ace 100644
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -52,7 +52,7 @@
{% include 'show_trait_details.html' %}
</div>
</div>
- {% if metadata.accession_id %}
+ {% if metadata %}
<div class="panel-heading" data-toggle="collapse" data-parent="#accordion" data-target="#collapseMeta">
<h3 class="panel-title">
<span class="glyphicon glyphicon-chevron-down"></span> Data Set Group: {{ dataset.fullname }}