Revision 51749
Added by Argiro Kokogiannaki about 6 years ago
searchDatasets.component.ts | ||
---|---|---|
1 | 1 |
import {Component, Input, ViewChild} from '@angular/core'; |
2 | 2 |
import {ActivatedRoute} from '@angular/router'; |
3 |
import {PiwikHelper} from '../../utils/piwikHelper'; |
|
4 |
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper'; |
|
3 | 5 |
|
4 | 6 |
@Component({ |
5 | 7 |
selector: 'openaire-search-datasets', |
... | ... | |
16 | 18 |
export class OpenaireSearchDatasetsComponent { |
17 | 19 |
advancedSearchParameters:any; |
18 | 20 |
connectCommunityId:string; |
19 |
constructor( private route: ActivatedRoute) { |
|
21 |
piwikSiteId = null; |
|
22 |
constructor ( private route: ActivatedRoute) { |
|
23 |
var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname); |
|
24 |
this.piwikSiteId = PiwikHelper.siteIDs[communityId]; |
|
20 | 25 |
} |
26 |
|
|
21 | 27 |
ngOnInit() { |
22 | 28 |
this.route.queryParams.subscribe(data => { |
23 | 29 |
|
Also available in: Unified diff
pass piwikSiteId in landing, search & deposit pages as Input | add siteId parameter in community & communities components