Skip to content

Commit a89babf

Browse files
committed
Merge branch 'master' of https://github.com/ImagingDataCommons/IDC-WebApp into idc-test-sp
2 parents 3ce8984 + 5bfe7d7 commit a89babf

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

shell/database-setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ else
7878
mysql -u$MYSQL_ROOT_USER -h $MYSQL_DB_HOST -p$MYSQL_ROOT_PASSWORD -D$DATABASE_NAME < ${HOMEROOT}/scripts/${METADATA_SQL_FILE}
7979
fi
8080
81-
8281
echo "Adding Django site IDs..."
8382
python3 ${HOMEROOT}/scripts/add_site_ids.py
8483

static/js/explore.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ require([
170170
});
171171

172172
tippy('.tooltip_filter_info',{
173-
content: 'Each chart below reports the number of cases (or patients) for all values within a given attribute. '+
174-
'For certain attributes (e.g. Modality) several distinct values may apply to the same case.',
173+
content: 'Each chart below reports the number of cases (or patients) for all values within a given attribute, given the currently defined filter set. Once a case is selected, all series for that case, including those that do not meet the search criteria, are included. For example, cases selected based on the presence of CT modality may also contain PET modality, and thus counts for both values will appear in the chart, and the manifest.',
175174
theme: 'light',
176175
placement: 'right-end',
177176
arrow: false

static/js/image_search.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,10 @@ require([
14641464
if ('attributes' in data.derived_set[facetSet]){
14651465

14661466
dicofdic = {'unfilt': data.derived_set[facetSet].attributes, 'filt': ''}
1467-
if (isFiltered){
1467+
if (isFiltered && data.filtered_counts.hasOwnProperty('derived_set')
1468+
&& data.filtered_counts.derived_set.hasOwnProperty(facetSet)
1469+
&& data.filtered_counts.derived_set[facetSet].hasOwnProperty('attributes')
1470+
) {
14681471
dicofdic['filt'] = data.filtered_counts.derived_set[facetSet].attributes;
14691472
}
14701473
else{

static/js/sapien.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,20 @@ require([
8888
var groups = [];
8989
var filters = [];
9090
var values = [];
91-
id.site === "Head and Neck"? values.push("Head-Neck") : values.push(id.site);
92-
id.site === "Colorectal"? values.push("Colon") : values.push(id.site);
91+
92+
if (id.site === "Head and Neck" || id.site === "Head-and-Neck")
93+
{
94+
values.push("Head-Neck");
95+
}
96+
else if (id.site == "Colorectal")
97+
{
98+
values.push("Colon");
99+
}
100+
else
101+
{
102+
values.push(id.site)
103+
}
104+
93105
filters.push(
94106
{
95107
'id': '128',

0 commit comments

Comments
 (0)