import {Component, Input} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {EnvProperties} from '../../utils/properties/env-properties'; import {ZenodoInformationClass} from '../utils/zenodoInformation.class'; @Component({ selector: 'deposit-publications', template: `
` }) export class DepositPublicationsComponent { @Input() zenodoInformation: ZenodoInformationClass; public mapUrl = null; @Input() piwikSiteId = null; properties:EnvProperties; constructor (private route: ActivatedRoute) {} ngOnInit() { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; this.mapUrl = this.properties.statisticsFrameAPIURL+"markers-test.html"; if(!this.zenodoInformation) { this.zenodoInformation = new ZenodoInformationClass(); } if(!this.zenodoInformation.url) { this.zenodoInformation.url = this.properties.zenodo; } if(!this.zenodoInformation.name) { this.zenodoInformation.name = "Zenodo"; } }); } }