Project

General

Profile

1
<div id="page_content">
2
  <div id="page_content_inner">
3
    <h2 class="heading_b uk-margin-bottom">Register your datasource</h2>
4

    
5
    <!-- TOP HELP CONTENT -->
6
    <help-content #topHelperContent [position]="'top'"
7
                  [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
8
    </help-content>
9

    
10
    <div class="uk-grid">
11

    
12
      <!-- LEFT HELP CONTENT -->
13
      <aside-help-content #leftHelperContent [position]="'left'"
14
                          [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
15
      </aside-help-content>
16

    
17
      <!-- MIDDLE -->
18
      <div class=" uk-width-expand@m">
19
        <div class="md-card uk-margin-large-bottom">
20
          <div class="md-card-content">
21
            <form class="uk-form-stacked" id="wizard_advanced_form" novalidate="">
22
              <div id="wizard_advanced" role="application" class="wizard clearfix">
23
                <div class="steps clearfix">
24
                  <ul role="tablist">
25
                    <li role="tab" class="first {{ (currentStep == 1) ? 'current' : '' }}" aria-disabled="false" aria-selected="true">
26
                      <a id="wizard_advanced-t-0" href="#wizard_advanced-h-0" aria-controls="wizard_advanced-p-0">
27
                        <!--<span class="current-info audible">current step: </span>-->
28
                        <span class="number">1</span>
29
                        <span class="title">Register data source</span>
30
                      </a>
31
                    </li>
32
                    <li role="tab" class="{{ (currentStep < 2) ? 'disabled' : '' }} {{ (currentStep == 2) ? 'current' : '' }}" aria-disabled="true">
33
                      <a id="wizard_advanced-t-1" href="#wizard_advanced-h-1" aria-controls="wizard_advanced-p-1">
34
                        <span class="number">2</span>
35
                        <span class="title">Register interface</span>
36
                      </a>
37
                    </li>
38
                    <li role="tab" class=" {{ (currentStep < 3) ? 'disabled' : '' }} {{ (currentStep == 3) ? 'current' : '' }}" aria-disabled="true">
39
                      <a id="wizard_advanced-t-2" href="#wizard_advanced-h-2" aria-controls="wizard_advanced-p-2">
40
                        <span class="number">3</span>
41
                    <!-- ToU: uncomment this section -->
42
                        <!--<span class="title">Terms of Use</span>
43
                      </a>
44
                    </li>
45
                    <li role="tab" class=" {{ (currentStep < 4) ? 'disabled' : '' }} {{ (currentStep == 4) ? 'current' : '' }}" aria-disabled="true">
46
                      <a id="wizard_advanced-t-3" href="#wizard_advanced-h-3" aria-controls="wizard_advanced-p-2">
47
                        <span class="number">4</span>-->
48
                        <span class="title">Finish</span>
49
                      </a>
50
                    </li>
51
                  </ul>
52
                </div>
53
                <div class="content clearfix" style="height: 660px">
54

    
55
                  <div *ngIf="loadingMessage" class="loading-big">
56
                    <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
57
                      {{ loadingMessage }}
58
                    </div>
59
                    <div class="whiteFilm"></div>
60
                  </div>
61
                  <div *ngIf="errorMessage" class="uk-alert uk-alert-danger uk-margin-top">{{ errorMessage }}</div>
62

    
63
                  <!-- first section -->
64
                  <h3 id="wizard_advanced-h-0" tabindex="-1" class="title {{ (currentStep == 1) ? 'current' : '' }}">Enter Information</h3>
65
                  <section id="wizard_advanced-p-0" role="tabpanel" aria-labelledby="wizard_advanced-h-0"
66
                           class="body step-0 {{ (currentStep == 1) ? 'current' : '' }}" data-step="0" aria-hidden="false">
67
                    <!--<h2 class="heading_a">-->
68
                    <!--Select Repository-->
69
                    <!--<span class="sub-heading">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</span>-->
70
                    <!--</h2>-->
71
                    <!--<hr class="md-hr">-->
72
                    <datasource-create-form *ngIf="(currentStep === 1) && !loadingMessage"
73
                                            #registerDatasource
74
                                            [mode]="datasourceType"
75
                                            [selectedRepo]="repo"
76
                                            (emittedInfo)="getCurrentRepo($event)"></datasource-create-form>
77
                  </section>
78

    
79
                  <!-- second section -->
80
                  <h3 id="wizard_advanced-h-1" tabindex="-1" class="title {{ (currentStep == 2) ? 'current' : '' }}">Add Interfaces</h3>
81
                  <section id="wizard_advanced-p-1" role="tabpanel" aria-labelledby="wizard_advanced-h-1"
82
                           class="body step-1 {{ (currentStep == 2) ? 'current' : '' }}" data-step="1"  aria-hidden="true">
83
                    <!--<h2 class="heading_a">-->
84
                    <!--Enter Information-->
85
                    <!--<span class="sub-heading">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</span>-->
86
                    <!--</h2>-->
87
                    <!--<hr class="md-hr">-->
88

    
89
                    <div *ngIf="(currentStep === 2) && repo && !loadingMessage" class="uk-grid uk-grid-match">
90

    
91
                      <div *ngFor="let inter of dataForInterfaceComp" class="uk-width-1-2@m uk-margin-bottom">
92
                        <div>
93
                          <div class="md-card" style="height: 100%">
94
                            <app-repository-interface-form #interfacesArray
95
                                                           [data]="inter"
96
                                                           (emitDeleteInterface)="removeInterfaceFromList($event)">
97
                            </app-repository-interface-form>
98
                          </div>
99
                        </div>
100
                      </div>
101

    
102
                      <div class="uk-width-1-2@m uk-margin-bottom">
103
                        <div>
104
                          <div class="md-card" style="height: 100%">
105
                            <div class="md-card-toolbar">
106
                            </div>
107
                            <div class="md-card-content">
108
                              <div class="interface-box new" style="text-align: center">
109
                                <a class="add-new-element add-new-group" (click)="addInterfaceToList()">
110
                                  <i class="far fa-plus-square" aria-hidden="true"></i>
111
                                  <span class="info">Add New Interface</span>
112
                                </a>
113
                              </div>
114
                            </div>
115
                          </div>
116
                        </div>
117

    
118
                      </div>
119

    
120

    
121
                    </div>
122
                  </section>
123

    
124
                  <!-- third section -->
125
                  <h3 id="wizard_advanced-h-2" tabindex="-1" class="title {{ (currentStep == 3) ? 'current' : '' }}">Finish</h3>
126
                  <!-- ToU: replace line above with line below -->
127
                  <!--                  <h3 id="wizard_advanced-h-2" tabindex="-1" class="title {{ (currentStep == 3) ? 'current' : '' }}">Terms of Use</h3>-->
128
                  <section id="wizard_advanced-p-2" role="tabpanel" aria-labelledby="wizard_advanced-h-2"
129
                           class="body step-2 {{ (currentStep == 3) ? 'current' : '' }}" data-step="2" aria-hidden="true">
130
                    <div *ngIf="(currentStep === 3) && !loadingMessage" class="row openAIRECompliantLogoDownload">
131
                    <!-- ToU: delete line above and uncomment section below -->
132
                    <!--<div *ngIf="(currentStep === 3) && !loadingMessage" class="uk-grid">
133
                      <datasource-update-terms-form #updateTermsForm
134
                                                    [selectedRepo]="repo"
135
                                                    [showButton]=false></datasource-update-terms-form>
136
                    </div>
137
                  </section>
138

    
139
                  &lt;!&ndash; fourth section &ndash;&gt;
140
                  <h3 id="wizard_advanced-h-3" tabindex="-1" class="title {{ (currentStep == 4) ? 'current' : '' }}">Finish</h3>
141
                  <section id="wizard_advanced-p-3" role="tabpanel" aria-labelledby="wizard_advanced-h-3"
142
                           class="body step-3 {{ (currentStep == 4) ? 'current' : '' }}" data-step="3" aria-hidden="true">
143
                    <div *ngIf="(currentStep === 4) && !loadingMessage" class="row openAIRECompliantLogoDownload">-->
144
                      <div class="col-lg-12">
145
                        <div class="col-md-12">
146
                          <div>
147
                            <div class="openAIRECompliantLogo">
148
                              <h2 class="openAIRECompliantLogoMessage">
149
                                We successfully received the request to register/update your repository with/on OpenAIRE.
150
                                It usually takes about 6 weeks to check your metadata and index it.
151
                                For questions, please create a <a href="https://www.openaire.eu/support/helpdesk" target="_blank">helpdesk ticket</a>
152
                                or write to <a href="mailto:helpdesk@openaire.eu">helpdesk@openaire.eu</a>.
153
                                <!--Congratulations! Your repository was successfully registered in OpenAIRE. You can download this logo to use in your site.-->
154
                              </h2>
155
                              <!--<img src="../../../../assets/imgs/3_0ValidatedLogo.png" alt="OpenAireCompliant">-->
156
                            </div>
157
                          </div>
158
                          <!--<a (click)="downloadLogo()">-->
159
                          <!--Download-->
160
                          <!--<i class="fa fa-download" style=""></i>-->
161
                          <!--</a>-->
162
                        </div>
163
                      </div>
164
                    </div>
165
                  </section>
166

    
167
                </div>
168
                <div *ngIf="currentStep != 3" class="actions clearfix">
169
                  <ul role="menu" aria-label="Pagination">
170
                    <li class="button_previous {{ (currentStep < 1) ? 'disabled' : '' }}" aria-disabled="true">
171
                      <a (click)="moveBackAStep()" role="menuitem"><i class="material-icons"></i> Previous</a>
172
                    </li>
173
                    <li *ngIf="currentStep < 2" class="button_next" aria-hidden="false" aria-disabled="false">
174
                      <a (click)="moveAStep()" role="menuitem">Next<i class="material-icons"></i></a>
175
                    </li>
176
                    <li *ngIf="currentStep == 2" class="button_finish" aria-hidden="true">
177
                      <a (click)="moveAStep()" role="menuitem">Finish</a>
178
                    </li>
179
                  </ul>
180
                </div>
181
                <!-- ToU: replace above <div> with commented section below -->
182
                <!--<div *ngIf="currentStep != 4" class="actions clearfix">
183
                  <ul role="menu" aria-label="Pagination">
184
                    <li class="button_previous {{ (currentStep <= 1) ? 'disabled' : '' }}" aria-disabled="true">
185
                      <a (click)="moveBackAStep()" role="menuitem"><i class="material-icons"></i> Previous</a>
186
                    </li>
187
                    <li *ngIf="currentStep < 3" class="button_next" aria-hidden="false" aria-disabled="false">
188
                      <a (click)="moveAStep()" role="menuitem">Next<i class="material-icons"></i></a>
189
                    </li>
190
                    <li *ngIf="currentStep == 3" class="button_finish" aria-hidden="true">
191
                      <a (click)="moveAStep()" role="menuitem">Finish</a>
192
                    </li>
193
                  </ul>
194
                </div>-->
195
              </div>
196
            </form>
197
          </div>
198
        </div>
199
      </div>
200

    
201
      <!-- RIGHT HELP CONTENT -->
202
      <aside-help-content #rightHelperContent [position]="'right'"
203
                          [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
204
      </aside-help-content>
205

    
206
    </div>
207

    
208
    <!-- BOTTOM HELP CONTENT -->
209
    <help-content #bottomHelperContent [position]="'bottom'"
210
                  [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
211
    </help-content>
212

    
213
  </div>
214
</div>
215

    
216

    
217

    
218
<!--<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">-->
219
  <!--<div class="uk-width-1-1@m uk-first-column">-->
220

    
221
    <!--<h1 class="uk-h2">Register your datasource</h1>-->
222

    
223
    <!--&lt;!&ndash; TOP HELP CONTENT &ndash;&gt;-->
224
    <!--<help-content #topHelperContent [position]="'top'"-->
225
                  <!--[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">-->
226
    <!--</help-content>-->
227

    
228
    <!--<div class="uk-container uk-container-large uk-margin-medium-top uk-margin-medium-bottom">-->
229
      <!--<div class="uk-grid">-->
230

    
231
        <!--&lt;!&ndash; LEFT HELP CONTENT &ndash;&gt;-->
232
        <!--<aside-help-content #leftHelperContent [position]="'left'"-->
233
                            <!--[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">-->
234
        <!--</aside-help-content>-->
235

    
236
        <!--&lt;!&ndash; MIDDLE &ndash;&gt;-->
237
        <!--<div class=" uk-width-expand@m">-->
238

    
239
          <!--<div class="wizard">-->
240
            <!--<div class="wizardBreadcrumbs">-->
241
              <!--<div class="steps clearfix">-->
242
                <!--<div class="step active">-->
243
                  <!--<div>-->
244
                    <!--Enter Information-->
245
                    <!--<span></span>-->
246
                  <!--</div>-->
247
                <!--</div>-->
248
                <!--<div class="step {{ (currentStep > 1) ? 'active' : '' }}">-->
249
                  <!--<div>-->
250
                    <!--Add Interfaces-->
251
                    <!--<span></span>-->
252
                  <!--</div>-->
253
                <!--</div>-->
254
                <!--<div class="step {{ (currentStep > 2) ? 'active' : '' }}">-->
255
                  <!--<div>-->
256
                    <!--Finish-->
257
                    <!--<span></span>-->
258
                  <!--</div>-->
259
                <!--</div>-->
260
              <!--</div>-->
261
            <!--</div>-->
262
            <!--<div class="content">-->
263
              <!--<div>-->
264
                <!--<div class="animated fadeInRight stepContent">-->
265
                  <!--<div *ngIf="loadingMessage" class="loading-big">-->
266
                    <!--<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">-->
267
                      <!--{{ loadingMessage }}-->
268
                    <!--</div>-->
269
                    <!--<div class="whiteFilm"></div>-->
270
                  <!--</div>-->
271
                  <!--<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>-->
272

    
273
                  <!--<div>-->
274
                    <!--<datasource-create-form *ngIf="(currentStep === 1) && !loadingMessage"-->
275
                                            <!--#registerDatasource-->
276
                                            <!--[mode]="datasourceType"-->
277
                                            <!--[selectedRepo]="repo"-->
278
                                            <!--(emittedInfo)="getCurrentRepo($event)"></datasource-create-form>-->
279

    
280
                    <!--<div *ngIf="(currentStep === 2) && repo && !loadingMessage" class="uk-grid uk-child-width-1-2">-->
281
                      <!--<div *ngFor="let inter of dataForInterfaceComp"-->
282
                           <!--class="interfacesForm el-item uk-card uk-card-default uk-card-body uk-scrollspy-inview uk-animation-fade uk-margin-bottom">-->
283
                        <!--<app-repository-interface-form #interfacesArray-->
284
                                                       <!--[data]="inter"-->
285
                                                       <!--(emitDeleteInterface)="removeInterfaceFromList($event)">-->
286
                        <!--</app-repository-interface-form>-->
287
                      <!--</div>-->
288
                      <!--<div class="el-item uk-card uk-card-default uk-card-body uk-scrollspy-inview uk-animation-fade uk-margin-bottom">-->
289
                        <!--<div class="interface-box new" style="text-align: center">-->
290
                          <!--<a class="add-new-element add-new-group" (click)="addInterfaceToList()">-->
291
                            <!--<i class="far fa-plus-square" aria-hidden="true"></i>-->
292
                            <!--<span class="info">Add New Interface</span>-->
293
                          <!--</a>-->
294
                        <!--</div>-->
295
                      <!--</div>-->
296
                    <!--</div>-->
297
                    <!--<div *ngIf="(currentStep === 3) && !loadingMessage" class="row openAIRECompliantLogoDownload">-->
298
                      <!--<div class="col-lg-12">-->
299
                        <!--<div class="col-md-12">-->
300
                          <!--<div>-->
301
                            <!--<div class="openAIRECompliantLogo">-->
302
                              <!--<h2 class="openAIRECompliantLogoMessage">-->
303
                                <!--We successfully received the request to register your repository to the OpenAIRE compliant list of content providers.-->
304
                                <!--A validation process against the OpenAIRE guidelines compatibility has been started.-->
305
                                <!--You will be informed via email once the process is finished.-->
306
                                <!--&lt;!&ndash;Congratulations! Your repository was successfully registered in OpenAIRE. You can download this logo to use in your site.&ndash;&gt;-->
307
                              <!--</h2>-->
308
                              <!--&lt;!&ndash;<img src="../../../../assets/imgs/3_0ValidatedLogo.png" alt="OpenAireCompliant">&ndash;&gt;-->
309
                            <!--</div>-->
310
                          <!--</div>-->
311
                          <!--&lt;!&ndash;<a (click)="downloadLogo()">&ndash;&gt;-->
312
                            <!--&lt;!&ndash;Download&ndash;&gt;-->
313
                            <!--&lt;!&ndash;<i class="fa fa-download" style=""></i>&ndash;&gt;-->
314
                          <!--&lt;!&ndash;</a>&ndash;&gt;-->
315
                        <!--</div>-->
316
                      <!--</div>-->
317
                    <!--</div>-->
318
                  <!--</div>-->
319
                <!--</div>-->
320
              <!--</div>-->
321
            <!--</div>-->
322
            <!--<div class="wizardActions">-->
323
              <!--<button *ngIf="(currentStep === 2) && !loadingMessage" class="uk-button uk-button-grey-light uk-margin-small-right"-->
324
                      <!--type="button" (click)="moveBackAStep()">-->
325
                <!--<i class="fa fa-angle-double-left"></i>-->
326
                <!--Back-->
327
              <!--</button>-->
328
              <!--<button *ngIf="(currentStep < 3) && !loadingMessage" class="uk-button uk-button-grey-light uk-margin-small-left"-->
329
                      <!--type="button" (click)="moveAStep()">-->
330
                <!--Next-->
331
                <!--<i class="fa fa-angle-double-right"></i>-->
332
              <!--</button>-->
333
            <!--</div>-->
334
          <!--</div>-->
335

    
336
        <!--</div>-->
337

    
338
        <!--&lt;!&ndash; RIGHT HELP CONTENT &ndash;&gt;-->
339
        <!--<aside-help-content #rightHelperContent [position]="'right'"-->
340
                            <!--[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">-->
341
        <!--</aside-help-content>-->
342

    
343
      <!--</div>-->
344
    <!--</div>-->
345

    
346

    
347
    <!--&lt;!&ndash; BOTTOM HELP CONTENT &ndash;&gt;-->
348
    <!--<help-content #bottomHelperContent [position]="'bottom'"-->
349
                  <!--[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">-->
350
    <!--</help-content>-->
351

    
352

    
353
  <!--</div>-->
354
<!--</div>-->
(5-5/10)