1
|
<div>
|
2
|
<div class="interfaceActionsPanel">
|
3
|
<a *ngIf="!inRegister" (click)="saveInterface()" class="uk-margin-small-right"><i class="far fa-save fa-lg"></i></a>
|
4
|
</div>
|
5
|
<!-- <div>
|
6
|
<h5 *ngIf="currentInterface && oldInterface && currentRepository">{{ currentRepository.datasourceType }} Interface</h5>
|
7
|
</div>-->
|
8
|
</div>
|
9
|
<div>
|
10
|
<div *ngIf="loadingMessage" class="loading-big">
|
11
|
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
12
|
{{ loadingMessage }}
|
13
|
</div>
|
14
|
<div class="whiteFilm"></div>
|
15
|
</div>
|
16
|
<div *ngIf="group && (!loadingMessage || (loadingMessage===''))" [formGroup]="group">
|
17
|
<div *ngIf="successMessage" class="uk-alert uk-alert-success" style="clear: both">{{ successMessage }}</div>
|
18
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger" style="clear: both">{{ errorMessage }}</div>
|
19
|
<div *ngIf="groupErrorMessage" class="uk-alert uk-alert-danger" style="clear: both">{{ groupErrorMessage }}</div>
|
20
|
<div class="form-group has-success">
|
21
|
<label class="control-label" for="baseUrl" title="{{ baseUrlDesc.desc }}">Base OAI-PMH URL (*)</label>
|
22
|
<span *ngIf="identifiedBaseUrl" class="help-block inline" style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">
|
23
|
Identified
|
24
|
</span>
|
25
|
<input id="baseUrl" type="text" class="form-control" formControlName="baseUrl" (blur)="getInterfaceInfo(group.get('baseUrl').value)" required (change)="checkIfValid()">
|
26
|
</div>
|
27
|
<div class="form-group">
|
28
|
<!--<label class="control-label">Validation Set (*)</label>-->
|
29
|
<label class="control-label">Validation Set</label>
|
30
|
<div>
|
31
|
<label class="uk-button validationSetRadio" for="selectRadio{{index}}" title="{{ existingValSetDesc.desc }}">
|
32
|
<input id="selectRadio{{index}}" value="select" name="validationSet{{index}}" type="radio" (change)="chooseValSet(true)" checked>
|
33
|
<span>Choose existing</span>
|
34
|
</label>
|
35
|
</div>
|
36
|
<select id="selectValidationSet{{index}}" formControlName="selectValidationSet" class="form-control" (change)="checkIfValid()">
|
37
|
<option value="" selected>-- none selected --</option>
|
38
|
<option *ngFor="let set of valsetList" value="{{set}}">{{set}}</option>
|
39
|
</select>
|
40
|
<div>
|
41
|
<label class="uk-button validationSetRadio" for="customRadio{{index}}" title="{{ customValSetDesc.desc }}">
|
42
|
<input id="customRadio{{index}}" value="custom" name="validationSet{{index}}" type="radio" (change)="chooseValSet(false)">
|
43
|
<span>or a custom one</span>
|
44
|
</label>
|
45
|
</div>
|
46
|
<input id="customValidationSet{{index}}" formControlName="customValidationSet" class="form-control" type="text" (blur)="checkIfValid()">
|
47
|
</div>
|
48
|
<div class="form-group">
|
49
|
<label class="control-label" for="compLvl" title="{{ compatibilityLevelDesc.desc }}">Desired Compatibility Level (*)</label>
|
50
|
<select class="form-control" #compLvl id="compLvl" formControlName="compatibilityLevel" (change)="checkIfValid()">
|
51
|
<option value="">-- none selected --</option>
|
52
|
<option *ngFor="let key of classCodes" value="{{key}}">{{compClasses[key]}}</option>
|
53
|
</select>
|
54
|
</div>
|
55
|
<div>
|
56
|
<label class="uk-form-controls-text control-label">Current Compatibility Level</label>
|
57
|
<div *ngIf="!existingCompLevel">not available</div>
|
58
|
<div *ngIf="existingCompLevel">{{ existingCompLevel }}</div>
|
59
|
</div>
|
60
|
</div>
|
61
|
</div>
|