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',
Handlebars.registerHelper('toHumanDate', function(val) {
if (!val) return "";
return val;//localization.formatDate(val, 'f');
return val; //localization.formatDate(val, 'f');
});
Handlebars.registerHelper('tt', function(str) {
//return localization.tt(str);
......@@ -67,6 +67,9 @@ define(['require',
case '==':
return (v1 == v2) ? options.fn(this) : options.inverse(this);
break;
case '!==':
return (v1 !== v2) ? options.fn(this) : options.inverse(this);
break;
case '===':
return (v1 === v2) ? options.fn(this) : options.inverse(this);
break;
......
......@@ -31,28 +31,30 @@
<div class="col-sm-8 inline-content-fr no-padding-left">
<div class="inline" data-id="colManager"></div>
<div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel">
<input type="checkbox" data-id="checkDeletedEntity" data-value="includeDE" />
<label class="checkbox-inline btn" for="historicalentities">
<input type="checkbox" data-id="checkDeletedEntity" data-value="includeDE"
id="historicalentities"/>
<b>Show historical entities</b></label>
</div>
<div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel">
<input type="checkbox" data-id="checkSubClassification" data-value="excludeSC"/>
<label class="checkbox-inline btn" for="subclassifications">
<input type="checkbox" data-id="checkSubClassification" data-value="excludeSC" id="subclassifications"/>
<b>Exclude sub-classifications</b></label>
</div>
{{#ifCond fromView '!==' "classification"}}
<div class="inline" data-id="containerCheckBox" style="display: none;">
<label class="checkbox-inline btn" for="inputLabel">
<input type="checkbox" data-id="checkSubType" data-value="excludeST"/>
<label class="checkbox-inline btn" for="subtypes">
<input type="checkbox" data-id="checkSubType" data-value="excludeST" id="subtypes"/>
<b>Exclude sub-types</b></label>
</div>
{{/ifCond}}
<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>
</div>
</div>
</div>
<div id="r_searchResultTableLayoutView">
<h1><b>{{searchType}}</b></h1>
{{#if entityCreate}}
<h1><b>{{searchType}}</b></h1> {{#if entityCreate}}
<div class="entityLink" style="display:none">
<p class="entityLink">Search Atlas for existing entities or
<a href="javascript:void(0)" data-id='createEntity'> create new entity </a>
......
......@@ -72,7 +72,8 @@ define(['require',
templateHelpers: function() {
return {
entityCreate: Globals.entityCreate,
searchType: this.searchType
searchType: this.searchType,
fromView: this.fromView
};
},
/** ui events hash */
......@@ -451,7 +452,7 @@ define(['require',
'excludeDeletedEntities': (this.value.includeDE ? false : true),
'includeSubClassifications': (this.value.excludeSC ? 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) {
......@@ -527,6 +528,9 @@ define(['require',
var table = new TableLayout(_.extend({}, that.commonTableOptions, {
columns: columns
}));
if (!that.REntityTableLayoutView) {
return;
}
that.REntityTableLayoutView.show(table);
if (that.value.searchType !== "dsl") {
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