1
|
|
2
|
<form class="uk-form">
|
3
|
|
4
|
<fieldset data-uk-margin>
|
5
|
<legend>Filter By:</legend>
|
6
|
<input type="text" class="form-control" placeholder="Type keywords..." aria-describedby="sizing-addon2" [(ngModel)]="inputkeyword" (keyup)="changekeyword()" name="claims-keyword" >
|
7
|
<label> <input [(ngModel)]="projectCB" type="checkbox" (ngModelChange)="changeType()" name="project" /> Project </label>
|
8
|
<label> <input [(ngModel)]="publicationCB" type="checkbox" (ngModelChange)="changeType()" name="publication" /> Publication </label>
|
9
|
<label> <input [(ngModel)]="datasetCB" type="checkbox" (ngModelChange)="changeType()" name="dataset" /> Dataset </label>
|
10
|
<label> <input [(ngModel)]="contextCB" type="checkbox" (ngModelChange)="changeType()" name="context" /> Context </label>
|
11
|
</fieldset>
|
12
|
|
13
|
</form>
|
14
|
|
15
|
<h4 *ngIf="resultsNum>0" >Showing {{(size*page - size +1)}} to {{(size*page>resultsNum)?resultsNum:(size*page)}} of {{resultsNum}} claims</h4>
|
16
|
<div *ngIf="resultsNum>size*page " class="text-right">
|
17
|
<span class="dropdown">
|
18
|
Show <button class="uk-button dropdown-toggle" type="button" id="pagingDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
19
|
{{size}}
|
20
|
</button>
|
21
|
<ul class="dropdown-menu" aria-labelledby="pagingDropdown">
|
22
|
<li *ngIf="resultsNum > 10" ><a (click)="changeSize(10) " >10 </a></li>
|
23
|
<li *ngIf="resultsNum > 20" ><a (click)="changeSize(20)" >20 </a></li>
|
24
|
<li *ngIf="resultsNum > 30" ><a (click)="changeSize(30)" >30 </a></li>
|
25
|
<li *ngIf="resultsNum > 50" ><a (click)="changeSize(40)" >50 </a></li>
|
26
|
</ul>
|
27
|
</span>
|
28
|
</div>
|
29
|
<div *ngIf="showErrorMessage " class = "alert alert-danger " >
|
30
|
An Error occured.
|
31
|
</div>
|
32
|
|
33
|
<div class="text-right" *ngIf="resultsNum">
|
34
|
<!--<paging [currentPage]="page" [totalResults]="resultsNum" [navigateTo]="navigateTo" [size]="size" [params]="getParameters()" > </paging>-->
|
35
|
<paging-no-load [currentPage]="page" [totalResults]="resultsNum" [navigateTo]="navigateTo" [params]="getParameters()" [size]="size" (pageChange)="pageChange($event)"> </paging-no-load>
|
36
|
</div>
|
37
|
|
38
|
<!-- Buttons for selecting and Delete Claims -->
|
39
|
<div *ngIf="enableDelete">
|
40
|
<div *ngIf="selected.length>0 && resultsNum > 0 ">
|
41
|
<div class = "alert alert-info " >
|
42
|
You have selected {{selected.length}} claim(s)
|
43
|
</div>
|
44
|
</div>
|
45
|
<div *ngIf="deleteMessage.length>0 " [innerHTML]="deleteMessage">
|
46
|
|
47
|
</div>
|
48
|
<button class="uk-button" (click)="selectAll()">Select All</button> <button class="uk-button" (click)="deselectAll()">Deselect All</button> <button class="uk-button" (click)="confirmOpen()">Delete</button>
|
49
|
</div>
|
50
|
<br>
|
51
|
<!--div class="input-group col-lg-6">
|
52
|
<span class="input-group-addon" id="sizing-addon2">Filter</span>
|
53
|
<input type="text" class="form-control" placeholder="Type keywords..." aria-describedby="sizing-addon2" [(ngModel)]="inputkeyword" (keyup)="changekeyword()" >
|
54
|
</div-->
|
55
|
|
56
|
<div *ngIf=" claims && claims.length == 0" >
|
57
|
<div class = "alert alert-info " >No entries found.</div>
|
58
|
</div>
|
59
|
|
60
|
<div class="">
|
61
|
<table *ngIf="claims && claims.length > 0" class="uk-table uk-table-striped">
|
62
|
<thead>
|
63
|
<tr>
|
64
|
<th *ngIf="enableDelete"></th>
|
65
|
<!--<th>Id</th>
|
66
|
<!-- <th>Target Type</th> -->
|
67
|
<th><a (click)="changeOrderby('target')" >Research Result</a> </th>
|
68
|
<!--<th>Source type</th> -->
|
69
|
<th><a (click)="changeOrderby('source')" >Link to</a> </th>
|
70
|
|
71
|
<th><a (click)="changeOrderby('user')" >Claimed by</a> </th>
|
72
|
<th><a (click)="changeOrderby('date')"> Claimed Date</a></th>
|
73
|
</tr>
|
74
|
</thead>
|
75
|
<tbody>
|
76
|
<tr *ngFor="let claim of claims " >
|
77
|
<td *ngIf="enableDelete"><input [id]="claim.id" type="checkbox" (click)="select(claim,$event)" [ngModel]="isSelected(claim.id)"/></td>
|
78
|
|
79
|
<td><claim-entity [entity]="claim.target" [type]="claim.targetType" > </claim-entity></td>
|
80
|
<td><claim-entity [entity]="claim.source" [type]="claim.sourceType" > </claim-entity></td>
|
81
|
<td>{{claim.userMail}}</td>
|
82
|
<td>{{claim.date}}</td>
|
83
|
</tr>
|
84
|
</tbody>
|
85
|
</table>
|
86
|
|
87
|
<modal-alert (alertOutput)="confirmClose($event)">
|
88
|
</modal-alert>
|
89
|
<modal-loading [message]= "'Please wait...'"></modal-loading>
|