[master | DONE | CHANGED] Researcher dashboards change query - remove irish filter

This commit is contained in:
argirok 2024-01-29 17:14:23 +02:00
parent b07f99faed
commit 2af5775104
3 changed files with 4 additions and 5 deletions

View File

@ -121,9 +121,9 @@ export class ResearcherComponent extends ResearcherBaseComponent implements OnI
this.orcid = {
success: () => {
let name = this.author.authorGivenName + " " + this.author.authorFamilyName?this.author.authorFamilyName:"";
let name = this.author.authorGivenName + " " + (this.author.authorFamilyName?this.author.authorFamilyName:"");
this._customFilterService.setCustomFilter(
[new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false),
[/*new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false),*/
new SearchCustomFilter("Orcid", "authorId", this.authorId, name)
]);
this.title = name;

View File

@ -173,8 +173,7 @@ private getOpenaireResultsFor(start, end){
}
}
private getOpenaireResultsObs(author){
let param = '(authorid="' + StringUtils.URIEncode(author.id) + '")'
+' and (country exact "IE")';
let param = '(authorid="' + StringUtils.URIEncode(author.id) + '")';
return this._searchResearchResultsService.numOfResearchOutcomes(param, properties, null).pipe(map(res => {
author.resultsCount = res;
return author;

View File

@ -38,7 +38,7 @@ export class ResearcherBaseComponent extends StakeholderBaseComponent {
}
getResultsForAuthor(){
this.param = '(authorid="' + StringUtils.URIEncode(this.author.id) + '") and (country exact "IE")';
this.param = '(authorid="' + StringUtils.URIEncode(this.author.id) + '")';
this.subscriptions.push(this._searchResearchResultsService.numOfResearchOutcomes(this.param, properties, null).subscribe(res => {
if(this.results?.success) {
this.results?.success(res);