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 {FAQ} from "../openaireLibrary/utils/entities/FAQ";
7

    
8
@Component({
9
    selector: 'learn-how',
10
    template: `
11
      <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="">
12
        <div  style=" min-height: calc(7.89999px + 60vh);"
13
              class="uk-padding-remove-bottom cloud-background uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color" >
14
            <div class="uk-section uk-margin-large-top">
15
              <div class="uk-container uk-container-large">
16
                  <div class="uk-margin-large-top" uk-grid>
17
                    <h1 class="uk-width-1-1" style="font-size: 41px">Learn the process</h1>
18
                    <div class="uk-width-1-2@l uk-width-1-1@s uk-text-large">Build a <b>Gateway to your community's</b> open and linked research outcomes. Customized to your needs.</div>
19
                  </div>
20
                  <div class="uk-margin-large-top uk-flex-middle uk-flex uk-child-width-1-3@m uk-child-width-1-1@s" uk-grid>
21
                    <div class="uk-flex uk-flex-middle uk-child-width-1-1@m uk-child-width-1-2@s uk-text-center" uk-grid>
22
                      <div>
23
                        <h5 class="uk-text-bold">1. Understanding your needs</h5>
24
                        <div>
25
                          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.
26
                        </div>
27
                      </div>
28
                      <div class="uk-visible@m">
29
                        <h5 class=" uk-text-bold">4. Roll out the service</h5>
30
                        <div>
31
                          We jointly roll out your new Science Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.
32
                        </div>
33
                      </div>
34
                      <div class="uk-hidden@m">
35
                        <h5 class=" uk-text-bold">2. Develop a pilot</h5>
36
                        <div>
37
                          How do you work today, and how would you like to work tomorrow? We tranlate 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.                        </div>
38
                      </div>
39
                    </div>
40
                    <div>
41
                      <img src="../../assets/about/cicle.png">
42
                    </div>
43
                    <div class="uk-flex uk-flex-middle uk-child-width-1-1@m uk-child-width-1-2@s uk-text-center" uk-grid>
44
                      <div class="uk-visible@m">
45
                        <h5 class=" uk-text-bold">2. Develop a pilot</h5>
46
                        <div>
47
                          How do you work today, and how would you like to work tomorrow? We tranlate 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.                        </div>
48
                      </div>
49
                      <div class="uk-hidden@m">
50
                        <h5 class=" uk-text-bold">4. Roll out the service</h5>
51
                        <div>
52
                          We jointly roll out your new Science Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.                        </div>
53
                      </div>
54
                      <div>
55
                        <h5 class="uk-text-bold">3. Test and Validate</h5>
56
                        <div>
57
                          You validate and test your new Science 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.
58
                        </div>
59
                      </div>
60
                    </div>
61
                  </div>
62
                <div class="uk-width-1-1 uk-text-center uk-text-large uk-margin-large-top">
63
                  <a class="uk-button portal-button uk-text-uppercase" routerLinkActive="router-link-active" routerLink="/learn-in-depth"> Learn more details</a>
64
                </div>
65
              </div>
66
            </div>
67
        </div>
68
        <div class="uk-section">
69
          <div class="uk-container uk-container-large">
70
            <gif-slider [gifs]="gifs"></gif-slider>
71
          </div>
72
        </div>
73
        <div class="contact-background uk-background-norepeat uk-background-cover uk-section-secondary uk-section-overlap uk-position-relative uk-preserve-color">
74
            <div class="uk-container uk-container-large uk-section">
75
                <div class="uk-flex uk-flex-middle uk-child-width-1-1@s uk-child-width-1-2@m" uk-grid>
76
                  <div>
77
                    <h1>We look forward to working together and helping you unlock the full potential of your research community through open science.</h1>
78
                    <div>Get in touch with our team to find out how.</div>
79
                    <div class="uk-inline uk-margin-large-top">
80
                      <a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
81
                    </div>
82
                  </div>
83
                  <div class="uk-text-center">
84
                    <img width="263" height="250" src="../../assets/contact/4.png">
85
                  </div>
86
                </div>
87
              </div>
88
            </div>
89
            <div *ngIf="questions.length > 0 else comingSoon" class="uk-container">
90
              <h1 class="uk-margin-remove-bottom uk-margin-large-top uk-width-1-1">Frequently Asked Questions</h1>
91
              <div class="uk-width-1-1 uk-section">
92
                <ul uk-accordion>
93
                  <li *ngFor="let question of questions; let i=index" [ngClass]="(i===0)?'uk-open':''">
94
                    <a class="uk-accordion-title">{{question.question}}</a>
95
                    <div class="uk-accordion-content uk-height-max-small uk-overflow-auto">
96
                      <p>{{question.answer}} 
97
                      </p>
98
                    </div>
99
                  </li>
100
                </ul>
101
              </div>
102
            </div>
103
          <ng-template #comingSoon>
104
              <div class="uk-container">
105
                <h1 class="uk-margin-remove-bottom uk-margin-large-top uk-width-1-1">Frequently Asked Questions</h1>
106
                <div class="uk-width-1-1 uk-section uk-text-center uk-text-large">
107
                  Coming Soon...
108
                </div>
109
              </div>
110
          </ng-template>
111
      </div>
112
    `
113
  })
114
export class LearnHowComponent {
115
  public piwiksub: any;
116
  questions: FAQ[] = [
117
    /*{
118
      question: 'Coming soon?',
119
      answer: 'Yes'
120
    },
121
    {
122
      question: 'Could you be more specific?',
123
      answer: 'No'
124
    }*/
125
  ];
126
  public gifs: {"gif": string, "header": string, "text"}[] = [];
127

    
128

    
129
  private pageTitle = "OpenAIRE - Connect | Learn How";
130

    
131
  properties:EnvProperties;
132

    
133
  constructor (
134
      private route: ActivatedRoute,
135
      private _router: Router,
136
      private _title: Title,
137
      private _piwikService: PiwikService) {
138
          var description = "OpenAIRE - Connect, Community Dashboard, research community";
139
          this._title.setTitle(this.pageTitle);
140
  }
141

    
142
  public ngOnInit() {
143
    this.route.data
144
          .subscribe((data: { envSpecific: EnvProperties }) => {
145
            this.properties = data.envSpecific;
146
            if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
147
              this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE Connect | Create and manage your community page", this.properties.piwikSiteId).subscribe();
148
            }
149
          });
150
          this.createGifs();
151
  }
152

    
153
  public ngOnDestroy() {
154
    if(this.piwiksub){
155
      this.piwiksub.unsubscribe();
156
    }
157
  }
158

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