1
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
2
|
<div class="uk-width-1-1@m uk-first-column">
|
3
|
|
4
|
<h1 *ngIf="eventsPage" class="uk-h2">{{ eventsPage.datasource }}</h1>
|
5
|
<div *ngIf="eventsPage" class="uk-text uk-text-small uk-text-secondary">{{ topic }}</div>
|
6
|
|
7
|
<!-- TOP HELP CONTENT -->
|
8
|
<help-content #topHelperContent [position]="'top'"
|
9
|
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
10
|
</help-content>
|
11
|
|
12
|
<div class="uk-container uk-container-large uk-margin-medium-top uk-margin-medium-bottom">
|
13
|
<div class="uk-grid">
|
14
|
|
15
|
<!-- LEFT HELP CONTENT -->
|
16
|
<aside-help-content #leftHelperContent [position]="'left'"
|
17
|
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
18
|
</aside-help-content>
|
19
|
|
20
|
<!-- MIDDLE -->
|
21
|
<div class=" uk-width-expand@m">
|
22
|
|
23
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
|
24
|
<div *ngIf="loadingMessage" class="loading-big">
|
25
|
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">{{ loadingMessage }}</div>
|
26
|
<div class="whiteFilm"></div>
|
27
|
</div>
|
28
|
<div *ngIf="noEvents" class="uk-alert">{{ noEvents }}</div>
|
29
|
<div *ngIf="!noEvents && !loadingMessage && !errorMessage && eventsPage && eventsPage.totalPages>0" class="events-results">
|
30
|
<div class="numberOfEventsLabel">
|
31
|
|
32
|
<!-- RESTORE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
33
|
<!--<span>Showing {{(eventsPage.currPage*10)+1 }}-{{ ( (eventsPage.total < 10) || (eventsPage.total < (eventsPage.currPage+1)*10) ) ? (eventsPage.total) : (eventsPage.currPage+1)*10 }} of {{ eventsPage.total }} results</span>-->
|
34
|
|
35
|
<!-- DELETE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
36
|
<span>Showing {{(currentPage*10)+1 }}-{{ ( (eventsPage.total < 10) || (eventsPage.total < (currentPage+1)*10) ) ? (eventsPage.total) : (currentPage+1)*10 }} of {{ eventsPage.total }} results</span>
|
37
|
|
38
|
</div>
|
39
|
<div>
|
40
|
<ul class="uk-pagination">
|
41
|
<li>
|
42
|
<a class="uk-link uk-link-muted" (click)="goToPreviousPage()">
|
43
|
<span class="uk-margin-small-right uk-pagination-previous uk-icon" uk-pagination-previous="">
|
44
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-previous" ratio="1"></svg>
|
45
|
</span>
|
46
|
Previous
|
47
|
</a>
|
48
|
</li>
|
49
|
<li class="uk-margin-auto-left">
|
50
|
<a class="uk-link uk-link-muted" (click)="goToNextPage()">
|
51
|
Next
|
52
|
<span class="uk-margin-small-left uk-pagination-next uk-icon" uk-pagination-next="">
|
53
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-next" ratio="1"></svg>
|
54
|
</span>
|
55
|
</a>
|
56
|
</li>
|
57
|
</ul>
|
58
|
|
59
|
<!-- RESTORE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
60
|
<!--<div class="resultsPageLabel">page {{ eventsPage.currPage+1 }} of {{ eventsPage.totalPages }}</div>-->
|
61
|
|
62
|
<!-- DELETE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
63
|
<div class="resultsPageLabel">page {{ (eventsPage.totalPages > 0) ? currentPage+1 : 0 }} of {{ eventsPage.totalPages }}</div>
|
64
|
|
65
|
</div>
|
66
|
<div *ngFor="let event of eventsPage.values" class="events-list">
|
67
|
<div class="uk-card uk-card-default well uk-scrollspy-inview uk-animation-slide-top-medium">
|
68
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
69
|
<div class="uk-width-1-1@m uk-first-column">
|
70
|
<p class="text-right"><span class="uk-label">Trust: {{ event.trust }}</span></p>
|
71
|
<div class="uk-overflow-auto uk-scrollspy-inview uk-animation-slide-top-medium">
|
72
|
<table class="uk-table uk-table-striped uk-table-middle">
|
73
|
<tbody>
|
74
|
<tr class="el-item">
|
75
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">ID</strong></td>
|
76
|
<td class="uk-table-shrink">
|
77
|
<div class="el-title">{{ event.publication.originalId }}</div>
|
78
|
</td>
|
79
|
</tr>
|
80
|
<tr class="el-item">
|
81
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Title(s)</strong></td>
|
82
|
<td class="uk-table-shrink">
|
83
|
<div class="el-title">
|
84
|
<span *ngFor="let t of event.publication.titles; let ti_index = index">
|
85
|
<br *ngIf="ti_index>0">
|
86
|
<span>{{ t }}</span>
|
87
|
</span>
|
88
|
</div>
|
89
|
</td>
|
90
|
</tr>
|
91
|
<tr class="el-item">
|
92
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Author(s)</strong></td>
|
93
|
<td class="uk-table-shrink">
|
94
|
<div class="el-title">
|
95
|
<span *ngFor="let auth of event.publication.creators; let au_index = index">
|
96
|
<span *ngIf="au_index>0"> | </span>
|
97
|
<span>{{ auth }}</span>
|
98
|
</span>
|
99
|
</div>
|
100
|
</td>
|
101
|
</tr>
|
102
|
<tr class="el-item" [ngClass]="{'success': event.highlight.pids && event.highlight.pids.length>0 }">
|
103
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">PID(s)</strong></td>
|
104
|
<td class="uk-table-shrink">
|
105
|
<div class="el-title">
|
106
|
<span *ngFor="let pid of event.publication.pids">
|
107
|
<span>{{ pid.value }} <b> ({{ pid.type }}) </b>
|
108
|
<span *ngIf="event.highlight.pids && event.highlight.pids.length>0 && isHighlighted(pid,event.highlight.pids)">
|
109
|
<span class="uk-label uk-label-success">added</span>
|
110
|
<span *ngIf="event.provenance" class="pull-right">
|
111
|
<b>from: </b>
|
112
|
<a *ngIf="event.provenance.url" href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
113
|
<span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
|
114
|
</span>
|
115
|
</span>
|
116
|
</span>
|
117
|
</span>
|
118
|
</div>
|
119
|
</td>
|
120
|
</tr>
|
121
|
<tr class="el-item" [ngClass]="{'success': event.highlight.abstracts && event.highlight.abstracts.length>0 }">
|
122
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Abstract(s)</strong></td>
|
123
|
<td class="uk-table-shrink">
|
124
|
<div class="el-title">
|
125
|
<span *ngFor="let abs of event.publication.abstracts; let a_index = index">
|
126
|
<br *ngIf="a_index > 0">
|
127
|
<span>{{ abs }}</span>
|
128
|
<span *ngIf="event.highlight.abstracts && event.highlight.abstracts.length>0 && event.provenance">
|
129
|
<span class="pull-right">
|
130
|
<b>from: </b>
|
131
|
<a *ngIf="event.provenance.url" href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
132
|
<span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
|
133
|
</span>
|
134
|
</span>
|
135
|
</span>
|
136
|
</div>
|
137
|
</td>
|
138
|
</tr>
|
139
|
<tr class="el-item" [ngClass]="{'success': event.highlight.projects && event.highlight.projects.length>0 }">
|
140
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Project(s)/Relation(s)</strong></td>
|
141
|
<td class="uk-table-shrink">
|
142
|
<div class="el-title">
|
143
|
<span *ngFor="let proj of event.publication.projects; let p_index = index">
|
144
|
<br *ngIf="p_index > 0">
|
145
|
<span *ngIf="proj.acronym && proj.acronym !==''">{{ proj.acronym }}</span>
|
146
|
<span *ngIf="!proj.acronym || proj.acronym ===''">{{ proj.title }}</span>
|
147
|
<span *ngIf="(proj.funder && proj.funder !=='') ||
|
148
|
(proj.fundingProgram && proj.fundingProgram !=='')">
|
149
|
(<span *ngIf="proj.funder && proj.funder !==''">{{ proj.funder }} </span>
|
150
|
<span *ngIf="(proj.funder && proj.funder !=='') &&
|
151
|
(proj.fundingProgram && proj.fundingProgram !=='')">/</span>
|
152
|
<span *ngIf="proj.fundingProgram && proj.fundingProgram !==''">{{ proj.fundingProgram }}</span>)
|
153
|
</span>
|
154
|
|
155
|
<span *ngIf="event.highlight.projects && event.highlight.projects.length>0 && event.provenance">
|
156
|
<span class="pull-right">
|
157
|
<b>from: </b>
|
158
|
<a *ngIf="event.provenance.url" href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
159
|
<span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
|
160
|
</span>
|
161
|
</span>
|
162
|
</span>
|
163
|
</div>
|
164
|
</td>
|
165
|
</tr>
|
166
|
<tr class="el-item" [ngClass]="{'success': event.highlight.subjects && event.highlight.subjects.length>0 }">
|
167
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Subject(s)</strong></td>
|
168
|
<td class="uk-table-shrink">
|
169
|
<div class="el-title">
|
170
|
<span *ngFor="let subj of event.publication.subjects; let s_index = index">
|
171
|
<br *ngIf="s_index > 0">
|
172
|
<span>{{ subj }}</span>
|
173
|
<span *ngIf="event.highlight.subjects && event.highlight.subjects.length>0 && event.provenance">
|
174
|
<span class="pull-right">
|
175
|
<b>from: </b>
|
176
|
<a *ngIf="event.provenance.url" href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
177
|
<span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
|
178
|
</span>
|
179
|
</span>
|
180
|
</span>
|
181
|
</div>
|
182
|
</td>
|
183
|
</tr>
|
184
|
<tr class="el-item" [ngClass]="{'success': event.highlight.publicationdate && event.highlight.publicationdate.length>0 }">
|
185
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Publication date</strong></td>
|
186
|
<td class="uk-table-shrink"><div class="el-title">{{ event.publication.publicationdate }}</div></td>
|
187
|
</tr>
|
188
|
<tr class="el-item" [ngClass]="{'success': event.highlight.instances && event.highlight.instances.length>0 }">
|
189
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Rights</strong></td>
|
190
|
<td class="uk-table-shrink">
|
191
|
<div class="el-title">
|
192
|
<span *ngFor="let l of event.publication.instances; let l_index = index">
|
193
|
<br *ngIf="l_index > 0">
|
194
|
<span>
|
195
|
{{ l.license }} <b>{{ l.hostedby }}</b><br>
|
196
|
<a href="{{ l.url }}" target="_blank">{{ l.url }}</a>
|
197
|
</span>
|
198
|
<span *ngIf="event.highlight.instances && event.highlight.instances.length>0 && isHighlighted(l,event.highlight.instances)">
|
199
|
<span class="uk-label uk-label-success">added</span>
|
200
|
<span *ngIf="event.provenance" class="pull-right">
|
201
|
<b>from: </b>
|
202
|
<a *ngIf="event.provenance.url" href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
203
|
<span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
|
204
|
</span>
|
205
|
</span>
|
206
|
</span>
|
207
|
</div>
|
208
|
</td>
|
209
|
</tr>
|
210
|
</tbody>
|
211
|
</table>
|
212
|
</div>
|
213
|
</div>
|
214
|
</div>
|
215
|
</div>
|
216
|
</div>
|
217
|
<div>
|
218
|
<ul class="uk-pagination">
|
219
|
<li>
|
220
|
<a class="uk-link uk-link-muted" (click)="goToPreviousPage()">
|
221
|
<span class="uk-margin-small-right uk-pagination-previous uk-icon" uk-pagination-previous="">
|
222
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-previous" ratio="1"></svg>
|
223
|
</span>
|
224
|
Previous
|
225
|
</a>
|
226
|
</li>
|
227
|
<li class="uk-margin-auto-left">
|
228
|
<a class="uk-link uk-link-muted" (click)="goToNextPage()">
|
229
|
Next
|
230
|
<span class="uk-margin-small-left uk-pagination-next uk-icon" uk-pagination-next="">
|
231
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-next" ratio="1"></svg>
|
232
|
</span>
|
233
|
</a>
|
234
|
</li>
|
235
|
</ul>
|
236
|
|
237
|
<!-- RESTORE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
238
|
<!--<div class="resultsPageLabel">page {{ eventsPage.currPage+1 }} of {{ eventsPage.totalPages }}</div>-->
|
239
|
|
240
|
<!-- DELETE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
241
|
<div class="resultsPageLabel">page {{ (eventsPage.totalPages > 0) ? currentPage+1 : 0 }} of {{ eventsPage.totalPages }}</div>
|
242
|
|
243
|
</div>
|
244
|
</div>
|
245
|
|
246
|
</div>
|
247
|
|
248
|
<!-- RIGHT HELP CONTENT -->
|
249
|
<aside-help-content #rightHelperContent [position]="'right'"
|
250
|
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
251
|
</aside-help-content>
|
252
|
|
253
|
</div>
|
254
|
</div>
|
255
|
|
256
|
|
257
|
<!-- BOTTOM HELP CONTENT -->
|
258
|
<help-content #bottomHelperContent [position]="'bottom'"
|
259
|
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
260
|
</help-content>
|
261
|
|
262
|
|
263
|
</div>
|
264
|
</div>
|