[Trunk | Connect]: deposit.component & searchDataprovidersToDeposit.component: Add piwik in new deposit pages.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56623 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
5158bac47e
commit
1e5d67eb83
|
@ -8,11 +8,12 @@ import {FetchZenodoInformation} from "./utils/fetchZenodoInformation.class";
|
||||||
import {ZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service";
|
import {ZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service";
|
||||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||||
import {SearchZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service";
|
import {SearchZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service";
|
||||||
|
import {PiwikHelper} from "../utils/piwikHelper";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'openaire-deposit',
|
selector: 'openaire-deposit',
|
||||||
template: `
|
template: `
|
||||||
<deposit-first-page [zenodoInformation]="zenodoInformation"></deposit-first-page>
|
<deposit-first-page [piwikSiteId]=piwikSiteId [zenodoInformation]="zenodoInformation"></deposit-first-page>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -41,6 +42,8 @@ export class OpenaireDepositComponent {
|
||||||
communityId = params['communityId'];
|
communityId = params['communityId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.piwikSiteId = PiwikHelper.siteIDs[communityId];
|
||||||
|
|
||||||
if (communityId) {
|
if (communityId) {
|
||||||
|
|
||||||
if (communityId != null && communityId != '') {
|
if (communityId != null && communityId != '') {
|
||||||
|
|
|
@ -15,8 +15,7 @@ import {FetchZenodoInformation} from './utils/fetchZenodoInformation.class';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'openaire-search-deposit',
|
selector: 'openaire-search-deposit',
|
||||||
template: `
|
template: `
|
||||||
<!-- [piwikSiteId]=piwikSiteId [zenodoInformation]="zenodoInformation"-->
|
<search-dataproviders [piwikSiteId]=piwikSiteId [zenodoInformation]="zenodoInformation"></search-dataproviders>
|
||||||
<search-dataproviders [zenodoInformation]="zenodoInformation"></search-dataproviders>
|
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue