[Monitor | Trunk]: Search stakeholders: Fix a bug on keyword search

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor@58871 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2020-06-09 14:50:43 +00:00
parent 231c4ae4db
commit 8481958d00
1 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ export class SearchStakeholdersComponent {
*/
public applyParams(params) {
this.showFunders();
if (this.searchUtils.keyword && this.searchUtils.keyword != '') {
if (this.keyword && this.keyword != '') {
this.searchForKeywords();
}
this.checkFilters(params);
@ -221,7 +221,7 @@ export class SearchStakeholdersComponent {
*/
private searchForKeywords() {
let ret = [];
let keywords: string[] = this.searchUtils.keyword.split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, -1);
let keywords: string[] = this.keyword.split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, -1);
for (let i = 0; i < this.results.length; i++) {
for (let keyword of keywords) {
keyword = keyword.toLowerCase();