1
|
|
2
|
<div class="uk-width-1-1">
|
3
|
<helper position="top"></helper>
|
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">
|
8
|
<form class="">
|
9
|
|
10
|
|
11
|
<div class="-row">
|
12
|
<span class="uk-text-bold">Filter By:</span>
|
13
|
<input type="text" class=" uk-input form-control" placeholder="Search for keywords in titles ..." aria-describedby="sizing-addon2" [(ngModel)]="inputkeyword" (keyup)="changekeyword()" name="claims-keyword" ></div>
|
14
|
<div class="uk-margin-small-top">
|
15
|
<label> <input [(ngModel)]="projectCB" type="checkbox" (ngModelChange)="changeType()" name="project" />
|
16
|
<span class="uk-margin-small-right uk-icon" ><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="5" y="2" width="10" height="1"></rect><rect x="3" y="4" width="14" height="1"></rect><rect fill="none" stroke="#000" x="1.5" y="6.5" width="17" height="11"></rect></svg></span>
|
17
|
Project </label>
|
18
|
<label> <input [(ngModel)]="publicationCB" type="checkbox" (ngModelChange)="changeType()" name="publication" />
|
19
|
<span class="uk-margin-small-right uk-icon" ><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect fill="none" stroke="#000" x="3.5" y="2.5" width="12" height="16"></rect><polyline fill="none" stroke="#000" points="5 0.5 17.5 0.5 17.5 17"></polyline></svg></span>
|
20
|
Publication </label>
|
21
|
<label> <input [(ngModel)]="datasetCB" type="checkbox" (ngModelChange)="changeType()" name="dataset" />
|
22
|
<span class="uk-margin-small-right uk-icon" ><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><ellipse fill="none" stroke="#000" cx="10" cy="4.64" rx="7.5" ry="3.14"></ellipse><path fill="none" stroke="#000" d="M17.5,8.11 C17.5,9.85 14.14,11.25 10,11.25 C5.86,11.25 2.5,9.84 2.5,8.11"></path><path fill="none" stroke="#000" d="M17.5,11.25 C17.5,12.99 14.14,14.39 10,14.39 C5.86,14.39 2.5,12.98 2.5,11.25"></path><path fill="none" stroke="#000" d="M17.49,4.64 L17.5,14.36 C17.5,16.1 14.14,17.5 10,17.5 C5.86,17.5 2.5,16.09 2.5,14.36 L2.5,4.64"></path></svg></span>
|
23
|
Research Data </label>
|
24
|
<label> <input [(ngModel)]="contextCB" type="checkbox" (ngModelChange)="changeType()" name="context" />
|
25
|
<span class="uk-margin-small-right uk-icon" ><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="7.7" cy="8.6" r="3.5"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path><path fill="none" stroke="#000" stroke-width="1.1" d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg></span>
|
26
|
Context </label>
|
27
|
</div>
|
28
|
|
29
|
</form>
|
30
|
<div class="searchPaging uk-panel uk-margin-top" data-uk-grid-margin="">
|
31
|
|
32
|
<div *ngIf="resultsNum" class="uk-float-right">
|
33
|
<paging-no-load [currentPage]="page" [totalResults]="resultsNum" [size]="size" (pageChange)="pageChange($event)"> </paging-no-load>
|
34
|
</div>
|
35
|
|
36
|
<div *ngIf="resultsNum>0" class="uk-width-1-2">
|
37
|
<span > Show
|
38
|
<select *ngIf="resultsNum>10" class="uk-width-1-2 uk-select" [(ngModel)]="size" name="select_size" (ngModelChange)="changeSize(size)" >
|
39
|
<option *ngFor="let size of sizes" [value]="size">{{size}}</option>
|
40
|
</select>
|
41
|
</span>
|
42
|
<span >Showing {{(size*page - size +1)}} to {{(size*page>resultsNum)?resultsNum:(size*page)}} of {{resultsNum}} claims </span>
|
43
|
|
44
|
</div>
|
45
|
</div>
|
46
|
|
47
|
|
48
|
<div *ngIf="showErrorMessage " class = "uk-alert uk-alert-danger " >
|
49
|
An Error occured.
|
50
|
</div>
|
51
|
<div *ngIf="showForbiddenMessage " class = "uk-alert uk-alert-danger " >
|
52
|
You are not allowed to access this page.
|
53
|
</div>
|
54
|
<div *ngIf="userValidMessage.length > 0 " class = "uk-alert uk-alert-danger " >
|
55
|
User session is not valid. Please login again.
|
56
|
</div>
|
57
|
|
58
|
|
59
|
<!-- Buttons for selecting and Delete Claims -->
|
60
|
<div *ngIf="enableDelete">
|
61
|
<div *ngIf="selected.length>0 && resultsNum > 0 ">
|
62
|
<div class = "uk-alert uk-alert-primary " >
|
63
|
You have selected {{selected.length}} claim(s)
|
64
|
</div>
|
65
|
</div>
|
66
|
<div *ngIf="deleteMessage.length>0 " [innerHTML]="deleteMessage">
|
67
|
|
68
|
</div>
|
69
|
<button 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>
|
70
|
</div>
|
71
|
<br>
|
72
|
|
73
|
|
74
|
<div *ngIf=" claims && claims.length == 0" >
|
75
|
<div class = "uk-alert uk-alert-primary " >No entries found.</div>
|
76
|
</div>
|
77
|
|
78
|
<div class="">
|
79
|
<table *ngIf="claims && claims.length > 0" class="uk-table uk-table-striped">
|
80
|
<thead>
|
81
|
<tr>
|
82
|
<th *ngIf="enableDelete"><input id="checkAll" type="checkbox" (click)="selectAll($event)" [ngModel]="selected.length==claims.length" /></th>
|
83
|
<!--<th>Id</th>
|
84
|
<!-- <th>Target Type</th> -->
|
85
|
<th><a (click)="changeOrderby('target')" >Research Result</a> </th>
|
86
|
<!--<th>Source type</th> -->
|
87
|
<th><a (click)="changeOrderby('source')" >Link to</a> </th>
|
88
|
|
89
|
<th *ngIf="showUserEmail"><a (click)="changeOrderby('user')" >Claimed by</a> </th>
|
90
|
<th><a (click)="changeOrderby('date')"> Claimed Date</a></th>
|
91
|
</tr>
|
92
|
</thead>
|
93
|
<tbody>
|
94
|
<tr *ngFor="let claim of claims " >
|
95
|
<td *ngIf="enableDelete"><input [id]="claim.id" type="checkbox" (click)="select(claim,$event)" [ngModel]="isSelected(claim.id)"/></td>
|
96
|
|
97
|
<td><claim-entity [entity]="claim.target" [type]="claim.targetType" > </claim-entity></td>
|
98
|
<td><claim-entity [entity]="claim.source" [type]="claim.sourceType" > </claim-entity></td>
|
99
|
<td *ngIf="showUserEmail">{{claim.userMail}}</td>
|
100
|
<td>{{claim.date}}</td>
|
101
|
</tr>
|
102
|
</tbody>
|
103
|
</table>
|
104
|
</div>
|
105
|
<helper position="right" styleName=" uk-width-1-5"></helper>
|
106
|
</div>
|
107
|
<helper position="bottom"></helper>
|
108
|
<modal-alert (alertOutput)="confirmClose($event)">
|
109
|
</modal-alert>
|
110
|
<modal-loading [message]= "'Please wait...'"></modal-loading>
|