import {Component, Input} from '@angular/core'; import {ZenodoInformationClass} from './utils/zenodoInformation.class'; import {EnvProperties} from "../utils/properties/env-properties"; import {ActivatedRoute, Router} from "@angular/router"; import {PiwikService} from "../utils/piwik/piwik.service"; import {HelperService} from "../utils/helper/helper.service"; @Component({ selector: 'deposit-first-page', template: `
Deposit your research

How to deposit your research...

Find the appropriate repository, archive or journal
Find the appropriate thematic repository or archive to deposit your research products of any type (publication, data, software, other) or to include in your data management plan. Search and browse for OpenAIRE compliant repositories registered in OpenDOAR and re3data. Looking for Open Access journals? Find those that suits your community among the journals registered in the Directory of Open Access Journals (DOAJ).
Deposit
Find the repository to deposit your research or use the Zenodo communities suggested by the community curators.

Start by searching repositories

OR
Deposit your research immediately
Related zenodo communities Deposit in Zenodo
Research. Shared.
All research outputs from across all fields of research are welcome! Sciences and Humanities, really!
Citeable. Discoverable.
Uploads gets a Digital Object Identifier (DOI) to make them easily and uniquely citeable.
Funding
Identify grants, integrated in reporting lines for research funded by the European Commission via OpenAIRE.
Flexible licensing
Because not everything is under Creative Commons.
Safe
Your research output is stored safely for the future in the same cloud infrastructure as CERN's own LHC research data.
` }) export class DepositFirstPageComponent { @Input() public zenodoInformation: ZenodoInformationClass = new ZenodoInformationClass(); @Input() piwikSiteId = null; piwiksub:any; @Input() communityId = null; public pageContents = null; public divContents = null; public keyword: string; public depositRoute = "/participate/deposit/search"; public searchPlaceHolder = "Search for repositories by title, country, organization, subject..."; properties:EnvProperties; constructor (private route: ActivatedRoute, private _piwikService:PiwikService, private helper: HelperService, private _router: Router) {} ngOnInit() { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; //this.getDivContents(); this.getPageContents(); if (!this.zenodoInformation) { this.zenodoInformation = new ZenodoInformationClass(); } if (!this.zenodoInformation.shareInZenodoUrl) { this.zenodoInformation.url = this.properties.zenodo; } if (!this.zenodoInformation.name) { this.zenodoInformation.name = "Zenodo"; } if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){ this.piwiksub = this._piwikService.trackView(this.properties, "Deposit your research (first page)", this.piwikSiteId).subscribe(); } }); } public getPageContents() { this.helper.getPageHelpContents(this._router.url, this.properties, this.communityId).subscribe(contents => { this.pageContents = contents; }) } public getDivContents() { this.helper.getDivHelpContents(this._router.url, this.properties, this.communityId).subscribe(contents => { this.divContents = contents; }) } ngOnDestroy() { if(this.piwiksub){ this.piwiksub.unsubscribe(); } } }