Project

General

Profile

« Previous | Next » 

Revision 62388

refactor. fix getDatasourceClasses and corresponding dropdown. fix issn fields

View differences:

datasource-update-form.component.html
12 12
      Basic information
13 13
    </h4>
14 14
  </div>
15
  <div *ngIf="selectedRepo.collectedFrom.split('openaire____::')[1] === 'opendoar'" class="uk-alert uk-alert-info">
15
  <div *ngIf="selectedRepo.collectedfrom.split('openaire____::')[1] === 'opendoar'" class="uk-alert uk-alert-info">
16 16
    The following fields are completed by OpenDOAR.<br>
17 17
    If you want to edit them, you can do it by using this
18 18
    <a target="_blank" href="{{ 'http://v2.sherpa.ac.uk/id/repository/' + repoId }}">OpenDOAR link</a>.
19 19
  </div>
20
  <div *ngIf="selectedRepo.collectedFrom.split('openaire____::')[1] === 're3data'" class="uk-alert uk-alert-info">
20
  <div *ngIf="selectedRepo.collectedfrom.split('openaire____::')[1] === 're3data'" class="uk-alert uk-alert-info">
21 21
    The following fields are completed by Re3data.<br>
22 22
    If you want to edit them, you can do it by using this
23 23
    <a target="_blank" href="{{ 'http://service.re3data.org/repository/' + repoId }}">Re3data link</a>.
24 24
  </div>
25
  <div *ngIf="selectedRepo.collectedFrom.split('openaire____::')[1] === 'fairsharing'" class="uk-alert uk-alert-info">
25
  <div *ngIf="selectedRepo.collectedfrom.split('openaire____::')[1] === 'fairsharing'" class="uk-alert uk-alert-info">
26 26
    The following fields are completed by FAIRsharing.<br>
27 27
    If you want to edit them, you can do it by using this
28
    <a target="_blank" href="{{ 'https://fairsharing.org/search?q=' + selectedRepo.officialName }}">FAIRsharing link</a>.
28
    <a target="_blank" href="{{ 'https://fairsharing.org/search?q=' + selectedRepo.officialname }}">FAIRsharing link</a>.
29 29
  </div>
30 30

  
31 31
  <div data-dynamic-fields="d_field_wizard" class="uk-grid" data-uk-grid-margin="" dynamic-fields-counter="0">
......
64 64
    </div>
65 65
  </div>
66 66

  
67
  <div *ngIf="selectedRepo.datasourceType == 'journal'">
67
  <div *ngIf="selectedRepo.eoscDatasourceType == 'Journal archive'">
68 68
    <div data-dynamic-fields="d_field_wizard" class="uk-grid" data-uk-grid-margin="" dynamic-fields-counter="0">
69 69
      <div class="uk-width-medium-1-1 parsley-row form_section uk-row-first">
70
        <div class="md-input-wrapper {{ (updateGroup.get('issn') != null) ? 'md-input-filled' : '' }}">
70
        <div class="md-input-wrapper {{ (updateGroup.get('issn') != null) ? 'md-input-filled' : '1234-5678' }}">
71 71
          <form-inline [description]="issnDesc" [valid]="updateGroup.get('issn').valid">
72 72
            <span *ngIf="updateGroup.get('issn').invalid && updateGroup.get('issn').touched && updateGroup.get('issn').dirty"
73 73
                  class="help-block inline uk-text-danger"
74
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Issn needs to be of the form: "1111-1111" or "1111-111X"</span>
74
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Issn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
75 75
            <input formControlName="issn" class="md-input" type="text"
76 76
                   (focus)="updateGroup.get('issn').markAsUntouched()" (blur)="updateGroup.get('issn').updateValueAndValidity()">
77 77
          </form-inline>
......
85 85
          <form-inline [description]="eissnDesc" [valid]="updateGroup.get('eissn').valid">
86 86
            <span *ngIf="updateGroup.get('eissn').invalid && updateGroup.get('eissn').touched && updateGroup.get('eissn').dirty"
87 87
                  class="help-block inline uk-text-danger"
88
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Eissn needs to be of the form: "1111-1111" or "1111-111X"</span>
88
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Eissn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
89 89
            <input formControlName="eissn" class="md-input" type="text"
90 90
                   (focus)="updateGroup.get('eissn').markAsUntouched()" (blur)="updateGroup.get('eissn').updateValueAndValidity()">
91 91
          </form-inline>
......
99 99
          <form-inline [description]="lissnDesc" [valid]="updateGroup.get('lissn').valid">
100 100
            <span *ngIf="updateGroup.get('lissn').invalid && updateGroup.get('lissn').touched && updateGroup.get('lissn').dirty"
101 101
                  class="help-block inline uk-text-danger"
102
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Lissn needs to be of the form: "1111-1111" or "1111-111X"</span>
102
                  style="margin-top: 0px; margin-bottom: 0px; padding-left: 10px;">Lissn needs to be of the form: "1111-1111" or "1111-111X" or "11111111" or "1111111X"</span>
103 103
            <input formControlName="lissn" class="md-input" type="text"
104 104
                   (focus)="updateGroup.get('lissn').markAsUntouched()" (blur)="updateGroup.get('lissn').updateValueAndValidity()">
105 105
          </form-inline>
......
222 222
        <form-inline [description]="datasourceTypeDesc" [valid]="updateGroup.get('datasourceType').valid">
223 223
          <select formControlName="datasourceType" class="md-input">
224 224
            <option value="">-- none selected --</option>
225
            <option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses[key] }}</option>
225
            <option *ngFor="let key of classCodes" value="{{key}}">{{ datasourceClasses.get(key) }}</option>
226 226
          </select>
227 227
        </form-inline>
228 228
      </div>
......
249 249
    <button class="uk-button uk-button-primary updateRepoInfoButton" type="button" (click)="updateRepo()">Update Information</button>
250 250
  </div>
251 251
</form>
252

  
252
<pre>{{updateGroup.value|json}}</pre>

Also available in: Unified diff