Project

General

Profile

1
<schema2jsonld *ngIf="url" [URL]="url" [name]="title" type="other"></schema2jsonld>
2
<div class="uk-width-1-1">
3

    
4
</div>
5
<div class="uk-grid  helper-grid">
6
<!--  <helper position="left" styleName=" uk-width-1-5 uk-padding-left"></helper>-->
7
  <div class="uk-width-expand uk-margin-top">
8
    <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
9
            [texts]="pageContents['top']"></helper>
10
    <form class="">
11

    
12
      <div class=" ">
13
        <span class="uk-text-muted">Filter by</span>
14

    
15
      </div>
16
      <div class="uk-margin-small-top ">
17
        <label class="uk-margin-small-right"> <input [(ngModel)]="projectCB" type="checkbox"
18
                                                     (ngModelChange)="changeType()" name="project"/>
19

    
20
          Projects </label>
21
        <label class="uk-margin-small-right"> <input [(ngModel)]="publicationCB" type="checkbox"
22
                                                     (ngModelChange)="changeType()" name="publication"/>
23
          Publications </label>
24
        <label class="uk-margin-small-right"> <input [(ngModel)]="datasetCB" type="checkbox"
25
                                                     (ngModelChange)="changeType()" name="dataset"/>
26
          Research Data </label>
27
        <label class="uk-margin-small-right"> <input [(ngModel)]="softwareCB" type="checkbox"
28
                                                     (ngModelChange)="changeType()" name="software"/>
29
          Software
30
        </label>
31
        <label class="uk-margin-small-right"> <input [(ngModel)]="otherCB" type="checkbox"
32
                                                     (ngModelChange)="changeType()" name="other"/>
33
          Other products
34
        </label>
35
        <label class="uk-margin-small-right"> <input [(ngModel)]="contextCB" type="checkbox"
36
                                                     (ngModelChange)="changeType()" name="context"/>
37
          Communities </label>
38

    
39
        <div class="uk-inline">
40
          <span class="uk-form-icon uk-icon"><svg width="20" height="20" viewBox="0 0 20 20"
41
                                                  xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle
42
            fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000"
43
                                                                                            stroke-width="1.1"
44
                                                                                            d="M14,14 L18,18 L14,14 Z"></path></svg>
45
          </span>
46
          <input type="text" class=" uk-input uk-width-medium form-control" placeholder="Search links"
47
                 aria-describedby="sizing-addon2" [(ngModel)]="inputkeyword" (keyup)="changekeyword()"
48
                 name="claims-keyword">
49
          <span *ngIf="inputkeyword.length > 0" class="uk-margin-small-right uk-icon" style="cursor: pointer;"
50
                (click)="inputkeyword=''; changekeyword();">
51
                    <svg width="20" height="20" viewBox="0 0 20 20"
52
                         xmlns="http://www.w3.org/2000/svg" data-svg="close"><path fill="none" stroke="#000"
53
                                                                                   stroke-width="1.06"
54
                                                                                   d="M16,16 L4,4"></path><path
55
                      fill="none"
56
                      stroke="#000"
57
                      stroke-width="1.06"
58
                      d="M16,4 L4,16"></path></svg>
59
                </span>
60
        </div>
61
      </div>
62

    
63
    </form>
64
    <div *ngIf="resultsNum>0 && selected.length == 0"
65
         class="searchPaging uk-panel uk-margin-top portal-hr uk-margin-small-bottom"
66
         data-uk-grid-margin="">
67
      <div class="uk-width-1-2 uk-margin-top uk-margin-bottom">
68
        <span> Results per page
69
          <select *ngIf="resultsNum>10" class="uk-width-1-5 uk-select" [(ngModel)]="size" name="select_size"
70
                  (ngModelChange)="changeSize()">
71
            <option *ngFor="let size of sizes" [value]="size">{{size}}</option>
72
          </select>
73
        </span>
74
      </div>
75
      <div class="uk-grid">
76
        <div *ngIf="resultsNum>0" class="uk-width-1-2">
77
          <span class="portal-color">{{resultsNum|number}}</span> links, page <span
78
          class="portal-color">{{page | number}}</span> of <span
79
          class="portal-color">{{totalPages(resultsNum)|number}}</span>
80

    
81
        </div>
82
        <div *ngIf="resultsNum" class="uk-width-1-2 ">
83
          <paging-no-load [currentPage]="page" [totalResults]="resultsNum" [size]="size"
84
                          (pageChange)="pageChange($event)" class="uk-float-right"></paging-no-load>
85
        </div>
86
      </div>
87
    </div>
88
    <!--  Buttons for selecting and Delete Claims -->
89

    
90
    <div *ngIf="enableDelete && selected.length>0 && resultsNum > 0 "
91
         class="uk-margin-top portal-hr uk-margin-small-bottom uk-grid uk-margin-small-left">
92
      <div class=" uk-width-1-2 uk-padding-remove-left">
93
        {{selected.length | number}} link{{(selected.length > 1) ? 's' : ''}} selected
94
      </div>
95
      <div class=" uk-width-1-2">
96
        <a [class]=" 'uk-text-danger uk-float-right '+(selected.length > 0?'':'uk-disabled')" (click)="confirmOpen()">
97
              <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
98
                                         icon="trash" ratio="1"><polyline fill="none" stroke="#000"
99
                                                                          points="6.5 3 6.5 1.5 13.5 1.5 13.5 3"></polyline><polyline
100
                fill="none" stroke="#000" points="4.5 4 4.5 18.5 15.5 18.5 15.5 4"></polyline><rect x="8" y="7"
101
                                                                                                    width="1"
102
                                                                                                    height="9"></rect><rect
103
                x="11" y="7" width="1" height="9"></rect><rect x="2" y="3" width="16" height="1"></rect></svg></span>
104
          delete links
105
        </a>
106
      </div>
107
    </div>
108

    
109
    <div *ngIf="deleteMessage.length>0 " [innerHTML]="deleteMessage">
110

    
111

    
112
      <!--button *ngIf="claims && claims.length > 0" class=" uk-button uk-button-default"  (click)="confirmOpen()"> <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="trash" ratio="1"><polyline fill="none" stroke="#000" points="6.5 3 6.5 1.5 13.5 1.5 13.5 3"></polyline><polyline fill="none" stroke="#000" points="4.5 4 4.5 18.5 15.5 18.5 15.5 4"></polyline><rect x="8" y="7" width="1" height="9"></rect><rect x="11" y="7" width="1" height="9"></rect><rect x="2" y="3" width="16" height="1"></rect></svg></span> Delete</button-->
113
    </div>
114

    
115

    
116
    <div *ngIf="showErrorMessage " class="uk-alert uk-alert-danger ">
117
      An Error occured.
118
    </div>
119
    <div *ngIf="showForbiddenMessage " class="uk-alert uk-alert-danger ">
120
      You are not allowed to access this page.
121
    </div>
122
    <div *ngIf="userValidMessage.length > 0 " class="uk-alert uk-alert-danger ">
123
      User session is not valid. Please login again.
124
    </div>
125

    
126

    
127
    <div *ngIf=" claims && claims.length == 0">
128
      <div class="uk-alert uk-alert-primary ">No entries found.</div>
129
    </div>
130

    
131
    <div class="">
132
      <table *ngIf="claims && claims.length > 0" class="uk-table uk-table-small uk-table-striped dataTable">
133
        <thead class="uk-text-capitalize">
134
        <tr>
135
          <th *ngIf="enableDelete" class="uk-padding-remove-right" title="Select all">
136
            <input id="checkAll" type="checkbox" (click)="selectAll($event)"
137
                   [ngModel]="selected.length==claims.length"/>
138
          </th>
139
          <th [class]="'uk-width-1-3 '+(sortby != 'target'?'sorting':(descending?'sorting_desc':'sorting_asc'))"
140
              (click)="changeOrderby('target')"> Source
141
          </th>
142

    
143
          <th [class]="'uk-width-1-3 '+(sortby != 'source'?'sorting':(descending?'sorting_desc':'sorting_asc'))"
144
              (click)="changeOrderby('source')">
145
            Link to
146
          </th>
147
          <th *ngIf=" showUserEmail
148
          " [class]="sortby != 'user'?'sorting':(descending?'sorting_desc':'sorting_asc')"
149
              (click)="changeOrderby('user')">
150
            Claimed by
151
          </th>
152
          <th [class]="sortby != 'date'?'sorting':(descending?'sorting_desc':'sorting_asc')"
153
              (click)="changeOrderby('date')">
154
            Claim Date
155
          </th>
156
          <th >Status
157
             <span class="uk-icon"
158
                  [attr.uk-tooltip]="'title:<div class=\'uk-margin uk-padding-small\'>Status declares if the link information is available in the portal and the APIs<br> If it is pending, the information will be added in the next content provision workflow.</div>'" >
159
              <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="info" ratio="1"><path d="M12.13,11.59 C11.97,12.84 10.35,14.12 9.1,14.16 C6.17,14.2 9.89,9.46 8.74,8.37 C9.3,8.16 10.62,7.83 10.62,8.81 C10.62,9.63 10.12,10.55 9.88,11.32 C8.66,15.16 12.13,11.15 12.14,11.18 C12.16,11.21 12.16,11.35 12.13,11.59 C12.08,11.95 12.16,11.35 12.13,11.59 L12.13,11.59 Z M11.56,5.67 C11.56,6.67 9.36,7.15 9.36,6.03 C9.36,5 11.56,4.54 11.56,5.67 L11.56,5.67 Z"></path><circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle></svg>
