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
|
<form *ngIf="selectedRepo && !loadingMessage" [formGroup]="updateGroup">
|
10
|
<div>
|
11
|
<h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="">
|
12
|
Basic information
|
13
|
</h4>
|
14
|
</div>
|
15
|
<div *ngIf="selectedRepo.datasourceType === 'opendoar'" class="uk-alert uk-alert-primary">
|
16
|
The following fields are completed by OpenDOAR.<br>
|
17
|
If you want to edit them, you can do it by using this
|
18
|
<a target="_blank" href="{{ 'http://v2.sherpa.ac.uk/id/repository/' + repoId }}">OpenDOAR link</a>
|
19
|
</div>
|
20
|
<div *ngIf="selectedRepo.datasourceType === 're3data'" class="uk-alert uk-alert-primary">
|
21
|
The following fields are completed by Re3data.<br>
|
22
|
If you want to edit them, you can do it by using this
|
23
|
<a target="_blank" href="{{ 'http://service.re3data.org/repository/' + repoId }}">Re3data link</a>
|
24
|
</div>
|
25
|
<form-inline [description]="softwarePlatformDesc" [valid]="updateGroup.get('softwarePlatform').valid">
|
26
|
<select formControlName="softwarePlatform" class="form-control">
|
27
|
<!-- <option value="" selected>[Other] (enter name below)</option> RESTORE AFTER getTypologies begins to work-->
|
28
|
<option *ngFor="let platform of typologies" value="{{ platform.value }}">{{ platform.name }}</option>
|
29
|
</select>
|
30
|
</form-inline>
|
31
|
<form-inline [description]="platformNameDesc" [valid]="updateGroup.get('platformName').valid">
|
32
|
<span *ngIf="updateGroup.get('platformName').touched && updateGroup.get('platformName').value"
|
33
|
class="help-block inline"
|
34
|
style="margin-top: 0px; margin-bottom: 0px; ">This value will be used as the platform for your repository</span>
|
35
|
<input formControlName="platformName" class="form-control" style="" type="text">
|
36
|
</form-inline>
|
37
|
<form-inline [description]="officialNameDesc" [valid]="updateGroup.get('officialName').valid">
|
38
|
<input formControlName="officialName" class="form-control" style="" type="text">
|
39
|
</form-inline>
|
40
|
<div *ngIf="selectedRepo.datasourceType == 'journal'">
|
41
|
<form-inline [description]="issnDesc" [valid]="updateGroup.get('issn').valid">
|
42
|
<span *ngIf="updateGroup.get('issn').invalid && updateGroup.get('issn').touched && updateGroup.get('issn').dirty"
|
43
|
class="help-block inline uk-text-danger"
|
44
|
style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Issn needs to be of the form: "1111-1111" or "1111-111X"</span>
|
45
|
<input formControlName="issn" class="form-control" type="text"
|
46
|
(focus)="updateGroup.get('issn').markAsUntouched()" (blur)="updateGroup.get('issn').updateValueAndValidity()">
|
47
|
</form-inline>
|
48
|
<form-inline [description]="eissnDesc" [valid]="updateGroup.get('eissn').valid">
|
49
|
<span *ngIf="updateGroup.get('eissn').invalid && updateGroup.get('eissn').touched && updateGroup.get('eissn').dirty"
|
50
|
class="help-block inline uk-text-danger"
|
51
|
style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Eissn needs to be of the form: "1111-1111" or "1111-111X"</span>
|
52
|
<input formControlName="eissn" class="form-control" type="text"
|
53
|
(focus)="updateGroup.get('eissn').markAsUntouched()" (blur)="updateGroup.get('eissn').updateValueAndValidity()">
|
54
|
</form-inline>
|
55
|
<form-inline [description]="lissnDesc" [valid]="updateGroup.get('lissn').valid">
|
56
|
<span *ngIf="updateGroup.get('lissn').invalid && updateGroup.get('lissn').touched && updateGroup.get('lissn').dirty"
|
57
|
class="help-block inline uk-text-danger"
|
58
|
style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Lissn needs to be of the form: "1111-1111" or "1111-111X"</span>
|
59
|
<input formControlName="lissn" class="form-control" type="text"
|
60
|
(focus)="updateGroup.get('lissn').markAsUntouched()" (blur)="updateGroup.get('lissn').updateValueAndValidity()">
|
61
|
</form-inline>
|
62
|
</div>
|
63
|
<form-inline [description]="repoDescriptionDesc" [valid]="updateGroup.get('repoDescription').valid">
|
64
|
<textarea formControlName="repoDescription" class="form-control"></textarea>
|
65
|
</form-inline>
|
66
|
<form-inline [description]="countryDesc" [valid]="updateGroup.get('country')">
|
67
|
<select formControlName="country" class="form-control">
|
68
|
<option value="">-- none selected --</option>
|
69
|
<option *ngFor="let country of countries" value="{{country.code}}" title="{{country.name}}">{{ country.name }}</option>
|
70
|
</select>
|
71
|
</form-inline>
|
72
|
<form-inline [description]="longtitudeDesc" [valid]="updateGroup.get('longtitude').valid">
|
73
|
<input formControlName="longtitude" type="text" class="form-control">
|
74
|
</form-inline>
|
75
|
<form-inline [description]="latitudeDesc" [valid]="updateGroup.get('latitude').valid">
|
76
|
<input formControlName="latitude" type="text" class="form-control">
|
77
|
</form-inline>
|
78
|
<form-inline [description]="websiteUrlDesc" [valid]="updateGroup.get('websiteUrl').valid">
|
79
|
<input formControlName="websiteUrl" class="form-control" type="text">
|
80
|
</form-inline>
|
81
|
<form-inline [description]="institutionNameDesc" [valid]="updateGroup.get('institutionName').valid">
|
82
|
<input formControlName="institutionName" class="form-control" type="text">
|
83
|
</form-inline>
|
84
|
<h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium"
|
85
|
uk-scrollspy-class="">Extra Information</h4>
|
86
|
<form-inline [description]="englishNameDesc" [valid]="updateGroup.get('englishName').valid">
|
87
|
<input formControlName="englishName" class="form-control" type="text">
|
88
|
</form-inline>
|
89
|
<form-inline [description]="logoUrlDesc" [valid]="updateGroup.get('logoUrl').valid">
|
90
|
<span *ngIf="updateGroup.get('logoUrl').invalid && updateGroup.get('logoUrl').touched && updateGroup.get('logoUrl').dirty"
|
91
|
class="help-block inline uk-text-danger"
|
92
|
style="margin-top: 0px; margin-bottom: 0px; ">The url you entered is not valid</span>
|
93
|
<input formControlName="logoUrl" class="form-control" type="text"
|
94
|
(focus)="updateGroup.get('logoUrl').markAsUntouched()"
|
95
|
(blur)="updateGroup.get('logoUrl').updateValueAndValidity()">
|
96
|
<div class="comment fontItalic">
|
97
|
Please make sure that the maximum size of the uploaded image is width=360px, height=240px
|
98
|
</div>
|
99
|
</form-inline>
|
100
|
<form-inline [description]="timezoneDesc" [valid]="updateGroup.get('timezone').valid">
|
101
|
<select formControlName="timezone" class="form-control">
|
102
|
<option value="">-- none selected --</option>
|
103
|
<option *ngFor="let timezone of timezones" value="{{ timezone.offset }}">{{ timezone.name }}</option>
|
104
|
</select>
|
105
|
</form-inline>
|
106
|
<form-inline [description]="datasourceTypeDesc" [valid]="updateGroup.get('datasourceType').valid">
|
107
|
<select formControlName="datasourceType" class="form-control">
|
108
|
<option value="">-- none selected --</option>
|
109
|
<option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses[key] }}</option>
|
110
|
</select>
|
111
|
</form-inline>
|
112
|
<h4 class="uk-h4 uk-text-primary uk-scrollspy-inview uk-animation-slide-top-medium"
|
113
|
uk-scrollspy-class="">Administrator & contact information</h4>
|
114
|
<form-inline [description]="adminEmailDesc" [valid]="updateGroup.get('adminEmail').valid">
|
115
|
<span *ngIf="updateGroup.get('adminEmail').invalid && updateGroup.get('adminEmail').touched && updateGroup.get('adminEmail').dirty"
|
116
|
class="help-block inline"
|
117
|
style="margin-top: 0px; margin-bottom: 0px; ">You need to enter a valid email address</span>
|
118
|
<input formControlName="adminEmail" class="form-control" type="text" (focus)="updateGroup.get('adminEmail').markAsUntouched()" (blur)="updateGroup.get('adminEmail').updateValueAndValidity()">
|
119
|
</form-inline>
|
120
|
<div *ngIf="showButton" class="form-group">
|
121
|
<button class="uk-button uk-button-primary updateRepoInfoButton" type="button" (click)="updateRepo()">Update Information</button>
|
122
|
</div>
|
123
|
</form>
|
124
|
|