Revision 57894
Added by Michele Artini over 4 years ago
all_duplicates.html | ||
---|---|---|
5 | 5 |
<table class="table table-sm table-hover"> |
6 | 6 |
<thead class="thead-light"> |
7 | 7 |
<tr class="d-flex"> |
8 |
<th class="col-8">Organization</th> |
|
9 |
<th class="col-2 text-center">Country</th> |
|
10 |
<th class="col-2 text-right"># duplicates</th> |
|
8 |
<th class="col-7">Organization</th> |
|
9 |
<th class="col-3">Place</th> |
|
10 |
<th class="col-1 text-right"># duplicates</th> |
|
11 |
<th class="col-1"></th> |
|
11 | 12 |
</tr> |
12 | 13 |
</thead> |
13 | 14 |
<tbody> |
14 | 15 |
<tr ng-repeat="d in duplicates | filter:duplicateFilter" class="d-flex"> |
15 |
<td class="col-8"><a href="#!/edit/0/{{d.id}}" title="{{d.id}}">{{d.name}}</a></td> |
|
16 |
<td class="col-2 text-center"><img ng-src="resources/images/flags/{{d.country}}.gif" /> {{d.country}}</td> |
|
17 |
<td class="col-2 text-right">{{d.numberOfDuplicates}}</td> |
|
16 |
<td class="col-7"><a href="#!/edit/0/{{d.id}}" title="{{d.id}}">{{d.name}}</a></td> |
|
17 |
<td class="col-3"><img ng-src="resources/images/flags/{{d.country}}.gif" /> {{d.city}}, {{d.country}}</td> |
|
18 |
<td class="col-1 text-right">{{d.numberOfDuplicates}}</td> |
|
19 |
<td class="col-1 text-right"><button class="btn btn-sm btn-primary" ng-click="prepareDuplicatesModal(d)" data-toggle="modal" data-target="#duplicatesModal">evaluate</button></td> |
|
18 | 20 |
</tr> |
19 | 21 |
</tbody> |
20 | 22 |
</table> |
21 | 23 |
</div> |
24 |
|
|
25 |
<div class="modal fade" id="duplicatesModal" tabindex="-1" role="dialog"> |
|
26 |
<div class="modal-dialog modal-xl" role="document"> |
|
27 |
<div class="modal-content"> |
|
28 |
<div class="modal-header"> |
|
29 |
<h5 class="modal-title">{{currentOrg.name}}</h5> |
|
30 |
<button type="button" class="close" data-dismiss="modal">×</button> |
|
31 |
</div> |
|
32 |
|
|
33 |
<div class="modal-body" ng-if="currentDuplicates.length == 0"> |
|
34 |
No duplicates |
|
35 |
</div> |
|
36 |
|
|
37 |
<table class="table table-sm mt-2" ng-if="currentDuplicates.length > 0"> |
|
38 |
<thead> |
|
39 |
<tr class="d-flex"> |
|
40 |
<th class="col-4 pl-3" style="border-top: none;">Related organization</th> |
|
41 |
<th class="col-1 text-center" style="border-top: none;">Acronym</th> |
|
42 |
<th class="col-2 text-center" style="border-top: none;">Country</th> |
|
43 |
<th class="col-3" style="border-top: none;">Source</th> |
|
44 |
<th class="col-2" style="border-top: none;"></th> |
|
45 |
</tr> |
|
46 |
</thead> |
|
47 |
<tbody> |
|
48 |
<tr class="d-flex" ng-repeat="sr in currentDuplicates"> |
|
49 |
<td class="col-4 pl-3"> |
|
50 |
{{sr.oaName}} |
|
51 |
<span class="small" ng-if="sr.oaUrl" ><br /><b>URL: </b><a href="{{sr.oaUrl}}" target="_blank">{{sr.oaUrl}}</a></span> |
|
52 |
</td> |
|
53 |
<td class="col-1 text-center small">{{sr.oaAcronym}}</td> |
|
54 |
<td class="col-2 text-center small"><img ng-src="resources/images/flags/{{sr.oaCountry}}.gif" /> {{sr.oaCountry}}</td> |
|
55 |
<td class="col-3 small"> |
|
56 |
<b>Collected from:</b> {{sr.oaCollectedFrom}}<br /> |
|
57 |
<b>Original Id:</b> <span class="text-monospace">{{sr.oaOriginalId}}</span> |
|
58 |
</td> |
|
59 |
<td class="col-2 text-right"> |
|
60 |
<div class="btn-group btn-group-toggle btn-group-sm" data-toggle="buttons"> |
|
61 |
<label class="btn" ng-class="{'btn-danger' : sr.relType == 'is_different', 'btn-outline-danger' : sr.relType != 'is_different'}"> |
|
62 |
<input type="radio" autocomplete="off" ng-model="sr.relType" value="is_different" ng-class="{'active' : sr.relType == 'is_different'}"><i class="fas fa-times fa-fw"></i> |
|
63 |
</label> |
|
64 |
<label class="btn" ng-class="{'btn-info' : sr.relType == 'suggested', 'btn-outline-info' : sr.relType != 'suggested'}"> |
|
65 |
<input type="radio" autocomplete="off" ng-model="sr.relType" value="suggested" ng-class="{'active' : sr.relType == 'suggested'}"><i class="fas fa-question fa-fw"></i> |
|
66 |
</label> |
|
67 |
<label class="btn" ng-class="{'btn-success' : sr.relType == 'is_similar', 'btn-outline-success' : sr.relType != 'is_similar'}"> |
|
68 |
<input type="radio" autocomplete="off" ng-model="sr.relType" value="is_similar" ng-class="{'active' : sr.relType == 'is_similar'}"/><i class="fas fa-check fa-fw"></i> |
|
69 |
</label> |
|
70 |
</div> |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
</tbody> |
|
74 |
</table> |
|
75 |
<div class="modal-footer"> |
|
76 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> |
|
77 |
<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="saveCurrentDuplicates()" ng-if="currentDuplicates.length > 0">Save changes</button> |
|
78 |
</div> |
|
79 |
</div> |
|
80 |
</div> |
|
81 |
</div> |
Also available in: Unified diff