import {Component} from '@angular/core'; import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component"; import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties"; import {ActivatedRoute, Router} from "@angular/router"; import {Meta, Title} from "@angular/platform-browser"; import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service"; import {PiwikService} from "../../openaireLibrary/utils/piwik/piwik.service"; import {HelperService} from "../../openaireLibrary/utils/helper/helper.service"; import {Subscriber} from "rxjs"; import {properties} from "../../../environments/environment"; @Component({ selector: 'faqs', template: `

Frequently Asked Questions

  • What is a "Research community"?
  • What is the difference between a Community Gateway and the Research Community Dashboard (RCD)?
  • How can Research Community thematic services integrate with the Research Community Dashboard (RCD)?
  • What does my Research Community gain in terms of Open Science?
  • How is the service part of the European Open Science Cloud?
  • Who owns the gateway?
  • How is the gateway operated?
  • What is the SLA of the service?
  • What are the costs?
  • In what other areas can my Research community collaborate with OpenAIRE?
` }) export class FaqsComponent { public pageTitle: string = "OpenAIRE - Connect | FAQs"; public pageDescription: string = "Frequently asked questions about OpenAIRE Connect research gateway"; public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'About', route: '/about'}, {name: 'FAQs'}]; private subscriptions = []; public pageContents = null; public divContents = null; public url: string = null; 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.properties = properties; this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe()); this.url = this.properties.baseLink + this._router.url; this.seoService.createLinkForCanonicalURL(this.url); this.updateUrl(this.url); this.updateTitle(this.pageTitle); this.updateDescription(this.pageDescription); //this.getDivContents(); this.getPageContents(); } private getPageContents() { this.subscriptions.push(this.helper.getPageHelpContents(this.properties, 'connect', this._router.url).subscribe(contents => { this.pageContents = contents; })); } private getDivContents() { this.subscriptions.push(this.helper.getDivHelpContents(this.properties, 'connect', this._router.url).subscribe(contents => { this.divContents = contents; })); } ngOnDestroy() { this.subscriptions.forEach(subscription => { if (subscription instanceof Subscriber) { subscription.unsubscribe(); } }); } 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'"); } }