Project

General

Profile

1
import {Component} from '@angular/core';
2
import {ActivatedRoute, Router} from '@angular/router';
3
import {Title} from '@angular/platform-browser';
4
import {PiwikService}           from '../openaireLibrary/utils/piwik/piwik.service';
5
import {EnvProperties}          from '../openaireLibrary/utils/properties/env-properties';
6
import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
7

    
8
@Component({
9
    selector: 'learn-how',
10
    template: `
11
      <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
12
      <ng-template #one>
13
          <h5 class="uk-text-bold uk-margin-small-bottom">1. Understanding your needs</h5>
14
          <div>
15
            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.
16
          </div>
17
      </ng-template>
18
      <ng-template #two>
19
          <h5 class=" uk-text-bold uk-margin-small-bottom">2. Develop a pilot</h5>
20
          <div>
21
            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.
22
          </div>
23
      </ng-template>
24
      <ng-template #three>
25
          <h5 class="uk-text-bold uk-margin-small-bottom">3. Test and Validate</h5>
26
          <div>
27
            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.
28
          </div>
29
      </ng-template>
30
      <ng-template #four>
31
          <h5 class=" uk-text-bold uk-margin-small-bottom">4. Roll out the service</h5>
32
          <div>
33
            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.
34
          </div>
35
      </ng-template>
36
      <div class="image-front-topbar" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}" tm-header-transparent="light" tm-header-transparent-placeholder="">
37
        <div  style=" min-height: calc(7.89999px + 60vh);"
38
              class="about-background uk-section uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color" >
39
              <div class="uk-container uk-container-large uk-section uk-margin-top uk-padding-remove-top">
40
                  <div class="uk-margin-large-top uk-grid">
41
                    <h1 class="uk-width-1-1 font-41 uk-text-bold">Learn the process</h1>
42
                    <div class="uk-width-1-2@l uk-width-1-1@s uk-h5 uk-margin-top">Build a <b>Gateway to your community's</b> open and linked research outcomes. Customized to your needs.</div>
43
                  </div>
44
                  <div class="uk-margin-large-top uk-flex uk-child-width-1-3@m uk-child-width-1-1@s uk-flex-center" uk-grid>
45
                    <div class="uk-flex uk-child-width-1-1@m uk-child-width-1-2@s" uk-grid>
46
                      <div>
47
                        <ng-container *ngTemplateOutlet="one"></ng-container>
48
                      </div>
49
                      <div class="uk-visible@m">
50
                        <ng-container *ngTemplateOutlet="four"></ng-container>
51
                      </div>
52
                      <div class="uk-hidden@m">
53
                        <ng-container *ngTemplateOutlet="two"></ng-container>
54
                      </div>
55
                    </div>
56
                    <div>
57
                      <img src="../../assets/about/cycle.png">
58
                    </div>
59
                    <div class="uk-flex uk-child-width-1-1@m uk-child-width-1-2@s" uk-grid>
60
                      <div class="uk-visible@m">
61
                        <ng-container *ngTemplateOutlet="two"></ng-container> 
62
                      </div>
63
                      <div class="uk-hidden@m uk-visible@s">
64
                        <ng-container *ngTemplateOutlet="four"></ng-container> 
65
                      </div>
66
                      <div>
67
                        <ng-container *ngTemplateOutlet="three"></ng-container>
68
                      </div>
69
                      <div class="uk-hidden@s uk-visible@xs">
70
                        <ng-container *ngTemplateOutlet="four"></ng-container> 
71
                      </div>
72
                    </div>
73
                  </div>
74
                <div class="uk-width-1-1 uk-text-center uk-text-large uk-margin-large-top">
75
                  <a class="uk-button portal-button uk-text-uppercase" routerLinkActive="router-link-active" routerLink="/about/learn-in-depth"> Learn more details</a>
76
                </div>
77
              </div>
78
        </div>
79
        <div class="cloud-abstract uk-background-norepeat uk-section uk-background-center uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color">
80
          <div class="uk-container uk-container-large">
81
            <gif-slider [gifs]="gifs"></gif-slider>
82
          </div>
83
        </div>
84
        <div class="contact-banner uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color">
85
            <div class="uk-container uk-container-large uk-section">
86
                <div class="uk-flex uk-flex-middle uk-padding" uk-grid>
87
                  <div class="uk-width-expand">
88
                    <div class="uk-text-bold uk-h4">We look forward to working together and helping you unlock the full potential of your research community through open science.</div>
89
                    <div class="uk-margin-medium">Get in touch with our team to find out how.</div>
90
                    <div class="uk-inline">
91
                      <a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
92
                    </div>
93
                  </div>
94
                  <div class="uk-text-center uk-width-1-1@s uk-width-1-3@m">
95
                    <img width="263" height="250" src="../../assets/contact/3.png">
96
                  </div>
97
                </div>
98
              </div>
99
            </div>
100
      </div>
101
    `
102
  })