160
            </span>
161
          </th>
162
        </tr>
163
        </thead>
164
        <tbody>
165
        <tr *ngFor="let claim of claims ">
166
          <td *ngIf="enableDelete"><input [id]="claim.id" type="checkbox" (click)="select(claim,$event)"
167
                                          [ngModel]="isSelected(claim.id)"/></td>
168
          <!--          <td></td>-->
169
          <td>
170
            <claim-entity [entity]="claim.target" [type]="claim.targetType" [properties]=properties
171
                          [externalPortalUrl]=externalPortalUrl></claim-entity>
172
          </td>
173
          <td>
174
            <claim-entity [entity]="claim.source" [type]="claim.sourceType" [properties]=properties
175
                          [externalPortalUrl]=externalPortalUrl></claim-entity>
176
          </td>
177
          <td *ngIf="showUserEmail">{{claim.userMail}}</td>
178
          <td>{{claim.date}}</td>
179
          <td>
180

    
181
            <span *ngIf="isClaimAvailable(claim) else notAvailable" class="uk-label uk-label-success">available</span>
182
            <ng-template #notAvailable> <span  class="uk-label uk-label-warning">pending</span></ng-template>
183

    
184
<!--              <span class="uk-icon"-->
185
<!--                    [attr.uk-tooltip]="'title:<div class=\'uk-margin-small\'>'+isClaimAvailable(claim)+'</div>'">-->
186
<!--                <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question"-->
187
<!--                     ratio="1">-->
188
<!--                  <circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle><circle cx="10.44"-->
189
<!--                                                                                                              cy="14.42"-->
190
<!--                                                                                                              r="1.05"></circle><path-->
191
<!--                  fill="none" stroke="#000" stroke-width="1.2"-->
192
<!--                  d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path></svg>-->
193
<!--              </span>-->
194
          </td>
195
        </tr>
196
        </tbody>
197
      </table>
198
    </div>
199
    <div class="portal-hr uk-grid">
200
      <div *ngIf="resultsNum>0" class="uk-width-1-2 uk-padding-remove-left">
201
        <span class="portal-color">{{resultsNum|number}}</span> links, page <span
202
        class="portal-color">{{page | number}}</span> of <span
203
        class="portal-color">{{totalPages(resultsNum)|number}}</span>
204

    
205
      </div>
206
      <div *ngIf="resultsNum" class="uk-width-1-2 ">
207
        <paging-no-load [currentPage]="page" [totalResults]="resultsNum" [size]="size"
208
                        (pageChange)="pageChange($event)" class="uk-float-right"></paging-no-load>
209
      </div>
210
    </div>
211

    
212
  </div>
213
  <helper *ngIf="pageContents && pageContents['right'] && pageContents['right'].length > 0"
214
          [texts]="pageContents['right']" class="uk-width-1-5"></helper>
215
  <!-- <div class="uk-width-1-5">
216
     <div class="uk-card portal-card uk-padding" *ngIf="externalPortalUrl || claimsInfoURL">
217
       <h6 *ngIf="!externalPortalUrl || externalPortalUrl.indexOf('http')==-1" class="uk-h6">
218
         <a class="el-content uk-link-text" routerLink="/participate/claim">Claim more links?</a>
219
       </h6>
220
       <h6 *ngIf="externalPortalUrl && externalPortalUrl.indexOf('http')!=-1" class="uk-h6">
221
         <a class="el-content uk-link-text" [href]="externalPortalUrl+'/participate/claim'"
222
            target="_blank">Claim more links?</a>
223
       </h6>
224
       <h6 *ngIf="claimsInfoURL" class="uk-h6 uk-margin-small-top">
225
         <a class="el-content uk-link-text" [href]="claimsInfoURL" target="_blank">Learn more</a>
226
       </h6>
227
     </div>
228
     <helper position="right" styleName=" uk-width-1-5"></helper>
229
   </div>-->
230
</div>
231
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
232
        [texts]="pageContents['bottom']"></helper>
233
<modal-alert (alertOutput)="confirmClose()">
234
  <h4 class="modal-title uk-text-bold " id="myModalLabel">Are you sure?</h4>
235
  <p>
236
    You are about to delete {{this.selected.length}} link(s) you selected. <br>
237
  <span class="uk-text-bold">
238
    Usually it takes 2-4 weeks for the links to permanently disappear from the Openaire platfrom.
239
  </span>
240
  </p>
241

    
242
  <p>Do you want to delete the link(s)?</p>
243
</modal-alert>
244
<modal-loading [message]="'Please wait...'"></modal-loading>
(1-1/3)