Project

General

Profile

« Previous | Next » 

Revision 44766

Use the new API - not only in Publications but also in any other component

View differences:

project.service.ts
17 17
    getProjectInfo (id: string):any {
18 18
        console.info("getProjectInfo in service");
19 19

  
20
        let url = OpenaireProperties.getSearchAPIURL() + 'projects/'+id;
20
        let url = OpenaireProperties. getSearchAPIURLLast() + 'projects/'+id+"?format=json";
21 21
        let key = url;
22 22
        // if (this._cache.has(key)) {
23 23
        //   return Observable.of(this._cache.get(key));
......
39 39
    */
40 40
    getProjectDates (id: string):any {
41 41

  
42
        let url = OpenaireProperties.getSearchAPIURL()+'projects/'+id;
42
        let url = OpenaireProperties. getSearchAPIURLLast()+'projects/'+id+"?format=json";
43 43
        let key = url+'_projectDates';
44 44
        if (this._cache.has(key)) {
45 45
          return Observable.of(this._cache.get(key));

Also available in: Unified diff