Merge branch 'master' of code-repo.d4science.org:MaDgIK/openaire-library
This commit is contained in:
commit
983961282d
|
@ -252,8 +252,8 @@ export class HelpContentService {
|
||||||
.pipe(catchError(this.handleError));
|
.pipe(catchError(this.handleError));
|
||||||
}
|
}
|
||||||
// End of replacing part of getPages (now getAllPages)
|
// End of replacing part of getPages (now getAllPages)
|
||||||
|
//TODO double check with konstantina - there is no param that we are asking the community pages. without pid we get all portalTypes
|
||||||
getAllPages(helpContentUrl:string) {//,pid:string,with_positions:boolean=null) {
|
getAllPages(helpContentUrl:string, pid:string = null) {//with_positions:boolean=null) {
|
||||||
// let parameters: string = "";
|
// let parameters: string = "";
|
||||||
// if(pid || with_positions == true || with_positions == false) {
|
// if(pid || with_positions == true || with_positions == false) {
|
||||||
// parameters = "?";
|
// parameters = "?";
|
||||||
|
@ -264,7 +264,7 @@ export class HelpContentService {
|
||||||
// parameters += "&with_positions="+with_positions;
|
// parameters += "&with_positions="+with_positions;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
return this.http.get<Array<Page>>(helpContentUrl + 'page')
|
return this.http.get<Array<Page>>(helpContentUrl + 'page' + (pid?"pid="+pid:""))
|
||||||
//.map(res => <Array<Page>> res.json())
|
//.map(res => <Array<Page>> res.json())
|
||||||
.pipe(catchError(this.handleError));
|
.pipe(catchError(this.handleError));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue