1
|
<div id="manage-zenodo-communities" class="uk-padding uk-padding-remove-top">
|
2
|
<div *ngIf="masterCommunity" class="uk-animation-fade uk-alert uk-alert-primary uk-padding-small uk-margin-large-bottom">
|
3
|
<div class="uk-text-large uk-margin-bottom" >Master Zenodo community</div>
|
4
|
<div class="uk-comment-header uk-grid-medium uk-flex-middle" uk-grid>
|
5
|
|
6
|
<div class="uk-width-auto">
|
7
|
<a target="_blank" [href]="masterCommunity.link">
|
8
|
<img *ngIf="masterCommunity.logoUrl" class="uk-comment-avatar" src="{{masterCommunity.logoUrl}}" width="80" height="80" alt="">
|
9
|
</a>
|
10
|
</div>
|
11
|
<div class="uk-width-expand">
|
12
|
<h4 class="uk-comment-title uk-margin-remove">
|
13
|
<a *ngIf="masterCommunity.link" class="custom-external" target="_blank" href="{{masterCommunity.link}}">
|
14
|
<span *ngIf="masterCommunity.title">{{masterCommunity.title}}</span>
|
15
|
<span *ngIf="!masterCommunity.title">[no name available]</span>
|
16
|
</a>
|
17
|
<div *ngIf="!masterCommunity.link">
|
18
|
<span *ngIf="masterCommunity.title">{{masterCommunity.title}}</span>
|
19
|
<span *ngIf="!masterCommunity.title">[no name available]</span>
|
20
|
</div>
|
21
|
</h4>
|
22
|
<div *ngIf="masterCommunity.date" class="uk-comment-meta " >
|
23
|
last update: {{masterCommunity.date | date:'yyyy/MM/dd'}}
|
24
|
</div>
|
25
|
|
26
|
</div>
|
27
|
</div>
|
28
|
<div class="uk-comment-body uk-text-meta">
|
29
|
<p *ngIf="masterCommunity.description">{{masterCommunity.description}}</p>
|
30
|
</div>
|
31
|
</div>
|
32
|
<form class="uk-text-center uk-animation uk-card uk-card-default uk-padding">
|
33
|
<div>
|
34
|
<input type="text" class="uk-input uk-width-1-2" placeholder="Search zenodo communities" aria-describedby="sizing-addon2" [(ngModel)]="searchUtils.keyword" name="keyword" >
|
35
|
<button (click)="goTo(1)" type="submit" class=" uk-button">
|
36
|
<span class="uk-icon">
|
37
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>
|
38
|
</span>Search
|
39
|
</button>
|
40
|
</div>
|
41
|
</form>
|
42
|
<div *ngIf="searchUtils.status == errorCodes.DONE ||searchUtils.status == errorCodes.NONE " class="uk-alert uk-alert-primary">
|
43
|
<span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
|
44
|
All the research results belonging to the Zenodo communities specified here will be automatically linked to your community dashboard.
|
45
|
</div>
|
46
|
|
47
|
<div *ngIf="searchUtils.totalResults > 0" class="uk-align-center uk-margin-remove-bottom">
|
48
|
<div class="searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom">
|
49
|
<span class="uk-h6 uk-width-1-1@s uk-width-1-2@m">
|
50
|
{{searchUtils.totalResults | number}} zenodo communities, page {{searchUtils.page | number}} of {{(totalPages()) | number}}
|
51
|
</span>
|
52
|
<span class="float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m">
|
53
|
<paging-no-load [currentPage]="searchUtils.page" [totalResults]="searchUtils.totalResults" [size]="10" (pageChange)="goTo($event.value, false)"></paging-no-load>
|
54
|
</span>
|
55
|
</div>
|
56
|
</div>
|
57
|
|
58
|
<div class="custom-dataTable-content">
|
59
|
<div class="uk-overflow-container">
|
60
|
<table datatable class="uk-table uk-table-striped divider-table" [dtOptions]="dtOptions" id="dpTable" [dtTrigger]="dtTrigger" dtInstance="dtInstanceCallback">
|
61
|
<thead>
|
62
|
<tr>
|
63
|
<th class="uk-text-center">Name</th>
|
64
|
<th class="uk-text-center">Last update on</th>
|
65
|
<!-- <th class="uk-text-center">Funder</th> -->
|
66
|
<th class="uk-text-center">Action</th>
|
67
|
</tr>
|
68
|
</thead>
|
69
|
<tbody>
|
70
|
<tr class="uk-table-middle" *ngFor="let item of selectedCommunities">
|
71
|
<td class="uk-text-center uk-width-1-4">
|
72
|
<a class="custom-external" target="_blank" href="{{item.link}}">
|
73
|
<span *ngIf="item.title">{{item.title}}</span>
|
74
|
<span *ngIf="!item.title">[no name available]</span>
|
75
|
</a>
|
76
|
</td>
|
77
|
<td class="uk-text-center uk-width-1-4">
|
78
|
<div class=" ">
|
79
|
{{item.date | date:'yyyy/MM/dd'}}
|
80
|
</div>
|
81
|
</td>
|
82
|
<!-- <td class="uk-text-center uk-width-1-4">
|
83
|
<span *ngIf="result.funder">{{result.funder}}</span>
|
84
|
<span *ngIf="!result.funder">-</span>
|
85
|
</td> -->
|
86
|
|
87
|
<td class="uk-text-center uk-width-1-4">
|
88
|
<!-- red_background_color red_color-->
|
89
|
<a (click)="removeCommunity(item)" class="uk-icon-button remove uk-button-danger" uk-icon="close" title="Undo"></a>
|
90
|
|
91
|
</td>
|
92
|
</tr>
|
93
|
</tbody>
|
94
|
</table>
|
95
|
</div>
|
96
|
</div>
|
97
|
|
98
|
</div>
|
99
|
<modal-alert #AlertModalDeleteCommunity (alertOutput)="confirmedDeleteCommunity($event)"></modal-alert>
|