Project

General

Profile

1
  <div class="uk-child-width-expand@s uk-text-center uk-margin-bottom" uk-grid>
2
    <div>
3
      <form class="uk-text-center uk-animation uk-card uk-card-default uk-padding">
4
        <div>
5
          <input type="text" class="uk-input  uk-width-1-2" placeholder="Search community content providers..." aria-describedby="sizing-addon2"  [(ngModel)]="communitySearchUtils.keyword"  name="keyword" >
6
          <button (click)="goTo(1)"  type="submit" class=" uk-button">
7
             <span class="uk-icon">
8
             <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
9
             </span>Search
10
           </button>
11
        </div>
12
      </form>
13
    </div>
14
  </div>
15
  <div class="uk-alert uk-alert-primary uk-margin-top-large">
16
      <div><span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
17
        This functionality is not yet fully integrated, stay tuned!
18
      </div>
19
      
20
  </div>
21
  <errorMessages [status]="[communitySearchUtils.status]" [type]="'community Content Providers'"></errorMessages>
22

    
23
  <div *ngIf="communitySearchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom">
24
    <div class="searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom">
25
      <span class="uk-h6 uk-width-1-1@s uk-width-1-2@m">
26
        {{communitySearchUtils.totalResults | number}} content providers, page {{communitySearchUtils.page | number}} of {{(totalPages()) | number}}
27
      </span>
28
      <span class="float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m">
29
        <paging-no-load [currentPage]="communitySearchUtils.page" [totalResults]="communitySearchUtils.totalResults" [size]="10" (pageChange)="goTo($event.value, false)"></paging-no-load>
30
      </span>
31
    </div>
32
  </div>
33

    
34
<!-- uk-first-column uk-width-expand -->
35
  <div class="custom-dataTable-content">
36
    <div class="uk-overflow-container">
37
      <table datatable class="uk-table uk-table-striped divider-table" [dtOptions]="dtOptions" id="dpTable"  [dtTrigger]="dtTrigger" dtInstance="dtInstanceCallback">
38
        <thead>
39
          <tr>
40
            <th class="uk-text-center">Name</th>
41
            <th class="uk-text-center">Official Name</th>
42
            <th class="uk-text-center">Action</th>
43
          </tr>
44
        </thead>
45
        <tbody>
46
          <tr class="uk-table-middle" *ngFor="let result of communityContentProviders">
47
            <td class="uk-text-center uk-width-1-3">
48
              <a class="custom-external" target="_blank"
49
                 [href]="communityUrl+'/search/dataprovider?datasourceId=' +result.openaireId">
50
                <span *ngIf="result.name">{{result.name}}</span>
51
                <span *ngIf="!result.name">[no name available]</span>
52
              </a>
53
            </td>
54
            <td class="uk-text-center uk-width-1-3">
55
              <span *ngIf="result.officialname">{{result.officialname}}</span>
56
              <span *ngIf="!result.officialname">-</span>
57
            </td>
58

    
59
            <td class="uk-text-center uk-width-1-3">
60
              <a (click)="removeContentProvider(result)" class="uk-icon-button remove red_background_color red_color" uk-icon="icon: close; ratio: 1" title="Remove"></a>
61
            </td>
62
          </tr>
63
        </tbody>
64
      </table>
65
    </div>
66
  </div>
67

    
68
  <div *ngIf="communitySearchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom">
69
    <div class="searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom">
70
      <span class="uk-h6 uk-width-1-1@s uk-width-1-2@m">
71
        {{communitySearchUtils.totalResults | number}} content providers, page {{communitySearchUtils.page | number}} of {{(totalPages()) | number}}
72
      </span>
73
      <span class="float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m">
74
        <paging-no-load [currentPage]="communitySearchUtils.page" [totalResults]="communitySearchUtils.totalResults" [size]="10" (pageChange)="goTo($event.value, false)"></paging-no-load>
75
      </span>
76
    </div>
77
  </div>
78

    
79
  <modal-alert #AlertModalDeleteCommunity (alertOutput)="confirmedDeleteContentProvider($event)"></modal-alert>
(5-5/6)