Project

General

Profile

1
<div>
2
  <div *ngIf="loadingMessage" class="loading-big">
3

    
4
    <div class="md-class-content">
5
      <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
6
        {{ loadingMessage }}
7
      </div>
8
      <div class="whiteFilm"></div>
9
    </div>
10

    
11
  </div>
12
  <div *ngIf="repoInterfaceForm && (!loadingMessage || (loadingMessage===''))" [formGroup]="repoInterfaceForm">
13

    
14
    <div class="md-card-toolbar">
15
      <div class="md-card-toolbar-actions">
16
        <a *ngIf="!inRegister" (click)="saveInterface()" class="uk-margin-small-right"><i class="md-icon material-icons">save</i></a>
17
        <a *ngIf="canEdit" (click)="removeInterface()" class="uk-margin-small-left"><i class="md-icon material-icons">clear</i></a>
18
      </div>
19
    </div>
20

    
21
    <div class="md-card-content">
22
      <div *ngIf="successMessage" class="uk-alert uk-alert-success" style="clear: both">{{ successMessage }}</div>
23
      <div *ngIf="errorMessage" class="uk-alert" [ngClass]="{'uk-alert-warning': errorMessage == invalidCustomBaseUrl,
24
                'uk-alert-danger': errorMessage != invalidCustomBaseUrl}" style="clear: both">{{ errorMessage }}
25
      </div>
26

    
27
      <div class="md-input-wrapper uk-margin-medium-top {{ (repoInterfaceForm.get('baseurl') != null) ? 'md-input-filled' : '' }}">
28
        <label class="" for="baseurl" title="{{ baseUrlDesc.desc }}">Base OAI-PMH URL (*)</label>
29
        <span *ngIf="showIdentifiedBaseUrl" class="help-block inline" style="margin-top: 8px; margin-bottom: 0px; padding-left: 10px; display: block;">
30
          Identified
31
        </span>
32
        <input id="baseurl" type="text" class="md-input" [ngClass]="{'uk-disabled': !canEdit}"
33
               formControlName="baseurl" (blur)="getInterfaceInfo()">
34
        <span class="md-input-bar"></span>
35
      </div>
36

    
37

    
38
      <div class="radioButtonForm uk-margin-top">
39
        <label for="selectValidationSet{{interfaceID}}" class="control-label">Set</label>
40
        <div class="md-input-wrapper">
41
          <select class="md-input" id="selectValidationSet{{interfaceID}}" formControlName="selectValidationSet" (change)="checkIfValid()">
42
            <option value="" selected>-- none selected --</option>
43
            <option *ngFor="let set of valsetList" value="{{set}}">{{set}}</option>
44
          </select>
45
          <span class="md-input-bar"></span>
46
        </div>
47

    
48
      </div>
49

    
50
      <div class="md-input-wrapper md-input-filled uk-margin-medium-top">
51
        <div>
52
          <label class="" for="compLvl" title="{{ compatibilityLevelDesc.desc }}">Select the Guidelines with which your data source is compatible.
53
            Please note that the Aggregation Team will evaluate the compatibility, so the actual compliance level may be different from which you chose.
54
          </label>
55
        </div>
56
        <select class="md-input" id="compLvl" formControlName="desiredCompatibilityLevel" (change)="checkIfValid()">
57
          <option value="">-- none selected --</option>
58
          <option *ngFor="let key of classCodes" value="{{key}}">{{compClasses[key]}}</option>
59
        </select>
60
        <span class="md-input-bar"></span>
61
      </div>
62

    
63
      <div class="uk-margin-medium-top">
64
        <label class="">Compatible level returned by the Validator tool after your request to register the interface.</label>
65
        <div class="uk-margin-small-top">{{(repoInterfaceForm.get('compatibilityLevel').value && repoInterfaceForm.get('compatibilityLevel').value !== 'UNKNOWN')
66
          ? this.compClasses[repoInterfaceForm.get('compatibilityLevel').value] : 'not available' }}</div>
67
      </div>
68

    
69
      <div class="uk-margin-medium-top">
70
        <label class="">Actual compatibility level of your data source, according to the validation process by the Aggregation Team. This is the compatibility level displayed on the data source public page in EXPLORE</label>
71
        <div class="uk-margin-small-top">{{repoInterfaceForm.get('compatibilityLevelOverride').value ? this.compClasses[repoInterfaceForm.get('compatibilityLevelOverride').value] : 'not available' }}</div>
72
      </div>
73

    
74
      <div class="uk-margin-medium-top">
75
        <label class="" for="comment" title="{{ commentDesc.desc }}">Comments (What else do we need to know?)</label>
76
        <textarea id="comment" class="uk-textarea" rows="3" formControlName="comment" (blur)="checkIfValid()"></textarea>
77
      </div>
78

    
79
    </div>
80

    
81
<!--    <pre>{{repoInterfaceForm.value | json}}</pre>-->
82
<!--    <pre>{{interfaceToExport | json}}</pre>-->
83

    
84
  </div>
85
</div>
(3-3/8)