2018-04-21 17:20:09 +02:00
|
|
|
import {Component, Input} from '@angular/core';
|
2018-10-16 13:21:56 +02:00
|
|
|
import {ActivatedRoute} from '@angular/router';
|
|
|
|
import {EnvProperties} from '../../utils/properties/env-properties';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'deposit-publications',
|
|
|
|
template: `
|
|
|
|
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle" >
|
|
|
|
<div uk-grid uk-grid>
|
|
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
|
|
|
|
|
|
<div class="uk-container">
|
2018-10-16 13:21:56 +02:00
|
|
|
<deposit [compatibility]="'openaire____::47ce9e9f4fad46e732cff06419ecaabb||OpenDOAR'" [requestFor]="'Publications'" [mapUrl]=mapUrl [piwikSiteId]=piwikSiteId></deposit>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
})
|
|
|
|
|
|
|
|
export class DepositPublicationsComponent {
|
2018-10-16 13:21:56 +02:00
|
|
|
public mapUrl = null;
|
2018-04-21 17:20:09 +02:00
|
|
|
@Input() piwikSiteId = null;
|
2018-10-16 13:21:56 +02:00
|
|
|
properties:EnvProperties;
|
|
|
|
|
|
|
|
constructor (private route: ActivatedRoute) {}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.route.data
|
|
|
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
|
|
|
this.properties = data.envSpecific;
|
|
|
|
this.mapUrl = this.properties.statisticsFrameAPIURL+"markers-demo.html";
|
|
|
|
});
|
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|