[Trunk | Library]: zenodo-communities.service.ts: Use useLongCache property in method "getZenodoCommunityById()".
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59652 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
f1e46be3cc
commit
abb24e34cf
|
@ -20,7 +20,7 @@ export class ZenodoCommunitiesService {
|
|||
.pipe(map(res => [this.parseZenodoCommunities(res['hits'].hits),res['hits'].total]));
|
||||
}
|
||||
getZenodoCommunityById(properties:EnvProperties, url: string, openaireId:string) {
|
||||
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)) : url)
|
||||
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)) : url)
|
||||
//.map(res => <any> res.json())
|
||||
.pipe(map(res => {
|
||||
var community = this.parseZenodoCommunity(res);
|
||||
|
|
Loading…
Reference in New Issue