[Library|Trunk]

Search:
- search page component: add check about customFilter
- entities selection: correct the custom filter fields for monitor



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59267 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-08-13 13:18:26 +00:00
parent 6137dc874c
commit 6243ab5b74
2 changed files with 4 additions and 6 deletions

View File

@ -152,10 +152,10 @@ export class EntitiesSelectionComponent {
}
}
}));
} else if((this.customFilter && this.customFilter.queryFieldName == "communityId") && this.properties.adminToolsCommunity === "monitor") {
} else if((this.customFilter && this.customFilter.queryFieldName == "community") && this.properties.adminToolsCommunity === "monitor") {
this.show = 1;
this.disableSelect = true;
} else if(this.customFilter && (this.customFilter.queryFieldName == "relfunderid" || this.customFilter.queryFieldName == "funderid")) {
} else if(this.customFilter && (this.customFilter.queryFieldName == "relfunder" || this.customFilter.queryFieldName == "funder")) {
/*this.showResearchOutcomes = true;
this.showPublications = true;
this.showDatasets = true;

View File

@ -403,10 +403,8 @@ export class NewSearchPageComponent {
}
}
if(this.customFilter.queryFieldName == filter.filterId && values.indexOf(StringUtils.quote(this.customFilter.valueId)) != -1){
this.customFilter.selected = true;
}else{
this.customFilter.selected = false;
if(this.customFilter){
this.customFilter.selected = this.customFilter.queryFieldName == filter.filterId && values.indexOf(StringUtils.quote(this.customFilter.valueId)) != -1;
}
} else if (this.quickFilter && this.quickFilter.filterId == filter.filterId && this.quickFilter.selected) {
for (let filterValue of filter.values) {