1
|
<div *ngIf="loadingMessage" class="loading-big">
|
2
|
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
3
|
{{ loadingMessage }}
|
4
|
</div>
|
5
|
<div class="whiteFilm"></div>
|
6
|
</div>
|
7
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
8
|
<div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
|
9
|
|
10
|
<form *ngIf="selectedRepo && !loadingMessage" [formGroup]="agreementForm">
|
11
|
<div *ngIf="showButton" class="uk-margin-small"> <!-- Update -->
|
12
|
<span>Being registered in OpenAIRE, you are giving consent to OpenAIRE to download, transform and enrich the metadata records, publishing them in the OpenAIRE Research Graph.</span>
|
13
|
</div>
|
14
|
<div *ngIf="!showButton" class="uk-margin-medium"> <!-- Register -->
|
15
|
<span>By registering your data source, you are giving your consent to OpenAIRE to download, transform and enrich the metadata records, publishing them in the OpenAIRE Research Graph.</span>
|
16
|
</div>
|
17
|
<form-inline>
|
18
|
<label><input formControlName="acceptTerms" class="uk-checkbox" type="checkbox" checked
|
19
|
[checked]="this.agreementForm.get('acceptTerms').value === true"
|
20
|
(change)="emitRepo()">
|
21
|
Accept the
|
22
|
</label>
|
23
|
<a href="https://www.openaire.eu/terms-of-use-for-content-providers" target="_blank">Terms of Use</a>
|
24
|
</form-inline>
|
25
|
<form-inline>
|
26
|
<label><input formControlName="textMining" class="uk-checkbox" type="checkbox"
|
27
|
[checked]="this.agreementForm.get('textMining').value === true"
|
28
|
(change)="emitRepo()">
|
29
|
Agree to the <a href="https://www.openaire.eu/terms-of-use-for-content-providers#consent" target="_blank">re-use of full texts</a>
|
30
|
</label>
|
31
|
</form-inline>
|
32
|
<ng-container *ngIf="showButton">
|
33
|
<div class="uk-margin-top" *ngIf="selectedRepo.registrationdate">Data source registration date: {{selectedRepo.registrationdate | date}}</div>
|
34
|
<div class="uk-margin-small-top">Last date of acceptance of the Terms of Use: {{selectedRepo.lastConsentTermsOfUseDate ? (selectedRepo.lastConsentTermsOfUseDate | date) : '-'}}</div>
|
35
|
</ng-container>
|
36
|
<p class="uk-text-meta">Note: OpenAIRE will not provide the full text files for public distribution, the users will access from the original datasource.</p>
|
37
|
<div *ngIf="showButton" class="form-group">
|
38
|
<button class="uk-button uk-button-primary updateRepoInfoButton" type="button" (click)="updateRepo()">Update Information</button>
|
39
|
</div>
|
40
|
</form>
|
41
|
|
42
|
<!--<pre>{{agreementForm.value|json}}</pre>-->
|