[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:
parent
231c4ae4db
commit
8481958d00
|
@ -188,7 +188,7 @@ export class SearchStakeholdersComponent {
|
||||||
*/
|
*/
|
||||||
public applyParams(params) {
|
public applyParams(params) {
|
||||||
this.showFunders();
|
this.showFunders();
|
||||||
if (this.searchUtils.keyword && this.searchUtils.keyword != '') {
|
if (this.keyword && this.keyword != '') {
|
||||||
this.searchForKeywords();
|
this.searchForKeywords();
|
||||||
}
|
}
|
||||||
this.checkFilters(params);
|
this.checkFilters(params);
|
||||||
|
@ -221,7 +221,7 @@ export class SearchStakeholdersComponent {
|
||||||
*/
|
*/
|
||||||
private searchForKeywords() {
|
private searchForKeywords() {
|
||||||
let ret = [];
|
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 i = 0; i < this.results.length; i++) {
|
||||||
for (let keyword of keywords) {
|
for (let keyword of keywords) {
|
||||||
keyword = keyword.toLowerCase();
|
keyword = keyword.toLowerCase();
|
||||||
|
|
Loading…
Reference in New Issue