Project

General

Profile

1
<div id="tm-main" class="landing uk-section uk-padding-remove-top tm-middle">
2
  <div *ngIf="!showFeedback" class="uk-grid">
3
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
4
      <div class="uk-container uk-container-large uk-margin-medium-top publication">
5
        <div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning  uk-margin-large-top"
6
             role="alert">{{warningMessage}}</div>
7
        <div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger  uk-margin-large-top"
8
             role="alert">{{errorMessage}}</div>
9
        <div [style.display]="showLoading ? 'inline' : 'none'"
10
             class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert">
11
          <span *ngIf="!dashboard" class="loading-gif  uk-align-center"></span>
12
          <loading *ngIf="dashboard"></loading>
13
        </div>
14
        <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
15
                [texts]="pageContents['top']"></helper>
16
        <div *ngIf="resultLandingInfo" class="uk-grid uk-margin-remove">
17
          <div
18
              class="uk-width-2-3@m uk-width-1-1@s uk-padding uk-padding-remove-left uk-padding-remove-vertical uk-margin-bottom">
19
            <!-- schema.org-->
20
            <schema2jsonld *ngIf="resultLandingInfo.record" [data]=resultLandingInfo.record
21
                           [URL]="properties.domain+ properties.baseLink +linkToLandingPage+id"></schema2jsonld>
22
            <landing-header [properties]="properties" [title]="resultLandingInfo.title"
23
                            [subTitle]="resultLandingInfo.subtitle"
24
                            [authors]="resultLandingInfo.authors" [authorLimit]="10"
25
                            [underCuration]="resultLandingInfo.underCurationMessage"
26
                            [entityType]="getTypeName()" [types]="resultLandingInfo.types"
27
                            [year]="resultLandingInfo.date" [embargoEndDate]="resultLandingInfo.embargoEndDate">
28
            </landing-header>
29
            <!-- Labels -->
30
            <div class="uk-margin-bottom">
31
              <span *ngIf="resultLandingInfo.accessMode
32
                  && resultLandingInfo.accessMode.toLowerCase() !== 'not available'"
33
                    [class]="'uk-label custom-label  label-'+ accessClass(resultLandingInfo.accessMode)"
34
                    title="Access Mode">{{resultLandingInfo.accessMode}}
35
              </span>{{" "}}
36
              <span *ngIf="resultLandingInfo.languages &&
37
                          removeUnknown(resultLandingInfo.languages).length > 0">
38
                <ng-container *ngFor="let language of removeUnknown(resultLandingInfo.languages)">
39
                  <span class="uk-label custom-label label-language" title="Language">{{language}}</span>
40
                  {{' '}}
41
                </ng-container>
42
              </span>
43
              <span *ngIf="resultLandingInfo.programmingLanguages && resultLandingInfo.programmingLanguages.length > 0">
44
                <ng-container *ngFor="let programmingLanguage of resultLandingInfo.programmingLanguages">
45
                  <span class="uk-label custom-label label-language"
46
                        title="Programming Language">{{programmingLanguage}}</span>
47
                  {{' '}}
48
                </ng-container>
49
              </span>
50
            </div>
51
            <ul class="uk-list basic-info">
52
              <!--Published Date, Journal and Publisher-->
53
              <showPublisher [publisher]="resultLandingInfo.publisher"
54
                             [publishDate]="resultLandingInfo.dateofacceptance"
55
                             [journal]="resultLandingInfo.journal" [properties]="properties"></showPublisher>
56
              <!-- Countries -->
57
              <li *ngIf="resultLandingInfo.countries && resultLandingInfo.countries.length > 0">
58
                <span class="uk-text-muted">
59
                  {{(resultLandingInfo.countries.length === 1) ? 'Country: ' : 'Countries: '}}
60
                </span>
61
                {{resultLandingInfo.countries.join(", ")}}
62
              </li>
63
            </ul>
64
          </div>
65
          <div class="uk-width-1-3@m uk-width-1-1@s uk-padding-remove">
66
            <ul class="user-actions uk-list uk-card uk-card-default uk-padding">
67
              <!-- Share -->
68
              <li>
69
                <addThis></addThis>
70
              </li>
71
              <!-- Link to -->
72
              <li *ngIf="isRouteAvailable('participate/direct-claim')">
73
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openLinkModal()">
74
                  <span class="uk-icon-button portal-button uk-icon">
75
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="link"><path
76
                        fill="none" stroke="#000" stroke-width="1.1"
77
                        d="M10.625,12.375 L7.525,15.475 C6.825,16.175 5.925,16.175 5.225,15.475 L4.525,14.775 C3.825,14.074 3.825,13.175 4.525,12.475 L7.625,9.375"></path><path
78
                        fill="none" stroke="#000" stroke-width="1.1"
79
                        d="M9.325,7.375 L12.425,4.275 C13.125,3.575 14.025,3.575 14.724,4.275 L15.425,4.975 C16.125,5.675 16.125,6.575 15.425,7.275 L12.325,10.375"></path><path
80
                        fill="none" stroke="#000" stroke-width="1.1"
81
                        d="M7.925,11.875 L11.925,7.975"></path>
82
                    </svg>
83
                  </span>
84
                  <span class="uk-margin-small-left">Link this {{getTypeName()}} to...</span>
85
                </a>
86
              </li>
87
              <!-- Cite this -->
88
              <li>
89
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openCiteModal()">
90
                  <span class="uk-icon-button uk-button-primary uk-icon">
91
                    <svg width="20"
92
                         height="20"
93
                         viewBox="0 0 20 20"
94
                         xmlns="http://www.w3.org/2000/svg"
95
                         data-svg="quote-right">
96
                      <path d="M17.27,7.79 C17.27,9.45 16.97,10.43 15.99,12.02 C14.98,13.64 13,15.23 11.56,15.97 L11.1,15.08 C12.34,14.2 13.14,13.51 14.02,11.82 C14.27,11.34 14.41,10.92 14.49,10.54 C14.3,10.58 14.09,10.6 13.88,10.6 C12.06,10.6 10.59,9.12 10.59,7.3 C10.59,5.48 12.06,4 13.88,4 C15.39,4 16.67,5.02 17.05,6.42 C17.19,6.82 17.27,7.27 17.27,7.79 L17.27,7.79 Z"></path>
97
                      <path d="M8.68,7.79 C8.68,9.45 8.38,10.43 7.4,12.02 C6.39,13.64 4.41,15.23 2.97,15.97 L2.51,15.08 C3.75,14.2 4.55,13.51 5.43,11.82 C5.68,11.34 5.82,10.92 5.9,10.54 C5.71,10.58 5.5,10.6 5.29,10.6 C3.47,10.6 2,9.12 2,7.3 C2,5.48 3.47,4 5.29,4 C6.8,4 8.08,5.02 8.46,6.42 C8.6,6.82 8.68,7.27 8.68,7.79 L8.68,7.79 Z"></path>
98
                    </svg>
99
                  </span>
100
                  <span class="uk-margin-small-left">Cite this {{getTypeName()}}</span>
101
                </a>
102
              </li>
103
              <li *ngIf="properties.b2noteAPIURL">
104
                <a *ngIf="user && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
105
                  <span class="uk-icon-button uk-button-primary uk-icon">
106
                    <img src="assets/common-assets/b2note.png">
107
                  </span>
108
                  <span class="uk-margin-small-left">add annotation</span>
109
                </a>
110
                <span *ngIf="!pid || !user" class="uk-link-text uk-text-bold uk-text-uppercase disabled"
111
                   [attr.uk-tooltip]="!pid?'Annotations are only available for resources with a PID (persistent identifier) like DOI, handle, PMID':
112
                'Annotations are only available for logged in users'">
113
                  <span class="uk-icon-button uk-button-primary uk-icon disabled">
114
                    <img src="assets/common-assets/b2note.png">
115
                  </span>
116
                  <span class="uk-margin-small-left">add annotation</span>
117
                </span>
118
              </li>
119
              <!-- Metrics -->
120
              <li *ngIf="hasAltMetrics || hasMetrics" class="uk-margin-medium-top">
121
                <div uk-grid
122
                     class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle uk-flex-center uk-padding-remove-left">
123
                  <div *ngIf="hasMetrics" [class.uk-hidden]="!(totalViews && totalDownloads && pageViews)">
124
                    <metrics [pageViews]="pageViews"
125
                             [id]="id" [entityType]="'results'" [entity]="title"
126
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
127
                             (metricsResults)="metricsResults($event)" [properties]=properties>
128
                    </metrics>
129
                  </div>
130
                  <div *ngIf="hasAltMetrics">
131
                    <altmetrics *ngIf="hasAltMetrics" id="{{resultLandingInfo.identifiers.get('doi')[0]}}" type="doi">
132
                    </altmetrics>
133
                  </div>
134
                </div>
135
              </li>
136
            </ul>
137
          </div>
138
<!--          *ngIf="numberOfTabs > 0"-->
139
          <div class="uk-padding-remove-left uk-width-1-1 uk-margin-large-top">
140
            <div class="main-tabs-div">
141
              <ng-template #summary_tab>
142
                <div class="uk-grid uk-margin-remove">
143
                 <!-- <div *ngIf="!hasPrimaryInfo" class="uk-width-expand uk-padding">
144
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
145
                      No summary information available
146
                    </div>
147
                  </div>-->
148
                  <div *ngIf="hasPrimaryInfo" class="uk-width-expand uk-padding">
149
                    <!-- Description -->
150
                    <div *ngIf="resultLandingInfo.description" class="uk-margin-medium-bottom">
151
                      <div class="uk-text-justify uk-height-max-medium uk-overflow-auto">
152
                        <div class="uk-text-muted">Abstract</div>
153
                        <span>{{resultLandingInfo.description.substring(0, showNumDescription)}}</span>
154
                        <span *ngIf="showNumDescription == thresholdDescription &&
155
                       resultLandingInfo.description.length > thresholdDescription">...</span>
156
                      </div>
157
                      <div *ngIf="showNumDescription == thresholdDescription &&
158
                    resultLandingInfo.description.length > thresholdDescription" class="uk-text-right">
159
                        <a (click)="showNumDescription = resultLandingInfo.description.length;">
160
                          Read more
161
                        </a>
162
                      </div>
163
                      <div *ngIf="resultLandingInfo.description && showNumDescription > thresholdDescription"
164
                           class="uk-text-right">
165
                        <a (click)="showNumDescription = thresholdDescription;">
166
                          Read less
167
                        </a>
168
                      </div>
169
                    </div>
170
                    <!-- Identifiers -->
171
                    <div *ngIf="resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0"
172
                         class="uk-margin-medium-bottom">
173
                      <showIdentifiers [identifiers]="resultLandingInfo.identifiers"
174
                                       [properties]="properties">
175
                      </showIdentifiers>
176
                    </div>
177
                    <!-- Subjects -->
178
                    <div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||
179
                        resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">
180
                      <showSubjects [subjects]="resultLandingInfo.subjects"
181
                                    [otherSubjects]="resultLandingInfo.otherSubjects"
182
                                    [classifiedSubjects]="resultLandingInfo.classifiedSubjects">
183
                      </showSubjects>
184
                    </div>
185
                    <!-- Related Organizations-->
186
                    <div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"
187
                         class="uk-margin-medium-bottom uk-width-2-3@m">
188
                      <div class="uk-text-muted">Related Organizations</div>
189
                      <ul class="uk-list organizations uk-margin-remove-top">
190
                        <li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
191
                          <a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
192
                            {{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}
193
                            <span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>
194
                          </a>
195
                          <div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
196
                        </li>
197
                      </ul>
198
                      <div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
199
                        <a (click)="showAll = !showAll;">
200
                          View more
201
                        </a>
202
                      </div>
203
                      <div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
204
                        <a (click)="showAll = !showAll;">View less</a>
205
                      </div>
206
                    </div>
207
                  </div>
208
                  <div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">
209
                    <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||
210
                                resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
211
                         class="uk-padding uk-padding-remove-bottom">
212
                      <!-- Funded By -->
213
                      <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0"
214
                           class="uk-margin-medium-bottom">
215
                        <fundedBy [fundedByProjects]="resultLandingInfo.fundedByProjects"></fundedBy>
216
                      </div>
217
                      <!-- Communities -->
218
                      <div *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
219
                           class="uk-margin-medium-bottom">
220
                        <relatedTo [contexts]="resultLandingInfo.contexts"></relatedTo>
221
                      </div>
222
                    </div>
223
                    <!-- Download From -->
224
                    <div
225
                        *ngIf="resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.length > 0"
226
                        class="uk-margin-medium-bottom">
227
                      <div class="sideInfoTitle uk-margin-small-bottom uk-flex">
228
                        <span class="uk-width-1-2">Download from</span>
229
                        <span *ngIf="resultLandingInfo.deletedByInferenceIds"
230
                              class="uk-width-1-2 uk-text-right">
231
                            <a (click)="openDeletedByInference()">View all {{resultLandingInfo.deletedByInferenceIds.length}}
232
                              versions</a>
233
                          </span>
234
                      </div>
235
                      <availableOn [availableOn]="resultLandingInfo.hostedBy_collectedFrom"></availableOn>
236
                    </div>
237
                  </div>
238
                  <div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
239
                       class="uk-width-expand uk-padding">
240
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
241
                      No summary information available
242
                    </div>
243
                  </div>
244
                </div>
245
              </ng-template>
246
              <ng-template #references_tab>
247
                <div class="uk-grid uk-margin-remove">
248
                  <div class="uk-width-expand uk-padding">
249
                    <div>
250
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
251
                                      (pageChange)="updateReferencesPage($event)"
252
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
253
                                      [totalResults]="resultLandingInfo.references.length">
254
                      </no-load-paging>
255
                      <div
256
                          *ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">
257
                        <p *ngIf="item">
258
                          {{item.name}}
259
                          <ng-container *ngIf="item.ids && item.ids.length > 0">
260
                              <span *ngFor="let id of item.ids">
261
                                [<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"
262
                                    target="_blank">{{getReferenceIdName(id)}}</a>
263
                                <a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"
264
                                   [queryParams]="{id: id.value}"
265
                                   target="_blank">OpenAIRE</a>]
266
                              </span>
267
                          </ng-container>
268
                        </p>
269
                      </div>
270
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
271
                                      (pageChange)="updateReferencesPage($event)"
272
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
273
                                      [totalResults]="resultLandingInfo.references.length">
274
                      </no-load-paging>
275
                    </div>
276
                  </div>
277
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
278
                </div>
279
              </ng-template>
280
              <ng-template #supplementary_tab>
281
                <div class="uk-grid uk-margin-remove">
282
                  <div class="uk-width-expand uk-padding">
283
                    <div
284
                        *ngIf="resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0"
285
                        class="uk-margin-bottom">
286
                      <h6>Supplementary Outcomes</h6>
287
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
288
                                      [type]="'research outcomes'"
289
                                      (pageChange)="updateSupplementaryPage($event)"
290
                                      [page]="supplementaryPage" [pageSize]="pageSize"
291
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
292
                      </no-load-paging>
293
                      <ul class="uk-list uk-list-divider uk-margin">
294
                        <li *ngFor="let item of resultLandingInfo.supplementaryResearchResults.slice((supplementaryPage-1)*pageSize, supplementaryPage*pageSize)">
295
                          <result-preview [modal]="relationModal" [properties]="properties"
296
                                          [result]="getResultPreview(item)"></result-preview>
297
                        </li>
298
                      </ul>
299
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
300
                                      [type]="'research outcomes'"
301
                                      (pageChange)="updateSupplementaryPage($event)"
302
                                      [page]="supplementaryPage" [pageSize]="pageSize"
303
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
304
                      </no-load-paging>
305
                    </div>
306
                    <div
307
                        *ngIf="resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0">
308
                      <h6>Outcomes Supplemented by this {{getTypeName()}}</h6>
309
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
310
                                      [type]="'research outcomes'"
311
                                      (pageChange)="updateSupplementedByPage($event)"
312
                                      [page]="supplementedByPage" [pageSize]="pageSize"
313
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
314
                      </no-load-paging>
315
                      <ul class="uk-list uk-list-divider uk-margin">
316
                        <li *ngFor="let item of resultLandingInfo.supplementedByResearchResults.slice((supplementedByPage-1)*pageSize, supplementedByPage*pageSize)">
317
                          <result-preview [modal]="relationModal" [properties]="properties"
318
                                          [result]="getResultPreview(item)"></result-preview>
319
                        </li>
320
                      </ul>
321
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
322
                                      [type]="'research outcomes'"
323
                                      (pageChange)="updateSupplementedByPage($event)"
324
                                      [page]="supplementedByPage" [pageSize]="pageSize"
325
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
326
                      </no-load-paging>
327
                    </div>
328
                  </div>
329
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
330
                </div>
331
              </ng-template>
332
              <ng-template #related_tab>
333
                <div class="uk-grid uk-margin-remove">
334
                  <div class="uk-width-expand uk-padding">
335
                    <div
336
                        *ngIf="resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0"
337
                        class="uk-margin-bottom">
338
                      <h6>Related research</h6>
339
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
340
                                      [type]="'research outcomes'"
341
                                      (pageChange)="updateRelatedPage($event)"
342
                                      [page]="relatedPage" [pageSize]="pageSize"
343
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
344
                      </no-load-paging>
345
                      <ul class="uk-list uk-list-divider uk-margin">
346
                        <li *ngFor="let item of resultLandingInfo.relatedResearchResults.slice((relatedPage-1)*pageSize, relatedPage*pageSize)">
347
                          <result-preview [modal]="relationModal" [properties]="properties"
348
                                          [result]="getResultPreview(item)"></result-preview>
349
                        </li>
350
                      </ul>
351
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
352
                                      [type]="'research outcomes'"
353
                                      (pageChange)="updateRelatedPage($event)"
354
                                      [page]="relatedPage" [pageSize]="pageSize"
355
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
356
                      </no-load-paging>
357
                    </div>
358
                    <div
359
                        *ngIf="resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0">
360
                      <h6>Similar Outcomes</h6>
361
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
362
                                      [type]="'research outcomes'"
363
                                      (pageChange)="updateSimilarPage($event)"
364
                                      [page]="similarPage" [pageSize]="pageSize"
365
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
366
                      </no-load-paging>
367
                      <ul class="uk-list uk-list-divider uk-margin">
368
                        <li *ngFor="let item of resultLandingInfo.similarResearchResults.slice((similarPage-1)*pageSize, similarPage*pageSize)">
369
                          <result-preview [modal]="relationModal" [properties]="properties"
370
                                          [result]="getResultPreview(item)"></result-preview>
371
                        </li>
372
                      </ul>
373
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
374
                                      [type]="'research outcomes'"
375
                                      (pageChange)="updateSimilarPage($event)"
376
                                      [page]="similarPage" [pageSize]="pageSize"
377
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
378
                      </no-load-paging>
379
                    </div>
380
                  </div>
381
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
382
                </div>
383
              </ng-template>
384
              <ng-template #bioentities_tab>
385
                <div class="uk-grid uk-margin-remove">
386
                  <div class="uk-width-expand uk-padding">
387
                    <div>
388
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
389
                                      (pageChange)="updateBioentitiesPage($event)"
390
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
391
                                      [totalResults]="bioentitiesNum">
392
                      </no-load-paging>
393
                      <div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>
394
                        <ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">
395
                          <ng-container
396
                              *ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">
397
                            <div>
398
                              <div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">
399
                                {{keyIn}}
400
                              </div>
401
                              <a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"
402
                                 [title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">
403
                                {{keyIn}}
404
                                <span class="custom-external custom-icon space"></span>
405
                              </a>
406
                            </div>
407
                          </ng-container>
408
                        </ng-container>
409
                      </div>
410
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
411
                                      (pageChange)="updateBioentitiesPage($event)"
412
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
413
                                      [totalResults]="bioentitiesNum">
414
                      </no-load-paging>
415
                    </div>
416
                  </div>
417
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
418
                </div>
419
              </ng-template>
420
              <my-tabs>
421
<!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
422
<!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
423
                <my-tab tabTitle="Summary"
424
                        [tabId]="'summary'" class="uk-active">
425
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
426
                </my-tab>
427
<!--                [class]="(activeTab === 'references')?'uk-active':''"-->
428
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
429
                        [tabTitle]="'references'" [tabId]="'references'"
430
                        [tabNumber]="resultLandingInfo.references.length">
431
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
432
                </my-tab>
433
<!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
434
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
435
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
436
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
437
                        [tabNumber]="supplementaryResults">
438
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
439
                </my-tab>
440
<!--                [class]="(activeTab === 'related')?'uk-active':''"-->
441
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
442
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
443
                        [tabTitle]="'Related research'" [tabId]="'related'"
444
                        [tabNumber]="relatedResultsNum">
445
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
446
                </my-tab>
447
<!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
448
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
449
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
450
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
451
                </my-tab>
452
              </my-tabs>
453
              <my-small-tabs>
454
                <!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
455
                <!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
456
                <my-tab tabTitle="Summary"
457
                        [tabId]="'summary'" class="uk-active">
458
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
459
                </my-tab>
460
                <!--                [class]="(activeTab === 'references')?'uk-active':''"-->
461
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
462
                        [tabTitle]="'references'" [tabId]="'references'"
463
                        [tabNumber]="resultLandingInfo.references.length">
464
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
465
                </my-tab>
466
                <!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
467
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
468
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
469
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
470
                        [tabNumber]="supplementaryResults">
471
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
472
                </my-tab>
473
                <!--                [class]="(activeTab === 'related')?'uk-active':''"-->
474
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
475
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
476
                        [tabTitle]="'Related research'" [tabId]="'related'"
477
                        [tabNumber]="relatedResultsNum">
478
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
479
                </my-tab>
480
                <!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
481
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
482
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
483
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
484
                </my-tab>
485
              </my-small-tabs>
486
            </div>
487
            <div class="uk-margin-small-top uk-flex">
488
              <!-- Last Index Info-->
489
              <div class="uk-width-2-3@m uk-width-1-2">
490
                <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
491
                <span class="uk-margin-small-left uk-text-baseline uk-text-muted">Powered by <a href="https://graph.openaire.eu" class="graph-color">OpenAIRE Research Graph</a></span>
492
                <span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-muted">
493
                . Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
494
              </span>
495
              </div>
496
              <!--Feedback-->
497
              <div class="uk-width-expand uk-text-right">
498
                <span class="uk-text-muted">Any information missing or wrong?</span>
499
                <a (click)="showFeedback = true; scroll()" class="portal-link space">Report an Issue</a>
500
              </div>
501
            </div>
502
            <!-- B2 Note-->
503
            <div *ngIf="properties.b2noteAPIURL && resultLandingInfo" class="uk-margin-medium-top">
504
              <b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (userEmitter)="userInit($event)" (pidEmitter)="pidInit($event)"></b2note>
505
            </div>
506
          </div>
507
        </div>
508
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
509
                [texts]="pageContents['bottom']"></helper>
510
      </div>
511

    
512
    </div>
513
  </div>
514
  <feedback *ngIf="resultLandingInfo" [resultLandingInfo]="resultLandingInfo"
515
            [properties]="properties" [entityType]="getTypeName()" [fields]="feedbackFields"
516
            [showForm]="showFeedback" (show)="showFeedback = $event;"></feedback>
517
</div>
518
<!-- Other versions -->
519
<modal-alert *ngIf="resultLandingInfo && resultLandingInfo.deletedByInferenceIds"
520
             #AlertModalDeletedByInference classBody="uk-width-xxlarge uk-padding-remove-right">
521
  <landing-header [properties]="properties" [title]="resultLandingInfo.title" [modal]="AlertModalDeletedByInference"
522
                  [subTitle]="resultLandingInfo.subtitle" [authorLimit]="10" [showAllAuthors]="false"
523
                  titleClass="title-grey-background"
524
                  [entityType]="getTypeName()" [authors]="resultLandingInfo.authors" [types]="resultLandingInfo.types"
525
                  [year]="resultLandingInfo.date" [embargoEndDate]="resultLandingInfo.embargoEndDate"
526
                  [isTitleH1]="false">
527
  </landing-header>
528
  <div class="uk-margin-medium-top uk-margin-medium-right">
529
    <deletedByInference *ngIf="type == 'publication' && deleteByInferenceOpened"
530
                        [id]="resultLandingInfo.record['result']['header']['dri:objIdentifier']"
531
                        [ids]="resultLandingInfo.deletedByInferenceIds"
532
                        [modal]="AlertModalDeletedByInference"
533
                        [resultType]="type" [type]="'publications'"></deletedByInference>
534
    <deletedByInference *ngIf="type == 'dataset' && deleteByInferenceOpened"
535
                        [id]="resultLandingInfo.record['result']['header']['dri:objIdentifier']"
536
                        [ids]="resultLandingInfo.deletedByInferenceIds"
537
                        [modal]="AlertModalDeletedByInference"
538
                        [resultType]="'dataset'" [type]="'research data'"></deletedByInference>
539
    <deletedByInference *ngIf="type == 'software' && deleteByInferenceOpened"
540
                        [id]="resultLandingInfo.record['result']['header']['dri:objIdentifier']"
541
                        [ids]="resultLandingInfo.deletedByInferenceIds"
542
                        [modal]="AlertModalDeletedByInference"
543
                        [resultType]="type" [type]="'software'"></deletedByInference>
544
    <deletedByInference *ngIf="type == 'orp' && deleteByInferenceOpened"
545
                        [id]="resultLandingInfo.record['result']['header']['dri:objIdentifier']"
546
                        [ids]="resultLandingInfo.deletedByInferenceIds"
547
                        [modal]="AlertModalDeletedByInference"
548
                        [resultType]="'other'" [type]="'other research products'"></deletedByInference>
549
  </div>
550
</modal-alert>
551
<modal-alert #linkModal [classTitle]="'landing-modal-header uk-padding-small'"
552
             [classBody]="'uk-padding-remove landing-modal'">
553
  <div class="uk-grid uk-child-width-1-3 uk-flex uk-flex-middle uk-margin-medium">
554
    <div class="uk-text-center">
555
      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[id,type,'project'])"
556
         routerLinkActive="router-link-active" routerLink="/participate/direct-claim"
557
         (click)="linkModal.cancel();">
558
        <button class="uk-icon-button portal-button">
559
           <span class="uk-icon">
560
                <svg height="20" icon="album" ratio="1" viewBox="0 0 20 20" width="20"
561
                     xmlns="http://www.w3.org/2000/svg"><rect height="1" width="10" x="5" y="2"></rect><rect
562
                    height="1" width="14" x="3" y="4"></rect><rect fill="none" height="11" stroke="#000"
563
                                                                   width="17" x="1.5"
564
                                                                   y="6.5"></rect></svg>
565
           </span>
566
        </button>
567
        <div class="uk-margin-small-top">Projects</div>
568
      </a>
569
    </div>
570
    <div class="uk-text-center">
571
      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[id,type,'result'])"
572
         routerLinkActive="router-link-active" routerLink="/participate/direct-claim"
573
         (click)="linkModal.cancel();">
574
        <button class="uk-icon-button portal-button">
575
            <span class="uk-icon">
576
                 <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
577
                      xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
578
                                                               width="12" x="3.5" y="2.5"></rect><polyline
579
                     fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg>
580
            </span>
581
        </button>
582
        <div class="uk-margin-small-top">Research outcomes</div>
583
      </a></div>
584
    <div class="uk-text-center">
585
      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[id,type,'context'])"
586
         routerLinkActive="router-link-active" routerLink="/participate/direct-claim"
587
         (click)="linkModal.cancel();">
588
        <button class="uk-icon-button portal-button">
589
           <span class="uk-icon">
590
               <svg height="20" icon="users" ratio="1" viewBox="0 0 20 20" width="20"
591
                    xmlns="http://www.w3.org/2000/svg"><circle cx="7.7" cy="8.6" fill="none" r="3.5"
592
                                                               stroke="#000" stroke-width="1.1"></circle><path
593
                   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"
594
                   stroke="#000" stroke-width="1.1"></path><path
595
                   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"
596
                   fill="none" stroke="#000" stroke-width="1.1"></path></svg>
597
           </span>
598
        </button>
599
        <div class="uk-margin-small-top">Communities</div>
600
      </a></div>
601
  </div>
602
</modal-alert>
603
<modal-alert #citeModal [classTitle]="'landing-modal-header uk-padding-small'"
604
             [classBody]="'uk-padding-remove landing-modal'">
605
  <citeThis *ngIf="resultLandingInfo && citeThisClicked" [result]="resultLandingInfo" [id]="id" [type]="title.toLowerCase()"></citeThis>
606
</modal-alert>
607

    
(1-1/4)