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-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 {{ currentPage+1 }} 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">{{ t }}; </span></div>
|
85
|
</td>
|
86
|
</tr>
|
87
|
<tr class="el-item">
|
88
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Author(s)</strong></td>
|
89
|
<td class="uk-table-shrink">
|
90
|
<div class="el-title"><span *ngFor="let auth of event.publication.creators">{{ auth }}; </span></div>
|
91
|
</td>
|
92
|
</tr>
|
93
|
<tr class="el-item">
|
94
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">PID(s)</strong></td>
|
95
|
<td class="uk-table-shrink"><div class="el-title"><span *ngFor="let pid of event.publication.pids">({{ pid.type }}) {{ pid.value }}</span></div></td>
|
96
|
</tr>
|
97
|
<tr class="el-item"><td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Abstract(s)</strong></td>
|
98
|
<td class="uk-table-shrink"><div class="el-title"><span *ngFor="let abs of event.publication.abstracts">{{ abs }}</span></div></td>
|
99
|
</tr>
|
100
|
<tr class="el-item">
|
101
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Project(s)/Relation(s)</strong></td>
|
102
|
<td class="uk-table-shrink"><div class="el-title"><span *ngFor="let rel of event.publication.externalReferences">{{ rel.name }}; </span></div></td>
|
103
|
</tr>
|
104
|
<tr class="el-item">
|
105
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Subject(s)</strong></td>
|
106
|
<td class="uk-table-shrink">
|
107
|
<div class="el-title"><span *ngFor="let subj of event.publication.subjects">{{ subj }}; </span></div>
|
108
|
</td>
|
109
|
</tr>
|
110
|
<tr class="el-item">
|
111
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Publication date</strong></td>
|
112
|
<td class="uk-table-shrink"><div class="el-title">{{ event.publication.publicationdate }}</div></td>
|
113
|
</tr>
|
114
|
<tr class="el-item success">
|
115
|
<td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Rights</strong></td>
|
116
|
<td class="uk-table-shrink">
|
117
|
<div class="el-title">
|
118
|
<span *ngFor="let l of event.publication.instances">{{ l.license }} <b>{{ l.hostedby }}</b><br>
|
119
|
<a href="{{ l.url }}" target="_blank">{{ l.url }}</a><br>
|
120
|
</span>
|
121
|
<span class="pull-right">
|
122
|
<span class="uk-label uk-label-success">added</span>
|
123
|
<span><b>from: </b>
|
124
|
<a href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
|
125
|
<span> ({{ event.provenance.id }})</span>
|
126
|
</span>
|
127
|
</span>
|
128
|
</div>
|
129
|
</td>
|
130
|
</tr>
|
131
|
</tbody>
|
132
|
</table>
|
133
|
</div>
|
134
|
</div>
|
135
|
</div>
|
136
|
</div>
|
137
|
</div>
|
138
|
<div>
|
139
|
<ul class="uk-pagination">
|
140
|
<li>
|
141
|
<a class="uk-link uk-link-muted" (click)="goToPreviousPage()">
|
142
|
<span class="uk-margin-small-right uk-pagination-previous uk-icon" uk-pagination-previous="">
|
143
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-previous" ratio="1"></svg>
|
144
|
</span>
|
145
|
Previous
|
146
|
</a>
|
147
|
</li>
|
148
|
<li class="uk-margin-auto-left">
|
149
|
<a class="uk-link uk-link-muted" (click)="goToNextPage()">
|
150
|
Next
|
151
|
<span class="uk-margin-small-left uk-pagination-next uk-icon" uk-pagination-next="">
|
152
|
<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-next" ratio="1"></svg>
|
153
|
</span>
|
154
|
</a>
|
155
|
</li>
|
156
|
</ul>
|
157
|
|
158
|
<!-- RESTORE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
159
|
<!--<div class="resultsPageLabel">page {{ eventsPage.currPage+1 }} of {{ eventsPage.totalPages }}</div>-->
|
160
|
|
161
|
<!-- DELETE WHEN getNotificationsBySubscriptionId IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
|
162
|
<div class="resultsPageLabel">page {{ currentPage+1 }} of {{ eventsPage.totalPages }}</div>
|
163
|
|
164
|
</div>
|
165
|
</div>
|
166
|
|
167
|
</div>
|
168
|
|
169
|
<!-- RIGHT HELP CONTENT -->
|
170
|
<aside-help-content #rightHelperContent [position]="'right'"
|
171
|
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
172
|
</aside-help-content>
|
173
|
|
174
|
</div>
|
175
|
</div>
|
176
|
|
177
|
|
178
|
<!-- BOTTOM HELP CONTENT -->
|
179
|
<help-content #bottomHelperContent [position]="'bottom'"
|
180
|
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
181
|
</help-content>
|
182
|
|
183
|
|
184
|
</div>
|
185
|
</div>
|