Project

General

Profile

« Previous | Next » 

Revision 55964

[Library|Trunk]

Merge into trunk branch angular7 rev 55729

View differences:

searchZenodoCommunities.service.ts
1 1
import {Injectable} from '@angular/core';
2 2
import {Http} from '@angular/http';
3
import {HttpClient} from "@angular/common/http";
3 4
import{EnvProperties} from '../../utils/properties/env-properties';
4 5

  
5 6
@Injectable()
6 7
export class SearchZenodoCommunitiesService {
7
    constructor(private http: Http ) {}
8
    constructor(private http: HttpClient ) {}
8 9

  
9 10
    searchZCommunities (properties:EnvProperties, communityId: string):any {
10 11
        let url = properties.communityAPI+communityId+"/zenodocommunities";
11 12

  
12
        return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
13
                    .map(res => <any> res.json())
13
        return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url);
14
                    //.map(res => <any> res.json())
14 15
    }
15 16
}

Also available in: Unified diff