Commit b7f62366 by pratik24mac Committed by Madhan Neethiraj

ATLAS-2538: UI - removed exclude-sub-type checkbox from classification search result page

parent 79eed8c2
...@@ -55,7 +55,7 @@ define(['require', ...@@ -55,7 +55,7 @@ define(['require',
Handlebars.registerHelper('toHumanDate', function(val) { Handlebars.registerHelper('toHumanDate', function(val) {
if (!val) return ""; if (!val) return "";
return val;//localization.formatDate(val, 'f'); return val; //localization.formatDate(val, 'f');
}); });
Handlebars.registerHelper('tt', function(str) { Handlebars.registerHelper('tt', function(str) {
//return localization.tt(str); //return localization.tt(str);
...@@ -67,6 +67,9 @@ define(['require', ...@@ -67,6 +67,9 @@ define(['require',
case '==': case '==':
return (v1 == v2) ? options.fn(this) : options.inverse(this); return (v1 == v2) ? options.fn(this) : options.inverse(this);
break; break;
case '!==':
return (v1 !== v2) ? options.fn(this) : options.inverse(this);
break;
case '===': case '===':
return (v1 === v2) ? options.fn(this) : options.inverse(this); return (v1 === v2) ? options.fn(this) : options.inverse(this);
break; break;
......
...@@ -31,28 +31,30 @@ ...@@ -31,28 +31,30 @@
<div class="col-sm-8 inline-content-fr no-padding-left"> <div class="col-sm-8 inline-content-fr no-padding-left">
<div class="inline" data-id="colManager"></div> <div class="inline" data-id="colManager"></div>
<div class="inline" data-id="containerCheckBox" style="display: none;"> <div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel"> <label class="checkbox-inline btn" for="historicalentities">
<input type="checkbox" data-id="checkDeletedEntity" data-value="includeDE" /> <input type="checkbox" data-id="checkDeletedEntity" data-value="includeDE"
id="historicalentities"/>
<b>Show historical entities</b></label> <b>Show historical entities</b></label>
</div> </div>
<div class="inline" data-id="containerCheckBox" style="display: none;"> <div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel"> <label class="checkbox-inline btn" for="subclassifications">
<input type="checkbox" data-id="checkSubClassification" data-value="excludeSC"/> <input type="checkbox" data-id="checkSubClassification" data-value="excludeSC" id="subclassifications"/>
<b>Exclude sub-classifications</b></label> <b>Exclude sub-classifications</b></label>
</div> </div>
{{#ifCond fromView '!==' "classification"}}
<div class="inline" data-id="containerCheckBox" style="display: none;"> <div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel"> <label class="checkbox-inline btn" for="subtypes">
<input type="checkbox" data-id="checkSubType" data-value="excludeST"/> <input type="checkbox" data-id="checkSubType" data-value="excludeST" id="subtypes"/>
<b>Exclude sub-types</b></label> <b>Exclude sub-types</b></label>
</div> </div>
{{/ifCond}}
<div class="inline"> <div class="inline">
<a href="javascript:void(0)" class=" multiSelectTag assignTag btn btn-action btn-sm" style="display:none" data-id="addAssignTag"><i class="fa fa-plus"></i> Assign Tag</a> <a href="javascript:void(0)" class=" multiSelectTag assignTag btn btn-action btn-sm" style="display:none" data-id="addAssignTag"><i class="fa fa-plus"></i> Assign Tag</a>
</div> </div>
</div> </div>
</div> </div>
<div id="r_searchResultTableLayoutView"> <div id="r_searchResultTableLayoutView">
<h1><b>{{searchType}}</b></h1> <h1><b>{{searchType}}</b></h1> {{#if entityCreate}}
{{#if entityCreate}}
<div class="entityLink" style="display:none"> <div class="entityLink" style="display:none">
<p class="entityLink">Search Atlas for existing entities or <p class="entityLink">Search Atlas for existing entities or
<a href="javascript:void(0)" data-id='createEntity'> create new entity </a> <a href="javascript:void(0)" data-id='createEntity'> create new entity </a>
......
...@@ -72,7 +72,8 @@ define(['require', ...@@ -72,7 +72,8 @@ define(['require',
templateHelpers: function() { templateHelpers: function() {
return { return {
entityCreate: Globals.entityCreate, entityCreate: Globals.entityCreate,
searchType: this.searchType searchType: this.searchType,
fromView: this.fromView
}; };
}, },
/** ui events hash */ /** ui events hash */
...@@ -451,7 +452,7 @@ define(['require', ...@@ -451,7 +452,7 @@ define(['require',
'excludeDeletedEntities': (this.value.includeDE ? false : true), 'excludeDeletedEntities': (this.value.includeDE ? false : true),
'includeSubClassifications': (this.value.excludeSC ? false : true), 'includeSubClassifications': (this.value.excludeSC ? false : true),
'includeSubTypes': (this.value.excludeST ? false : true), 'includeSubTypes': (this.value.excludeST ? false : true),
'includeClassificationAttributes' : true // server will return classication details with guid 'includeClassificationAttributes': true // server will return classication details with guid
} }
} }
if (value) { if (value) {
...@@ -527,6 +528,9 @@ define(['require', ...@@ -527,6 +528,9 @@ define(['require',
var table = new TableLayout(_.extend({}, that.commonTableOptions, { var table = new TableLayout(_.extend({}, that.commonTableOptions, {
columns: columns columns: columns
})); }));
if (!that.REntityTableLayoutView) {
return;
}
that.REntityTableLayoutView.show(table); that.REntityTableLayoutView.show(table);
if (that.value.searchType !== "dsl") { if (that.value.searchType !== "dsl") {
that.ui.containerCheckBox.show(); that.ui.containerCheckBox.show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment