1
|
<metadata-preview *ngIf="showOptions.show=='claim' && properties" class="uk-margin-top"
|
2
|
[results]="results" [sources]="sources"
|
3
|
[localStoragePrefix]="localStoragePrefix" [inlineEntity]="inlineEntity"
|
4
|
[showOptions]="showOptions" [properties]=properties [pageContents]="pageContents"
|
5
|
[defaultColors]="(communityId?false:true)"
|
6
|
>
|
7
|
</metadata-preview>
|
8
|
<div id="tm-main" class="uk-section uk-padding-remove-top tm-middle" *ngIf="showOptions.show != 'claim'">
|
9
|
<div class="uk-grid">
|
10
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
11
|
<schema2jsonld *ngIf="url" [URL]="url" name="Link your research results" type="other"></schema2jsonld>
|
12
|
<div [class]="((showOptions.show == 'claim')?'':' uk-margin-top ')+' uk-container uk-container-large '">
|
13
|
<div>
|
14
|
<!-- <div class="uk-width-1-1">
|
15
|
<helper position="top"></helper>
|
16
|
</div> -->
|
17
|
<div class="uk-grid helper-grid">
|
18
|
<!-- <helper position="left" styleName=" uk-width-1-5 uk-padding-left"></helper>-->
|
19
|
<div class="uk-width-expand">
|
20
|
|
21
|
<div *ngIf="properties" class="uk-section uk-section-default uk-padding-remove-top">
|
22
|
|
23
|
<div style=""
|
24
|
[class]="((showOptions.show == 'claim')?'':' uk-margin-top ')+' uk-container uk-container-large '">
|
25
|
<div class="uk-grid" *ngIf="showOptions.show!='claim'">
|
26
|
<div class="uk-width-2-3">
|
27
|
<div class="uk-h5">
|
28
|
<span *ngIf="showOptions.show!='source' && showOptions.show != 'claim'">
|
29
|
<span>LINK TO </span>
|
30
|
<select [(ngModel)]="showOptions.show" class="uk-select uk-width-auto uk-text-bold "
|
31
|
*ngIf="showOptions.linkToEntities.length > 1">
|
32
|
<option *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 "
|
33
|
value="project">PROJECTS</option>
|
34
|
<option *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " value="result">RESEARCH
|
35
|
RESULTS</option>
|
36
|
<option *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " value="context">COMMUNITIES
|
37
|
</option>
|
38
|
</select>
|
39
|
<span class=" uk-width-auto uk-text-bold "
|
40
|
*ngIf="showOptions.linkToEntities.length ==1">
|
41
|
<span *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 "
|
42
|
value="project">PROJECTS</span>
|
43
|
<span *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " value="result">RESEARCH
|
44
|
RESULTS</span>
|
45
|
<span *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " value="context">COMMUNITIES
|
46
|
</span>
|
47
|
</span>
|
48
|
</span>
|
49
|
<span *ngIf="showOptions.show=='source'" class="uk-text-bold">
|
50
|
ADD LINKING SOURCES
|
51
|
</span>
|
52
|
|
53
|
</div>
|
54
|
<div *ngIf="showOptions.show=='source'">
|
55
|
<claim-result-search-form [selectedResults]="sources" [properties]=properties
|
56
|
[localStoragePrefix]="localStoragePrefix+'sources'" [basketLimit]="basketLimit"
|
57
|
></claim-result-search-form>
|
58
|
</div>
|
59
|
<div *ngIf="showOptions.show=='project'">
|
60
|
<claim-projects-search-form [selectedProjects]="results" [properties]=properties
|
61
|
[localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
|
62
|
></claim-projects-search-form>
|
63
|
</div>
|
64
|
<div *ngIf="showOptions.show=='context'">
|
65
|
<claim-contexts-search-form [communityId]=communityId [results]="results" [sources]="sources"
|
66
|
[properties]=properties
|
67
|
[localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
|
68
|
></claim-contexts-search-form>
|
69
|
</div>
|
70
|
<div *ngIf="showOptions.show=='result'">
|
71
|
<claim-result-search-form [selectedResults]="results" [properties]=properties
|
72
|
[localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"
|
73
|
></claim-result-search-form>
|
74
|
</div>
|
75
|
|
76
|
</div>
|
77
|
<!-- Basket-->
|
78
|
<div *ngIf="showOptions.show != 'claim'" class="uk-width-1-3" style="">
|
79
|
<div class="linksbasketheader uk-margin-bottom uk-text-bold uk-h5">
|
80
|
LINKS BASKET
|
81
|
</div>
|
82
|
<div class="linksbasket uk-inline uk-width-1-1" style="">
|
83
|
<div *ngIf="inlineEntity == null">
|
84
|
<div class="linksbaskettitles uk-padding-small uk-animation-toggle" (click)="showOptions.showBasketSources()">
|
85
|
<div class="uk-h6 uk-margin-remove portal-color" >
|
86
|
SOURCES ({{(sources.length) | number}})
|
87
|
<span *ngIf="showOptions.show!='source' && !showOptions.basketShowSources"
|
88
|
class="uk-icon"><svg width="20"
|
89
|
height="20"
|
90
|
viewBox="0 0 20 20"
|
91
|
xmlns="http://www.w3.org/2000/svg"
|
92
|
icon="chevron-left"
|
93
|
ratio="1"><polyline
|
94
|
fill="none" stroke="#000" stroke-width="1.03" points="13 16 7 10 13 4"></polyline></svg></span>
|
95
|
<span *ngIf="showOptions.show!='source' && showOptions.basketShowSources"
|
96
|
class="uk-icon"><svg width="20"
|
97
|
height="20"
|
98
|
viewBox="0 0 20 20"
|
99
|
xmlns="http://www.w3.org/2000/svg"
|
100
|
icon="chevron-down"
|
101
|
ratio="1"><polyline
|
102
|
fill="none" stroke="#000" stroke-width="1.03" points="16 7 10 13 4 7"></polyline></svg></span>
|
103
|
</div>
|
104
|
Research results to link
|
105
|
</div>
|
106
|
|
107
|
<div *ngIf="showOptions.basketShowSources"
|
108
|
class=" uk-margin-remove-top uk-height-medium uk-overflow-auto ">
|
109
|
<div class="uk-background-muted uk-padding-small " style="min-height: 17px;">
|
110
|
<div *ngIf="showOptions.show != 'source'" class="uk-text-center">
|
111
|
<a (click)="showOptions.showSource()">
|
112
|
<!--span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="plus" ratio="1"><rect x="9" y="1" width="1" height="17"></rect><rect x="1" y="9" width="17" height="1"></rect></svg></span-->
|
113
|
Edit sources</a>
|
114
|
</div>
|
115
|
<start-over *ngIf="showOptions.show == 'source' && (sources.length)> 0"
|
116
|
[results]="sources"
|
117
|
[localStoragePrefix]="localStoragePrefix+'sources'"
|
118
|
message="all sources" class="uk-float-right"></start-over>
|
119
|
<bulk-claim *ngIf="showOptions.show == 'source'" [results]="sources"
|
120
|
[properties]=properties
|
121
|
[localStoragePrefix]="localStoragePrefix+'sources'" [basketLimit]="basketLimit"
|
122
|
>
|
123
|
</bulk-claim>
|
124
|
|
125
|
</div>
|
126
|
<div class="uk-animation-slide-top-small uk-padding-small">
|
127
|
|
128
|
<div *ngIf="(sources.length) == 0 " class="uk-alert no-selected-message uk-text-center">
|
129
|
No Sources added yet. Start adding sources from the left panel. Or upload a DOI's CSV file.
|
130
|
</div>
|
131
|
<div *ngIf="sources.length >= basketLimit "
|
132
|
class="uk-alert uk-alert-warning uk-text-center">
|
133
|
Basket reached the size limit. No more sources can be added.
|
134
|
</div>
|
135
|
<claim-selected-results [results]="sources"
|
136
|
[localStoragePrefix]="localStoragePrefix+'sources'" class=""
|
137
|
[enableRemove]="showOptions.show == 'source'">
|
138
|
</claim-selected-results>
|
139
|
<div id="test1"></div>
|
140
|
</div>
|
141
|
</div>
|
142
|
</div>
|
143
|
<div *ngIf="inlineEntity"
|
144
|
class="linkInlineEntity uk-padding-small">
|
145
|
<div class="uk-h6 linkInlineEntity uk-margin-small-bottom ">
|
146
|
SOURCE
|
147
|
|
148
|
</div>
|
149
|
<claim-title [entity]="inlineEntity" [slice]="true" [sliceSize]="45"
|
150
|
[shortVersion]="true"></claim-title>
|
151
|
<div class="uk-margin-small-top">
|
152
|
<span class="uk-label custom-label linkInlineEntityLabel"
|
153
|
title="Type">{{inlineEntity.type}}</span>
|
154
|
<span *ngIf="inlineEntity.project">
|
155
|
<span class="uk-label custom-label linkInlineEntityLabel"
|
156
|
title="Funder">{{inlineEntity.project.funderName}}</span>
|
157
|
<!-- <span class="uk-label custom-label " title="Type">{{inlineEntity.type}}</span>-->
|
158
|
</span>
|
159
|
<span *ngIf="inlineEntity.result">
|
160
|
<span class="uk-label custom-label linkInlineEntityLabel "
|
161
|
title="Access mode">{{inlineEntity.result.accessRights}}</span>
|
162
|
</span>
|
163
|
</div>
|
164
|
|
165
|
</div>
|
166
|
<div *ngIf="showOptions.show !='source'">
|
167
|
<div class=" linksbaskettitles uk-padding-small uk-animation-toggle" (click)="showOptions.basketShowLinksTo=!showOptions.basketShowLinksTo;
|
168
|
showOptions.basketShowSources=!showOptions.basketShowLinksTo ">
|
169
|
<div *ngIf="!inlineEntity"> <!--Enable toggle -->
|
170
|
<span class="uk-h6 uk-margin-remove portal-color" >
|
171
|
LINK TO ({{(results.length) | number}})
|
172
|
<span *ngIf="!showOptions.basketShowLinksTo" class="uk-icon"><svg width="20"
|
173
|
height="20"
|
174
|
viewBox="0 0 20 20"
|
175
|
xmlns="http://www.w3.org/2000/svg"
|
176
|
icon="chevron-left"
|
177
|
ratio="1"><polyline
|
178
|
fill="none" stroke="#000" stroke-width="1.03"
|
179
|
points="13 16 7 10 13 4"></polyline></svg></span>
|
180
|
<span *ngIf="showOptions.basketShowLinksTo" class="uk-icon"><svg width="20"
|
181
|
height="20"
|
182
|
viewBox="0 0 20 20"
|
183
|
xmlns="http://www.w3.org/2000/svg"
|
184
|
icon="chevron-down"
|
185
|
ratio="1"><polyline
|
186
|
fill="none" stroke="#000" stroke-width="1.03"
|
187
|
points="16 7 10 13 4 7"></polyline></svg></span>
|
188
|
</span>
|
189
|
</div>
|
190
|
<div *ngIf="inlineEntity"> <!--Inline Entity - no toggle -->
|
191
|
<span class="uk-h6 uk-margin-remove portal-color">
|
192
|
LINK TO ({{(results.length) | number}})
|
193
|
</span>
|
194
|
</div>
|
195
|
|
196
|
|
197
|
<div class="linksBasketSubtitles">
|
198
|
Entities to link with the sources
|
199
|
</div>
|
200
|
</div>
|
201
|
<div *ngIf="showOptions.basketShowLinksTo"
|
202
|
class="uk-height-medium uk-overflow-auto">
|
203
|
<div *ngIf=" (results.length)> 0 || showOptions.show=='result'"
|
204
|
class="uk-background-muted uk-padding-small " style="min-height: 17px;">
|
205
|
<start-over *ngIf=" (results.length)> 0"
|
206
|
[results]="results" [localStoragePrefix]="localStoragePrefix+'results'"
|
207
|
message="all results (projects, communities, research results)"
|
208
|
class="uk-float-right"></start-over>
|
209
|
<bulk-claim *ngIf="showOptions.show=='result'" [results]="results" [properties]=properties
|
210
|
[localStoragePrefix]="localStoragePrefix+'results'" [basketLimit]="basketLimit"></bulk-claim>
|
211
|
</div>
|
212
|
|
213
|
<div class="uk-padding-small uk-animation-slide-top-small">
|
214
|
<div *ngIf="results.length >= basketLimit "
|
215
|
class="uk-alert uk-alert-warning uk-text-center">
|
216
|
Basket reached the size limit. No more entities can be added.
|
217
|
</div>
|
218
|
<claim-selected-results sectionTitle="Selected Results" [results]="results"
|
219
|
[localStoragePrefix]="localStoragePrefix+'results'">
|
220
|
</claim-selected-results>
|
221
|
<div *ngIf="(results.length) == 0 " class="uk-alert no-selected-message uk-text-center">
|
222
|
No entities to link with the sources. Start adding entities from the left panel.
|
223
|
</div>
|
224
|
|
225
|
</div>
|
226
|
</div>
|
227
|
</div>
|
228
|
|
229
|
|
230
|
</div>
|
231
|
<div *ngIf="showOptions.show=='source'"
|
232
|
[class]="((sources.length)>0?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-padding-small'"
|
233
|
(click)="openSelectionModal(); ">
|
234
|
<!--show = linkTo; basketShowSources=false;
|
235
|
basketShowLinksTo=true;-->
|
236
|
<div class="uk-h6 uk-margin-remove portal-color">CONTINUE TO - LINK TO <span
|
237
|
*ngIf="results.length > 0">({{(results.length) | number}})</span>
|
238
|
<span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right">
|
239
|
<svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
|
240
|
icon="chevron-right" ratio="1.5"><polyline fill="none" stroke="#000" stroke-width="1.03"
|
241
|
points="7 4 13 10 7 16"></polyline></svg>
|
242
|
</span>
|
243
|
</div>
|
244
|
<div class="linksBasketSubtitles">
|
245
|
Entities to link with the sources
|
246
|
</div>
|
247
|
</div>
|
248
|
<div *ngIf="showOptions.show!='source'"
|
249
|
[class]="((results.length)>0?'linksbaskettitlesPortalColor ':'uk-disabled')+ ' linksbaskettitles uk-margin-small-top uk-padding-small'"
|
250
|
style="height:auto !important; " (click)="showOptions.show = 'claim'; scrollUp();">
|
251
|
|
252
|
<div class="uk-margin-remove portal-color uk-text-center">
|
253
|
FINISH LINKING
|
254
|
<span class="uk-icon uk-float-right uk-text-bold uk-margin-small-right">
|
255
|
<svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
|
256
|
icon="chevron-right" ratio="1.5"><polyline fill="none" stroke="#000" stroke-width="1.03"
|
257
|
points="7 4 13 10 7 16"></polyline></svg>
|
258
|
</span>
|
259
|
</div>
|
260
|
</div>
|
261
|
</div>
|
262
|
</div>
|
263
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']"></helper>
|
264
|
</div>
|
265
|
|
266
|
|
267
|
<!-- <helper position="right" styleName=" uk-width-1-5"></helper>-->
|
268
|
</div>
|
269
|
<!-- <helper position="bottom"></helper>-->
|
270
|
</div>
|
271
|
|
272
|
|
273
|
</div>
|
274
|
|
275
|
</div>
|
276
|
</div>
|
277
|
</div>
|
278
|
</div>
|
279
|
</div>
|
280
|
|
281
|
<modal-alert (alertOutput)="closeSelectionModal($event)" >
|
282
|
<div class="uk-grid uk-text-center uk-margin-expand uk-padding uk-child-width-1-3">
|
283
|
|
284
|
<div *ngIf="showOptions.linkToEntities.indexOf('project')!=-1 " (click)="closeSelectionModal('project')"
|
285
|
style="cursor:pointer;">
|
286
|
<button class="uk-icon-button portal-button">
|
287
|
<span class="uk-icon">
|
288
|
<svg height="20" icon="album" ratio="1" viewBox="0 0 20 20" width="20"
|
289
|
xmlns="http://www.w3.org/2000/svg"><rect height="1" width="10" x="5" y="2"></rect><rect
|
290
|
height="1" width="14" x="3" y="4"></rect><rect fill="none" height="11" stroke="#000"
|
291
|
width="17" x="1.5" y="6.5"></rect></svg></span>
|
292
|
</button>
|
293
|
<div>Projects</div>
|
294
|
</div>
|
295
|
<div *ngIf="showOptions.linkToEntities.indexOf('result')!=-1 " (click)="closeSelectionModal('result')"
|
296
|
style="cursor:pointer;">
|
297
|
<button class="uk-icon-button portal-button">
|
298
|
<span class="uk-icon">
|
299
|
<svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
|
300
|
xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
|
301
|
width="12" x="3.5" y="2.5"></rect><polyline
|
302
|
fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
|
303
|
</button>
|
304
|
<div>Research results</div>
|
305
|
</div>
|
306
|
<div *ngIf="showOptions.linkToEntities.indexOf('context')!=-1 " (click)="closeSelectionModal('context')"
|
307
|
style="cursor:pointer;">
|
308
|
<button class="uk-icon-button portal-button">
|
309
|
<span class="uk-icon">
|
310
|
<svg height="20" icon="users" ratio="1" viewBox="0 0 20 20" width="20"
|
311
|
xmlns="http://www.w3.org/2000/svg"><circle cx="7.7" cy="8.6" fill="none" r="3.5"
|
312
|
stroke="#000" stroke-width="1.1"></circle><path
|
313
|
d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3" fill="none"
|
314
|
stroke="#000" stroke-width="1.1"></path><path
|
315
|
d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"
|
316
|
fill="none" stroke="#000" stroke-width="1.1"></path></svg></span>
|
317
|
</button>
|
318
|
<div>Communities</div>
|
319
|
</div>
|
320
|
|
321
|
</div>
|
322
|
</modal-alert>
|