[new-search | DONE | FIXED]: result-preview.component.ts: Removed this.projectActions() out of allowActions condition | searchProjects.service.ts: Updated method "getFunders()" to query new search json API (portal-search) | add-projects.component.ts: In method "_getOpenaireProjects()", call "_searchProjectsService.advancedSearchProjects()" instead of searchProjects() & updated method "buildQueryParameters()" to build parameters according to the new search API | add-content-providers.component.ts: In method "_getOpenaireContentProviders()", call "searchDataprovidersService.advancedSearchDataproviders()" instead of "searchDataproviders()".
This commit is contained in:
parent
716fbd7f4f
commit
21712e8bc2
|
|
@ -164,7 +164,7 @@ export class AddContentProvidersComponent implements OnInit {
|
|||
if (this.subResults) {
|
||||
this.subResults.unsubscribe();
|
||||
}
|
||||
this.subResults = this.searchDataprovidersService.searchDataproviders(parameters, null, page, size, [], this.properties).subscribe(
|
||||
this.subResults = this.searchDataprovidersService.advancedSearchDataproviders(parameters, page, size, this.properties, null, [], null, false, true).subscribe(
|
||||
data => {
|
||||
this.openaireSearchUtils.totalResults = data[0];
|
||||
this.openaireContentProviders = data[1];
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ export class AddProjectsComponent implements OnInit {
|
|||
if (this.subResults) {
|
||||
this.subResults.unsubscribe();
|
||||
}
|
||||
this.subResults = this._searchProjectsService.searchProjects(parameters, null, page, size, [], this.properties).subscribe(
|
||||
this.subResults = this._searchProjectsService.advancedSearchProjects(parameters, page, size, properties, null, [], null, true, false).subscribe(
|
||||
data => {
|
||||
this.openaireSearchUtils.totalResults = data[0];
|
||||
this.openaireProjects = data[1];
|
||||
|
|
@ -273,12 +273,12 @@ export class AddProjectsComponent implements OnInit {
|
|||
this.queryParameters = "";
|
||||
|
||||
if (this.openaireSearchUtils.keyword) {
|
||||
this.queryParameters = "q=" + StringUtils.URIEncode(this.openaireSearchUtils.keyword);
|
||||
this.queryParameters = "search=" + StringUtils.URIEncode(this.openaireSearchUtils.keyword);
|
||||
}
|
||||
|
||||
if (this.selectedFunderId) {
|
||||
this.queryParameters += this.queryParameters ? "&" : "";
|
||||
this.queryParameters += "fq=funder exact " + '"' + StringUtils.URIEncode(this.selectedFunderId) + '"';
|
||||
this.queryParameters += "funder=" + StringUtils.quoteAndURIEncode(this.selectedFunderId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue