temporarily disable cache organization landing page main info
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@44640 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
9a2427f69b
commit
4e67bfefd5
|
@ -19,9 +19,12 @@ export class OrganizationService {
|
|||
|
||||
let url = OpenaireProperties.getSearchAPIURL()+'organizations/'+id;
|
||||
let key = url;
|
||||
if (this._cache.has(key)) {
|
||||
return Observable.of(this._cache.get(key));
|
||||
}
|
||||
// if (this._cache.has(key)) {
|
||||
// console.log("HEre in req after put in cache "+this._cache.has(key));
|
||||
// console.log("HEre in req get from cache " + this._cache.get(key).title.name);
|
||||
// return Observable.of(this._cache.get(key));
|
||||
// }
|
||||
|
||||
return this.http.get(url)
|
||||
.map(res => <any> res.json())
|
||||
.map(res => res['result']['metadata']['oaf:entity']['oaf:organization'])
|
||||
|
@ -31,6 +34,7 @@ export class OrganizationService {
|
|||
this._cache.set(key, res);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
private handleError (error: Response) {
|
||||
|
|
Loading…
Reference in New Issue