Revision 54949
Added by Argiro Kokogiannaki about 5 years ago
depositPublications.component.ts | ||
---|---|---|
29 | 29 |
constructor ( private route: ActivatedRoute, |
30 | 30 |
private _ΖenodoCommunitieService: ZenodoCommunitiesService, |
31 | 31 |
private _communityService: CommunityService,private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService ) { |
32 |
//var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname); |
|
33 |
//this.piwikSiteId = PiwikHelper.siteIDs[communityId]; |
|
34 | 32 |
this.fetchZenodoInformation = new FetchZenodoInformation(this._ΖenodoCommunitieService, this._searchZenodoCommunitiesService); |
35 | 33 |
} |
36 | 34 |
|
... | ... | |
42 | 40 |
this.route.queryParams.subscribe(params => { |
43 | 41 |
var communityId = params['communityId']; |
44 | 42 |
if(!communityId){ |
45 |
communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
|
|
46 |
} |
|
43 |
communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
|
|
44 |
}
|
|
47 | 45 |
this.piwikSiteId = PiwikHelper.siteIDs[communityId]; |
48 | 46 |
|
49 | 47 |
if(communityId) { |
Also available in: Unified diff
[Trunk]
Domain change:
Update server.ts to be able to read domain from request
Update functions that needed domain
use the domain as read from properties
Update home page urls to dashboards- use environment property