diff --git a/microsetta_interface/implementation.py b/microsetta_interface/implementation.py index 82ba8158..1c11c461 100644 --- a/microsetta_interface/implementation.py +++ b/microsetta_interface/implementation.py @@ -2694,7 +2694,7 @@ def example_endpoint(): def get_sample_results_experimental(): # use an arbitrary set of credentials sample_output = {'account_id': 'NA', - 'sample_barcode': '000004220', + 'sample_barcode': '0363215283', 'sample_datetime': '2013-04-21T22:00:00', 'sample_edit_locked': False, 'sample_id': 'NA', diff --git a/microsetta_interface/templates/new_results_page.jinja2 b/microsetta_interface/templates/new_results_page.jinja2 index 230df07d..2a052340 100644 --- a/microsetta_interface/templates/new_results_page.jinja2 +++ b/microsetta_interface/templates/new_results_page.jinja2 @@ -478,6 +478,11 @@ span_id = "#dataset_links_builtenv"; break; case "tmi-WGS-gut": + // Temporary workaround - we're going to add the Hadza study to the info['qiita-study-ids'] variable and alter the label to be more appropriate. Remove this line and the following four lines once contextual studies for WGS gut samples are fully restored. + label = '{{ _('The Microsetta Initiative and Comparative Studies') }}'; + span_id = "#dataset_links_tmi"; + info['qiita-study-ids'].push("11358"); + break; case "tmi-16S-gut": case "tmi-WGS-skin": case "tmi-16S-skin": @@ -485,12 +490,12 @@ span_id = "#dataset_links_tmi"; break; case "multipop-16S-gut": - case "multipop-WGS-gut": + //case "multipop-WGS-gut": label = '{{ _('Microbiomes Across the World') }}'; span_id = "#dataset_links_multipopgut"; break; case "lifestage-16S-gut": - case "lifestage-WGS-gut": + //case "lifestage-WGS-gut": label = '{{ _('Microbiomes Across the Lifespan') }}'; span_id = "#dataset_links_lifestagegut"; break; @@ -1294,6 +1299,12 @@ for (let i = 0; i < site_specific_elements.length; i++) { site_specific_elements[i].style.display = ""; } + + // Temporary workaround - we need to disable the Microbiome Map tab for WGS gut samples, overriding the site-specific content framework. Remove this line and the following four lines once contextual studies for WGS gut samples are fully restored. + if(state.dataset_site.value === "gut" && state.dataset_type.value === "WGS") { + document.getElementById("how_you_compare_microbiome_map").style.display = "none"; + document.getElementById("microbial_map_li_element").style.display = "none"; + } } //Called immediately after a tab is shown @@ -1471,7 +1482,7 @@
- {{ _('The results shown in the Microbiome Maps portion of the report relied on data from many different publically accessible microbiome datasets. These different datasets, and links to them, are listed below.') }} + {{ _('The results shown in the report relied on data from different publically accessible microbiome datasets. These different datasets, and links to them, are listed below.') }}