Skip to content

Commit

Permalink
Merge pull request #9 from CBIIT/develop
Browse files Browse the repository at this point in the history
Change the text of the first column to "GDC Term" if no ICD-O code ma…
  • Loading branch information
David-YuWei authored Dec 12, 2017
2 parents dfc6f02 + 6b2d81e commit ec70423
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
19 changes: 16 additions & 3 deletions client/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,7 @@ const func = {
});
}
items.forEach(function(it){
if(it.s == undefined) return;
let cache = {};
let tmp_s = [];
it.s.forEach(function(s){
Expand Down Expand Up @@ -2130,8 +2131,12 @@ let tmpl = {
+'<div class="clearfix"></div>'
+'<div id="gdc-syn-data-list" class="table-container">'
+'<div class="table-thead row">'
+'{{if icdo}}<div class="table-th col-xs-2">ICD-O-3 Code</div>{{/if}}'
+'{{if icdo}}'
+'<div class="table-th col-xs-2">ICD-O-3 Code</div>'
+'<div class="table-th col-xs-3">ICD-O-3 Term</div>'
+'{{else}}'
+'<div class="table-th col-xs-5">GDC Term</div>'
+'{{/if}}'
+'<div class="table-th col-xs-2">NCIt Code</div>'
+'<div class="table-th col-xs-5">NCIt Terms</div>'
+'</div>'
Expand All @@ -2140,8 +2145,12 @@ let tmpl = {
+'{{for items}}'
+'{{if e == true || ~root.targets == null}}'
+'<div class="table-row row">'
+'{{if ~root.icdo}}<div class="table-td col-xs-2">{{:i_c.c}}</div>{{/if}}'
+'{{if ~root.icdo}}'
+'<div class="table-td col-xs-2">{{:i_c.c}}</div>'
+'<div class="table-td col-xs-3">{{:n}}</div>'
+'{{else}}'
+'<div class="table-td col-xs-5">{{:n}}</div>'
+'{{/if}}'
+'<div class="table-td col-xs-2">'
+'{{if n_c && n_c !== ""}}'
+'{{* if((/^C[1-9]/g).test(data.n_c)) { }}<a class="table-td-link" href="javascript:ncitDetails(\'{{:n_c}}\');">{{:n_c}}</a> (NCIt)'
Expand All @@ -2155,8 +2164,12 @@ let tmpl = {
+'</div>'
+'{{else}}'
+'<div class="table-row row" style="display: none;">'
+'{{if ~root.icdo}}<div class="table-td col-xs-2">{{:i_c.c}}</div>{{/if}}'
+'{{if ~root.icdo}}'
+'<div class="table-td col-xs-2">{{:i_c.c}}</div>'
+'<div class="table-td col-xs-3">{{:n}}</div>'
+'{{else}}'
+'<div class="table-td col-xs-5">{{:n}}</div>'
+'{{/if}}'
+'<div class="table-td col-xs-2">'
+'{{if n_c && n_c !== ""}}'
+'{{* if((/^C[1-9]/g).test(data.n_c)) { }}<a class="table-td-link" href="javascript:ncitDetails(\'{{:n_c}}\');">{{:n_c}}</a> (NCIt)'
Expand Down
1 change: 1 addition & 0 deletions client/src/dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const func = {
});
}
items.forEach(function(it){
if(it.s == undefined) return;
let cache = {};
let tmp_s = [];
it.s.forEach(function(s){
Expand Down
18 changes: 15 additions & 3 deletions client/src/dialog/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ let tmpl = {
+'<div class="clearfix"></div>'
+'<div id="gdc-syn-data-list" class="table-container">'
+'<div class="table-thead row">'
+'{{if icdo}}<div class="table-th col-xs-2">ICD-O-3 Code</div>{{/if}}'
+'{{if icdo}}'
+'<div class="table-th col-xs-2">ICD-O-3 Code</div>'
+'<div class="table-th col-xs-3">ICD-O-3 Term</div>'
+'{{else}}'
+'<div class="table-th col-xs-5">GDC Term</div>'
+'{{/if}}'
+'<div class="table-th col-xs-2">NCIt Code</div>'
+'<div class="table-th col-xs-5">NCIt Terms</div>'
+'</div>'
Expand All @@ -85,8 +89,12 @@ let tmpl = {
+'{{for items}}'
+'{{if e == true || ~root.targets == null}}'
+'<div class="table-row row">'
+'{{if ~root.icdo}}<div class="table-td col-xs-2">{{:i_c.c}}</div>{{/if}}'
+'{{if ~root.icdo}}'
+'<div class="table-td col-xs-2">{{:i_c.c}}</div>'
+'<div class="table-td col-xs-3">{{:n}}</div>'
+'{{else}}'
+'<div class="table-td col-xs-5">{{:n}}</div>'
+'{{/if}}'
+'<div class="table-td col-xs-2">'
+'{{if n_c && n_c !== ""}}'
+'{{* if((/^C[1-9]/g).test(data.n_c)) { }}<a class="table-td-link" href="javascript:ncitDetails(\'{{:n_c}}\');">{{:n_c}}</a> (NCIt)'
Expand All @@ -100,8 +108,12 @@ let tmpl = {
+'</div>'
+'{{else}}'
+'<div class="table-row row" style="display: none;">'
+'{{if ~root.icdo}}<div class="table-td col-xs-2">{{:i_c.c}}</div>{{/if}}'
+'{{if ~root.icdo}}'
+'<div class="table-td col-xs-2">{{:i_c.c}}</div>'
+'<div class="table-td col-xs-3">{{:n}}</div>'
+'{{else}}'
+'<div class="table-td col-xs-5">{{:n}}</div>'
+'{{/if}}'
+'<div class="table-td col-xs-2">'
+'{{if n_c && n_c !== ""}}'
+'{{* if((/^C[1-9]/g).test(data.n_c)) { }}<a class="table-td-link" href="javascript:ncitDetails(\'{{:n_c}}\');">{{:n_c}}</a> (NCIt)'
Expand Down

0 comments on commit ec70423

Please sign in to comment.