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

    
118

    
119
  private pageTitle = "OpenAIRE - Connect | Learn How";
120

    
121
  properties:EnvProperties;
122

    
123
  constructor (
124
      private route: ActivatedRoute,
125
      private _router: Router,
126
      private _title: Title,
127
      private _piwikService: PiwikService) {
128
          var description = "OpenAIRE - Connect, Community Dashboard, research community";
129
          this._title.setTitle(this.pageTitle);
130
  }
131

    
132
  public ngOnInit() {
133
    this.route.data
134
          .subscribe((data: { envSpecific: EnvProperties }) => {
135
            this.properties = data.envSpecific;
136
            if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
137
              this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE Connect | Create and manage your community page", this.properties.piwikSiteId).subscribe();
138
            }
139
          });
140
          this.createGifs();
141
  }
142

    
143
  public ngOnDestroy() {
144
    if(this.piwiksub){
145
      this.piwiksub.unsubscribe();
146
    }
147
  }
148

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