Undo -> Remove getDataProviders

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@51053 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-03-06 14:33:59 +00:00
parent 512da32007
commit a9eed54efd
1 changed files with 4 additions and 0 deletions

View File

@ -385,6 +385,10 @@ export class HelpContentService {
return Observable.throw(error.json().error || 'Server error'); return Observable.throw(error.json().error || 'Server error');
} }
getDataProviders() {
return this.http.get('https://beta.services.openaire.eu/search/v2/api/datasources?format=json').map(res => <any> res.json()).map(res => res.results).do(res => {console.log(res)}).catch(this.handleError);
}
getStatistics(community_pid: string) { getStatistics(community_pid: string) {
return this.http.get(this._helpContentUrl + 'statistics/'+community_pid) return this.http.get(this._helpContentUrl + 'statistics/'+community_pid)
.map(res => <CommunityStatistics> res.json()) .map(res => <CommunityStatistics> res.json())