import {Component, OnDestroy, OnInit} from "@angular/core"; import {properties} from "../../../../environments/environment"; import {ActivatedRoute, Router} from "@angular/router"; import {Meta, Title} from "@angular/platform-browser"; import {SEOService} from "../../sharedComponents/SEO/SEO.service"; import {Breadcrumb} from "../../utils/breadcrumbs/breadcrumbs.component"; import {Subscriber} from "rxjs"; @Component({ selector: 'indicator-themes-page', template: `

Indicator Themes.

Indicator themes that we are covering in the Monitor dashboards.

Please be aware that this is the current set, which will be enriched as requests and data are coming into the OpenAIRE Research Graph. We are at your disposal to add more indicator themes that may fit your needs.

Check out the indicator pages (for funders, research institutions and research initiatives) for the specific indicators for each type of dashboard, and the methodology and terminology page on how we produce the metrics.

` }) export class IndicatorThemesComponent implements OnInit, OnDestroy { private subscriptions: any[] = []; public properties = properties; public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'Resources - Themes'}]; constructor(private router: Router, private meta: Meta, private title: Title, private seoService: SEOService, public route: ActivatedRoute) { } ngOnInit() { this.subscriptions.push(this.route.params.subscribe(params => { const description = "Monitor | Indicator Themes"; const title = "Monitor | Indicator Themes"; this.metaTags(title, description); this.breadcrumbs[0].route = '/' + (params['stakeholder']?params['stakeholder']:''); this.breadcrumbs[0].name = (params['stakeholder']?'dashboard':'home'); })); } ngOnDestroy() { this.subscriptions.forEach(subscription => { if (subscription instanceof Subscriber) { subscription.unsubscribe(); } }); } metaTags(title, description) { const url = properties.domain + properties.baseLink + this.router.url; this.seoService.createLinkForCanonicalURL(url, false); this.meta.updateTag({content: url}, "property='og:url'"); this.meta.updateTag({content: description}, "name='description'"); this.meta.updateTag({content: description}, "property='og:description'"); this.meta.updateTag({content: title}, "property='og:title'"); this.title.setTitle(title); } }