Revision 56644
Added by Konstantinos Triantafyllou almost 5 years ago
helper.service.ts | ||
---|---|---|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
getPageHelpContents(router: string, properties:EnvProperties, communityId:string ):any { |
31 |
if(!communityId) { |
|
32 |
communityId = 'openaire'; |
|
33 |
} |
|
34 |
router = router.split('?')[0].substring(0); |
|
31 | 35 |
let url = properties.adminToolsAPIURL; |
32 | 36 |
url += '/community/' + communityId + '/pagehelpcontent?active=true&page='+router; |
33 | 37 |
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url); |
34 | 38 |
} |
35 | 39 |
|
36 | 40 |
getDivHelpContents(router: string, properties:EnvProperties, communityId:string ):any { |
41 |
if(!communityId) { |
|
42 |
communityId = 'openaire'; |
|
43 |
} |
|
44 |
router = router.split('?')[0].substring(0); |
|
37 | 45 |
let url = properties.adminToolsAPIURL; |
38 | 46 |
url += '/community/' + communityId + '/divhelpcontent?active=true&page='+router; |
39 | 47 |
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url); |
Also available in: Unified diff
[Trunk|Library]: Add Helper on search Page, landings and deposit first page.