1
|
<organization-info info="info"></organization-info>
|
2
|
|
3
|
<div class="row">
|
4
|
<div class="col-xl-10">
|
5
|
<div class="card">
|
6
|
<div class="card-header">
|
7
|
<org-tabs-menu selected='3' org-id="{{orgId}}" info="info"></org-tabs-menu>
|
8
|
</div>
|
9
|
|
10
|
<div class="card-body text-muted" ng-if="enrichments.length == 0">
|
11
|
No enrichments
|
12
|
</div>
|
13
|
|
14
|
<table class="table table-sm mt-2" ng-if="enrichments.length > 0">
|
15
|
<thead>
|
16
|
<tr>
|
17
|
<th class="pl-3" style="border-top: none;">Related organization</th>
|
18
|
<th class="text-center" style="border-top: none;">Acronym</th>
|
19
|
<th class="text-center" style="border-top: none;">Country</th>
|
20
|
<th style="border-top: none;">Source</th>
|
21
|
<th style="border-top: none;"></th>
|
22
|
</tr>
|
23
|
</thead>
|
24
|
<tbody>
|
25
|
<tr ng-repeat="sr in enrichments">
|
26
|
<td class="pl-3">
|
27
|
{{sr.oaName}}
|
28
|
<span class="small" ng-if="sr.oaUrl" ><br /><b>URL: </b><a href="{{sr.oaUrl}}" target="_blank">{{sr.oaUrl}}</a></span>
|
29
|
</td>
|
30
|
<td class="text-center small">{{sr.oaAcronym}}</td>
|
31
|
<td class="text-center small"><img ng-src="resources/images/flags/{{sr.oaCountry}}.gif" /> {{sr.oaCountry}}</td>
|
32
|
<td class="small">
|
33
|
<b>Collected from:</b> {{sr.oaCollectedFrom}}<br />
|
34
|
<b>Original Id:</b> <span class="text-monospace">{{sr.oaOriginalId}}</span>
|
35
|
</td>
|
36
|
<td class="text-right">
|
37
|
<div class="btn-group btn-group-toggle btn-group-sm" data-toggle="buttons">
|
38
|
<label class="btn" ng-class="{'btn-danger' : sr.relType == 'is_different', 'btn-outline-danger' : sr.relType != 'is_different'}">
|
39
|
<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>
|
40
|
</label>
|
41
|
<label class="btn" ng-class="{'btn-info' : sr.relType == 'suggested', 'btn-outline-info' : sr.relType != 'suggested'}">
|
42
|
<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>
|
43
|
</label>
|
44
|
<label class="btn" ng-class="{'btn-success' : sr.relType == 'is_similar', 'btn-outline-success' : sr.relType != 'is_similar'}">
|
45
|
<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>
|
46
|
</label>
|
47
|
</div>
|
48
|
</td>
|
49
|
</tr>
|
50
|
</tbody>
|
51
|
</table>
|
52
|
<div class="card-footer" ng-if="enrichments > 0">
|
53
|
<button class="btn btn-sm btn-primary" ng-click="saveEnrichments()">save</button>
|
54
|
</div>
|
55
|
</div>
|
56
|
</div>
|
57
|
</div>
|
58
|
{{xxx}}
|