103
export class LearnHowComponent {
104
  public piwiksub: any;
105
  public gifs: {"gif": string, "header": string, "text"}[] = [];
106
  public pageContents = null;
107
  public divContents = null;
108

    
109

    
110
  private pageTitle = "OpenAIRE - Connect | Learn How";
111

    
112
  properties:EnvProperties;
113

    
114
  constructor (
115
      private route: ActivatedRoute,
116
      private _router: Router,
117
      private _title: Title,
118
      private _piwikService: PiwikService,
119
      private helper: HelperService) {
120
          this._title.setTitle(this.pageTitle);
121
  }
122

    
123
  public ngOnInit() {
124
    this.route.data
125
          .subscribe((data: { envSpecific: EnvProperties }) => {
126
            this.properties = data.envSpecific;
127
            if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
128
              this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE Connect | Create and manage your community page", this.properties.piwikSiteId).subscribe();
129
            }
130
            //this.getDivContents();
131
            this.getPageContents();
132
          });
133
          this.createGifs();
134
  }
135

    
136
  private getPageContents() {
137
    this.helper.getPageHelpContents(this._router.url, this.properties, 'connect').subscribe(contents => {
138
      this.pageContents = contents;
139
    })
140
  }
141

    
142
  private getDivContents() {
143
    this.helper.getDivHelpContents(this._router.url, this.properties, 'connect').subscribe(contents => {
144
      this.divContents = contents;
145
    })
146
  }
147

    
148
  public ngOnDestroy() {
149
    if(this.piwiksub){
150
      this.piwiksub.unsubscribe();
151
    }
152
  }
153

    
154
  private createGifs() {
155
    this.gifs.push({
156
      gif: "assets/about/gifs/profile.gif",
157
      header: "Profile",
158
      text: "Edit community information, change logo url, add community managers or organizations related to community."
159
    });
160
    this.gifs.push({
161
      gif: "assets/about/gifs/content.gif",
162
      header: "Content",
163
      text: "Manage projects, content providers, subjects and zenodo communities that are related to the research community."
164
    });
165
    this.gifs.push({
166
      gif: "assets/about/gifs/statistics.gif",
167
      header: "Statistics & Charts",
168
      text: "Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views."
169
    });
170
    this.gifs.push({
171
      gif: "assets/about/gifs/links.gif",
172
      header: "Links",
173
      text: " Manage user claims related to the research community."
174
    });
175
    this.gifs.push({
176
      gif: "assets/about/gifs/help.gif",
177
      header: " Help texts",
178
      text: "Add or edit help text in research community pages."
179
    });
180
    this.gifs.push({
181
      gif: "assets/about/gifs/users.gif",
182
      header: "Users",
183
      text: "Invite more users to subscribe, manage community subscribers, your personal info and notification settings."
184
    });
185
  }
186
}
(2-2/3)