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:
argiro.kokogiannaki 2016-11-23 12:17:14 +00:00
parent 9a2427f69b
commit 4e67bfefd5
1 changed files with 7 additions and 3 deletions

View File

@ -19,9 +19,12 @@ export class OrganizationService {
let url = OpenaireProperties.getSearchAPIURL()+'organizations/'+id; let url = OpenaireProperties.getSearchAPIURL()+'organizations/'+id;
let key = url; let key = url;
if (this._cache.has(key)) { // if (this._cache.has(key)) {
return Observable.of(this._cache.get(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) return this.http.get(url)
.map(res => <any> res.json()) .map(res => <any> res.json())
.map(res => res['result']['metadata']['oaf:entity']['oaf:organization']) .map(res => res['result']['metadata']['oaf:entity']['oaf:organization'])
@ -31,6 +34,7 @@ export class OrganizationService {
this._cache.set(key, res); this._cache.set(key, res);
}); });
} }
private handleError (error: Response) { private handleError (error: Response) {