in ui/src/app/common/components/indigo-components/common/search-reagents/search-reagents.controller.js [30:93]
function init() {
vm.model = {
restrictions: searchReagentsService.getRestrictions(),
databases: searchService.getCatalogues()
};
vm.myReagents = {};
vm.activeTabIndex = activeTabIndex;
vm.isSearchResultFound = false;
vm.conditionText = [{
name: 'contains'
}, {
name: 'starts with'
}, {
name: 'ends with'
}, {
name: 'between'
}];
vm.conditionChemicalName = [{
name: 'contains'
}, {
name: 'starts with'
}, {
name: 'ends with'
}];
vm.conditionNumber = [{
name: '>'
}, {
name: '<'
}, {
name: '='
}];
vm.conditionSimilarity = [{
name: 'equal'
}, {
name: 'substructure'
}, {
name: 'similarity'
}];
vm.chooseDBLabel = translateService.translate('CHOOSE_DBS_LABEL');
vm.isAdvancedSearchCollapsed = true;
vm.compoundStateModel = null;
vm.compoundStatesList = [];
// Getting list of coumpound states
dictionaryService.getByName({
name: vm.model.restrictions.advancedSearch.compoundState.name
}, function(dictionary) {
vm.compoundStatesList = dictionary.words;
});
myReagentsSearchQuery = '';
vm.addToStoichTable = addToStoichTable;
vm.addToMyReagentList = addToMyReagentList;
vm.removeFromMyReagentList = removeFromMyReagentList;
vm.isAdvancedSearchFilled = isAdvancedSearchFilled;
vm.filterMyReagents = filterMyReagents;
vm.clearMyReagentsSearchQuery = clearMyReagentsSearchQuery;
vm.searchMyReagents = searchMyReagents;
vm.onChangedStructure = onChangedStructure;
vm.search = search;
vm.cancel = cancel;
vm.updateCompoundState = updateCompoundState;
}