Revision 44766
Added by Argiro Kokogiannaki over 7 years ago
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
Use the new API - not only in Publications but also in any other component