import {Component} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {Meta, Title} from '@angular/platform-browser'; import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service'; import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties'; import {HelperService} from "../openaireLibrary/utils/helper/helper.service"; import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; @Component({ selector: 'learn-how', template: `
1. Understanding your needs
First, we learn about your requirements and challenges. We help you understand Open Science practices within EOSC and together we’ll talk about how OpenAIRE RCD fits as a solution.
2. Develop a pilot
How do you work today, and how would you like to work tomorrow? We translate your needs into rules and processes and we configure operational OpenAIRE services. By the end of this phase, we’ll have defined the basic configuration of your Community Gateway.
3. Test and Validate
You validate and test your new Community Gateway (portal) with your experts and community to ensure all workflows are in place and quality of data meets your standards. If needed, we work together in another iteration to further refine and adapt to your needs.
4. Roll out the service
We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.
` }) export class LearnHowComponent { public piwiksub: any; public gifs: { "gif": string, "header": string, "text" }[] = []; public pageContents = null; public divContents = null; public url: string = null; public pageTitle: string = "OpenAIRE - Connect | Learn How"; properties: EnvProperties; constructor( private route: ActivatedRoute, private _router: Router, private _meta: Meta, private _title: Title, private seoService: SEOService, private _piwikService: PiwikService, private helper: HelperService) {} public ngOnInit() { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) { this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe(); } this.url = this.properties.baseLink + this._router.url; this.seoService.createLinkForCanonicalURL(this.url); this.updateUrl(this.url); this.updateTitle(this.pageTitle); this.updateDescription("OpenAIRE - Connect, Community Gateway, research community"); //this.getDivContents(); this.getPageContents(); }); this.createGifs(); } private getPageContents() { this.helper.getPageHelpContents(this._router.url, this.properties, 'connect').subscribe(contents => { this.pageContents = contents; }) } private getDivContents() { this.helper.getDivHelpContents(this._router.url, this.properties, 'connect').subscribe(contents => { this.divContents = contents; }) } public ngOnDestroy() { if (this.piwiksub) { this.piwiksub.unsubscribe(); } } private createGifs() { this.gifs.push({ gif: "assets/connect-assets/about/gifs/profile.gif", header: "Profile", text: "Edit community information, change logo url, add community managers or organizations related to community." }); this.gifs.push({ gif: "assets/connect-assets/about/gifs/content.gif", header: "Content", text: "Manage projects, content providers, subjects and zenodo communities that are related to the research community." }); this.gifs.push({ gif: "assets/connect-assets/about/gifs/statistics.gif", header: "Statistics & Charts", text: "Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views." }); this.gifs.push({ gif: "assets/connect-assets/about/gifs/links.gif", header: "Links", text: " Manage user claims related to the research community." }); this.gifs.push({ gif: "assets/connect-assets/about/gifs/help.gif", header: " Help texts", text: "Add or edit help text in research community pages." }); this.gifs.push({ gif: "assets/connect-assets/about/gifs/users.gif", header: "Users", text: "Invite more users to subscribe, manage community subscribers, your personal info and notification settings." }); } private updateDescription(description: string) { this._meta.updateTag({content: description}, "name='description'"); this._meta.updateTag({content: description}, "property='og:description'"); } private updateTitle(title: string) { var _title = ((title.length > 50) ? title.substring(0, 50) : title); this._title.setTitle(_title); this._meta.updateTag({content: _title}, "property='og:title'"); } private updateUrl(url: string) { this._meta.updateTag({content: url}, "property='og:url'"); } }