Project

General

Profile

1
<div>
2
  <div class="interfaceActionsPanel">
3
    <a (click)="saveInterface()"><i class="fa 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" [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 class="form-group has-success">
20
      <label class="control-label" for="baseUrl" title="{{ baseUrlDesc.desc }}">Base OAI-PMH URL (*)</label>
21
      <span *ngIf="identifiedBaseUrl" class="help-block inline" style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">
22
        Identified
23
      </span>
24
      <input id="baseUrl" type="text" class="form-control" formControlName="baseUrl" (blur)="getInterfaceInfo(group.get('baseUrl').value)" required>
25
    </div>
26
    <div class="form-group">
27
      <label class="control-label">Validation Set (*)</label>
28
      <div>
29
        <label class="uk-button validationSetRadio" for="selectRadio{{index}}" title="{{ existingValSetDesc.desc }}">
30
          <input id="selectRadio{{index}}" value="select" name="validationSet{{index}}" type="radio" (change)="chooseValSet(true)" checked>
31
          <span>Choose existing</span>
32
        </label>
33
      </div>
34
      <select id="selectValidationSet{{index}}" formControlName="selectValidationSet" class="form-control" >
35
        <option value="" selected>-- none selected --</option>
36
        <option *ngFor="let set of valsetList" value="{{set}}">{{set}}</option>
37
      </select>
38
      <div>
39
        <label class="uk-button validationSetRadio" for="customRadio{{index}}" title="{{ customValSetDesc.desc }}">
40
          <input id="customRadio{{index}}" value="custom" name="validationSet{{index}}" type="radio" (change)="chooseValSet(false)">
41
          <span>or a custom one</span>
42
        </label>
43
      </div>
44
      <input id="customValidationSet{{index}}" formControlName="customValidationSet" class="form-control" type="text">
45
    </div>
46
    <div class="form-group">
47
      <label class="control-label" for="compLvl" title="{{ compatibilityLevelDesc.desc }}">Desired Compatibility Level (*)</label>
48
      <select class="form-control" #compLvl id="compLvl" formControlName="compatibilityLevel" required>
49
        <option value="">-- none selected --</option>
50
        <option *ngFor="let key of classCodes" value="{{key}}">{{compClasses[key]}}</option>
51
      </select>
52
    </div>
53
    <div>
54
      <label class="uk-form-controls-text control-label">Current Compatibility Level</label>
55
      <div *ngIf="compLvl == ''">not available</div>
56
      <div *ngIf="currentInterface && currentInterface.desiredCompatibilityLevel">{{ compClasses[currentInterface.desiredCompatibilityLevel] }}</div>
57
    </div>
58
  </div>
59
</div>
(3-3/6)