2022-10-24 12:18:27 +02:00
|
|
|
|
import {ChangeDetectorRef, Component} from "@angular/core";
|
|
|
|
|
import {Router} from '@angular/router';
|
|
|
|
|
import {Meta, Title} from '@angular/platform-browser';
|
|
|
|
|
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
|
|
|
|
|
import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
|
|
|
|
|
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
|
|
|
|
import {Subscriber} from "rxjs";
|
|
|
|
|
import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
|
|
|
|
import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties";
|
|
|
|
|
import {properties} from "../../environments/environment";
|
2022-10-26 17:25:50 +02:00
|
|
|
|
import {StakeholderEntities} from "../openaireLibrary/monitor/entities/stakeholder";
|
2022-10-24 12:18:27 +02:00
|
|
|
|
|
|
|
|
|
@Component({
|
2022-10-26 17:25:50 +02:00
|
|
|
|
selector: 'how-it-works',
|
|
|
|
|
template: `
|
|
|
|
|
<div class="uk-position-relative">
|
|
|
|
|
<div class="uk-background-muted">
|
|
|
|
|
<div class="uk-container uk-container-large uk-section uk-section-small">
|
|
|
|
|
<div class="uk-padding-small uk-padding-remove-horizontal">
|
|
|
|
|
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-flex uk-flex-column uk-flex-center uk-margin-bottom" uk-scrollspy-class>
|
|
|
|
|
<h1 class="uk-margin-medium-top" uk-scrollspy-class>How it works<span class="uk-text-primary">.</span></h1>
|
2022-10-27 00:21:08 +02:00
|
|
|
|
<div class="uk-text-large uk-width-2-5@l uk-width-2-3" uk-scrollspy-class>
|
2022-10-26 17:25:50 +02:00
|
|
|
|
Join the OpenAIRE Monitor service and we will create for you a dashboard to track and understand and
|
|
|
|
|
position your organization's research activities and their impact, discover and evaluate Open Science
|
|
|
|
|
trends for your organization and make data-driven decisions. Here's how it works.
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-margin-medium-top uk-margin-large-bottom" uk-scrollspy-class>
|
|
|
|
|
<a class="uk-button uk-button-primary uk-text-uppercase" routerLink="/get-started">Get Started</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-padding"></div>
|
|
|
|
|
<img class="uk-visible@l uk-position-bottom-right" src="assets/monitor-assets/about/hero.svg" loading="lazy">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-container uk-section uk-section-small">
|
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
|
<div class="uk-sticky uk-blur-background uk-visible@l" uk-sticky [attr.offset]="offset">
|
|
|
|
|
<slider-tabs flexPosition="center" customClass="uk-text-large" connect="#tabs-content">
|
|
|
|
|
<slider-tab *ngFor="let section of sections; let i = index" [tabTitle]="section"
|
|
|
|
|
[tabId]="section"></slider-tab>
|
|
|
|
|
</slider-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-sticky uk-blur-background uk-hidden@l" uk-sticky>
|
|
|
|
|
<slider-tabs flexPosition="center">
|
|
|
|
|
<slider-tab *ngFor="let section of sections; let i = index" [tabTitle]="section"
|
|
|
|
|
[tabId]="section"></slider-tab>
|
|
|
|
|
</slider-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ul id="tabs-content" class="uk-switcher uk-margin-large-bottom">
|
|
|
|
|
<li>
|
|
|
|
|
<you-we [type]="stakeholderEntities.FUNDER" id="funder">
|
|
|
|
|
<ng-container you>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You provide Information about your funded projects and
|
|
|
|
|
<a href="https://www.openaire.eu/funders-how-to-join-guide" target="_blank">join OpenAIRE</a>.</p>
|
|
|
|
|
<p>All information is exchanged under confidential agreements and we only make public what you agree
|
|
|
|
|
on.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left custom-translate-bottom-left"
|
|
|
|
|
src="assets/monitor-assets/about/icon1.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You validate the results and approve for them to be shown
|
|
|
|
|
on the <a href="https://explore.openaire.eu" target="_blank">Explore</a> portal.</p>
|
|
|
|
|
<p>Examine your dashboard and the showcased information to ensure you are satisfied with what you
|
|
|
|
|
see.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Through 1-on-1 expert consultations you interact with
|
|
|
|
|
us</p>
|
|
|
|
|
<ul class="uk-list uk-list-disc">
|
|
|
|
|
<li>to understand any gaps and deviations within the dashboard</li>
|
|
|
|
|
<li>to verify the data integrity</li>
|
|
|
|
|
<li>to discuss the addition of any new metrics and indicators that might interest you</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-medium-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Customise your dashboard and make your own profile.</p>
|
|
|
|
|
<p>Select the <a href="https://monitor.openaire.eu/indicators/funder" target="_blank">metrics</a> of
|
|
|
|
|
interest to you and the ones you want to publish, to keep private, or to share just with colleagues.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left" src="assets/monitor-assets/about/icon3.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Select your team</p>
|
|
|
|
|
<p>And make them collaborators of the service.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container we>
|
|
|
|
|
<div class="uk-card uk-card-default uk-overflow-hidden uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We ingest your project metadata and mine the <a
|
|
|
|
|
href="https://graph.openaire.eu" target="_blank" class="text-graph">OpenAIRE Research Graph</a>.
|
|
|
|
|
</p>
|
|
|
|
|
<p>We infer links to research results: publications, datasets, software, etc.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-right" src="assets/monitor-assets/about/icon2.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We present the results to you on our Beta portal.</p>
|
|
|
|
|
<p>We refine until you are happy with the results. We allocate the hardware resources needed to create
|
|
|
|
|
your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We produce well-documented visualisations of simple & more
|
|
|
|
|
advanced composite indicators.</p>
|
|
|
|
|
<p>Aligned with the Open Science principles and following an evidence-based approach, and based on the
|
|
|
|
|
funded research activities.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We refine until we are happy with the results.</p>
|
|
|
|
|
<p>We present to you your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Notify you about new metrics and indicators</p>
|
|
|
|
|
<p>as we keep enriching the Graph, which you may find useful and add to your profile</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</you-we>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<you-we [type]="stakeholderEntities.RI" id="ri">
|
|
|
|
|
<ng-container you>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You state your interest on having a research initiative
|
|
|
|
|
dashboard.</p>
|
|
|
|
|
<p>All information is exchanged under confidential agreements and we only make public what you agree
|
|
|
|
|
on.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left custom-translate-bottom-left"
|
|
|
|
|
src="assets/monitor-assets/about/icon1.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You configure the criteria to identify the research
|
|
|
|
|
products that you want to be accounted for.</p>
|
|
|
|
|
<p>You use the administration dashboard we created for you. If this is not enough, you give us input for
|
|
|
|
|
the implementation of a customised full-text mining algorithm.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Through 1-on-1 expert consultations you interact with
|
|
|
|
|
us</p>
|
|
|
|
|
<ul class="uk-list uk-list-disc">
|
|
|
|
|
<li>to understand any gaps and deviations within the dashboard</li>
|
|
|
|
|
<li>to verify the data integrity</li>
|
|
|
|
|
<li>to discuss the addition of any new metrics and indicators that might interest you</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-medium-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Customise your dashboard and make your own profile.</p>
|
|
|
|
|
<p>Select the <a href="https://monitor.openaire.eu/indicators/funder" target="_blank">metrics</a> of
|
|
|
|
|
interest to you and the ones you want to publish, to keep private, or to share just with colleagues.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left" src="assets/monitor-assets/about/icon3.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Select your team</p>
|
|
|
|
|
<p>And make them collaborators of the service.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container we>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We set up an administration dashboard that you can use
|
|
|
|
|
to specify which research products of the <a href="https://graph.openaire.eu" target="_blank"
|
|
|
|
|
class="text-graph">OpenAIRE Research Graph</a> are
|
|
|
|
|
relevant for you.</p>
|
|
|
|
|
<p>If needed, we develop a customized full-text mining algorithm to identify your publications.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-right" src="assets/monitor-assets/about/icon2.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We present the results to you on our Beta portal.</p>
|
|
|
|
|
<p>We refine until you are happy with the results. We allocate the hardware resources needed to create
|
|
|
|
|
your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We produce well-documented visualisations of simple & more
|
|
|
|
|
advanced composite indicators.</p>
|
|
|
|
|
<p>Aligned with the Open Science principles and following an evidence-based approach.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We refine until we are happy with the results.</p>
|
|
|
|
|
<p>We present to you your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Notify you about new metrics and indicators</p>
|
|
|
|
|
<p>as we keep enriching the Graph, which you may find useful and add to your profile</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</you-we>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<!-- RESEARCH INSTITUTION -->
|
|
|
|
|
<you-we [type]="stakeholderEntities.ORGANIZATION" id="organizations">
|
|
|
|
|
<ng-container you>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You state your interest on having an institutional
|
|
|
|
|
dashboard for your institution.</p>
|
|
|
|
|
<p>All information is exchanged under confidential agreements and we only make public what you agree
|
|
|
|
|
on.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left custom-translate-bottom-left"
|
|
|
|
|
src="assets/monitor-assets/about/icon1.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">You validate and approve the results.</p>
|
|
|
|
|
<p>You examine your dashboard and the showcased information to ensure you are satisfied with what you
|
|
|
|
|
see.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Through 1-on-1 expert consultations you interact with
|
|
|
|
|
us</p>
|
|
|
|
|
<ul class="uk-list uk-list-disc">
|
|
|
|
|
<li>to understand any gaps and deviations within the dashboard</li>
|
|
|
|
|
<li>to verify the data integrity</li>
|
|
|
|
|
<li>to discuss the addition of any new metrics and indicators that might interest you</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-medium-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Customise your dashboard and make your own profile.</p>
|
|
|
|
|
<p>Select the <a href="https://monitor.openaire.eu/indicators/funder" target="_blank">metrics</a> of
|
|
|
|
|
interest to you and the ones you want to publish, to keep private, or to share just with colleagues.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-left" src="assets/monitor-assets/about/icon3.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5a</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Select your team</p>
|
|
|
|
|
<p>And make them collaborators of the service.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container we>
|
|
|
|
|
<div class="uk-card uk-card-default uk-position-relative uk-overflow-hidden uk-margin-large-bottom">
|
|
|
|
|
<div class="uk-card-body uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 1b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Starting from the <a href="https://graph.openaire.eu"
|
|
|
|
|
target="_blank" class="text-graph">OpenAIRE
|
|
|
|
|
Research Graph</a> we check for existing data for your institution.</p>
|
|
|
|
|
<p>We infer links to research results: publications, datasets, software, etc.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="uk-width-xsmall uk-position-bottom-right" src="assets/monitor-assets/about/icon2.svg">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 2b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We present the results to you on our Beta portal.</p>
|
|
|
|
|
<p>We refine until you are happy with the results. We allocate the hardware resources needed to create
|
|
|
|
|
your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 3b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We produce well-documented visualisations of simple & more
|
|
|
|
|
advanced composite indicators.</p>
|
|
|
|
|
<p>Aligned with the Open Science principles and following an evidence-based approach, and based on the
|
|
|
|
|
institution’s research activities.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-margin-large-bottom">
|
|
|
|
|
<span class="uk-text-primary">Step 4b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">We refine until we are happy with the results.</p>
|
|
|
|
|
<p>We present to you your dashboard.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
|
|
|
|
<span class="uk-text-primary">Step 5b</span>
|
|
|
|
|
<p class="uk-text-large uk-margin-xsmall-top">Notify you about new metrics and indicators</p>
|
|
|
|
|
<p>as we keep enriching the Graph, which you may find useful and add to your profile</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</you-we>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
`,
|
|
|
|
|
styles: [`
|
|
|
|
|
.custom-translate-bottom-left {
|
|
|
|
|
transform: translate(-20%, 20%);
|
|
|
|
|
}
|
|
|
|
|
`]
|
2022-10-24 12:18:27 +02:00
|
|
|
|
})
|
|
|
|
|
export class HowItWorksComponent {
|
2022-10-26 17:25:50 +02:00
|
|
|
|
|
|
|
|
|
public url: string = null;
|
2022-10-24 12:18:27 +02:00
|
|
|
|
public pageTitle: string = "OpenAIRE - Monitor | How it works";
|
|
|
|
|
public description: string = "OpenAIRE - Monitor | How it works";
|
2022-10-26 17:25:50 +02:00
|
|
|
|
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'About - How it works'}];
|
2022-10-24 12:18:27 +02:00
|
|
|
|
public properties: EnvProperties = properties;
|
2022-10-26 17:25:50 +02:00
|
|
|
|
public sections: string[] = [StakeholderEntities.FUNDERS, StakeholderEntities.RIS, StakeholderEntities.ORGANIZATIONS];
|
|
|
|
|
public activeSection: string = StakeholderEntities.FUNDERS;
|
|
|
|
|
public offset: number;
|
|
|
|
|
public stakeholderEntities = StakeholderEntities;
|
2022-10-24 12:18:27 +02:00
|
|
|
|
subscriptions = [];
|
2022-10-26 17:25:50 +02:00
|
|
|
|
|
|
|
|
|
constructor(
|
2022-10-24 12:18:27 +02:00
|
|
|
|
private _router: Router,
|
|
|
|
|
private _meta: Meta,
|
|
|
|
|
private _title: Title,
|
|
|
|
|
private seoService: SEOService,
|
|
|
|
|
private _piwikService: PiwikService,
|
|
|
|
|
private helper: HelperService,
|
2022-10-26 17:25:50 +02:00
|
|
|
|
private cdr: ChangeDetectorRef) {
|
2022-10-24 12:18:27 +02:00
|
|
|
|
}
|
2022-10-26 17:25:50 +02:00
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
2022-10-24 12:18:27 +02:00
|
|
|
|
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
|
|
|
|
}
|
|
|
|
|
this.url = this.properties.domain + this.properties.baseLink + this._router.url;
|
|
|
|
|
this.seoService.createLinkForCanonicalURL(this.url);
|
|
|
|
|
this.updateUrl(this.url);
|
|
|
|
|
this.updateTitle(this.pageTitle);
|
|
|
|
|
this.updateDescription(this.description);
|
2022-10-26 17:25:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit() {
|
|
|
|
|
if (typeof document !== 'undefined') {
|
|
|
|
|
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
|
|
|
|
|
this.cdr.detectChanges();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ngOnDestroy() {
|
2022-10-24 12:18:27 +02:00
|
|
|
|
this.subscriptions.forEach(subscription => {
|
|
|
|
|
if (subscription instanceof Subscriber) {
|
|
|
|
|
subscription.unsubscribe();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2022-10-26 17:25:50 +02:00
|
|
|
|
|
|
|
|
|
private updateDescription(description: string) {
|
2022-10-24 12:18:27 +02:00
|
|
|
|
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'");
|
|
|
|
|
}
|
2022-10-24 15:38:21 +02:00
|
|
|
|
}
|