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
              <!-- ORCID -->
104
              <li *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore'">
105
                <orcid-work [resultId]="id" [resultLandingInfo]="resultLandingInfo" [pids]="pidsArrayString" [pageType]="'landing'">
106
                </orcid-work>
107
              </li>
108
              <li *ngIf="properties.b2noteAPIURL">
109
                <a *ngIf="isLoggedIn && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
110
                  <span class="uk-icon-button uk-button-primary uk-icon">
111
                    <img src="assets/common-assets/b2note.png">
112
                  </span>
113
                  <span class="uk-margin-small-left">add annotation</span>
114
                </a>
115
                <span *ngIf="!pid || !isLoggedIn" class="uk-link-text uk-text-bold uk-text-uppercase uk-text-muted half-opacity"
116
                      [attr.uk-tooltip]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID':
117
                'Annotations are available only for logged in users'">
118
                  <span class="uk-icon-button uk-button-primary uk-icon uk-disabled">
119
                    <img src="assets/common-assets/b2note.png">
120
                  </span>
121
                  <span class="uk-margin-small-left">add annotation</span>
122
                </span>
123
              </li>
124
              <!-- Metrics -->
125
              <li *ngIf="hasAltMetrics || hasMetrics" class="uk-margin-medium-top">
126
                <div uk-grid
127
                     class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle uk-flex-center uk-padding-remove-left">
128
                  <div *ngIf="hasMetrics" [class.uk-hidden]="!(totalViews && totalDownloads && pageViews)">
129
                    <metrics [pageViews]="pageViews"
130
                             [id]="id" [entityType]="'results'" [entity]="title"
131
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
132
                             (metricsResults)="metricsResults($event)" [properties]=properties>
133
                    </metrics>
134
                  </div>
135
                  <div *ngIf="hasAltMetrics">
136
                    <altmetrics *ngIf="hasAltMetrics" id="{{resultLandingInfo.identifiers.get('doi')[0]}}" type="doi">
137
                    </altmetrics>
138
                  </div>
139
                </div>
140
              </li>
141
            </ul>
142
          </div>
143
<!--          *ngIf="numberOfTabs > 0"-->
144
          <div class="uk-padding-remove-left uk-width-1-1 uk-margin-large-top">
145
            <div class="main-tabs-div">
146
              <ng-template #summary_tab>
147
                <div class="uk-grid uk-margin-remove">
148
                  <div *ngIf="!hasPrimaryInfo && hasSecondaryInfo" class="uk-width-expand uk-padding">
149
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
150
                      No summary information available
151
                    </div>
152
                  </div>
153
                  <div *ngIf="hasPrimaryInfo" class="uk-width-expand uk-padding">
154
                    <!-- Description -->
155
                    <div *ngIf="resultLandingInfo.description" class="uk-margin-medium-bottom">
156
                      <div class="uk-text-justify uk-height-max-medium uk-overflow-auto">
157
                        <div class="uk-text-muted">Abstract</div>
158
                        <span>{{resultLandingInfo.description.substring(0, showNumDescription)}}</span>
159
                        <span *ngIf="showNumDescription == thresholdDescription &&
160
                       resultLandingInfo.description.length > thresholdDescription">...</span>
161
                      </div>
162
                      <div *ngIf="showNumDescription == thresholdDescription &&
163
                    resultLandingInfo.description.length > thresholdDescription" class="uk-text-right">
164
                        <a (click)="showNumDescription = resultLandingInfo.description.length;">
165
                          Read more
166
                        </a>
167
                      </div>
168
                      <div *ngIf="resultLandingInfo.description && showNumDescription > thresholdDescription"
169
                           class="uk-text-right">
170
                        <a (click)="showNumDescription = thresholdDescription;">
171
                          Read less
172
                        </a>
173
                      </div>
174
                    </div>
175
                    <!-- Identifiers -->
176
                    <div *ngIf="resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0"
177
                         class="uk-margin-medium-bottom">
178
                      <showIdentifiers [identifiers]="resultLandingInfo.identifiers"
179
                                       [properties]="properties">
180
                      </showIdentifiers>
181
                    </div>
182
                    <!-- Subjects -->
183
                    <div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||
184
                        resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">
185
                      <showSubjects [subjects]="resultLandingInfo.subjects"
186
                                    [otherSubjects]="resultLandingInfo.otherSubjects"
187
                                    [classifiedSubjects]="resultLandingInfo.classifiedSubjects">
188
                      </showSubjects>
189
                    </div>
190
                    <!-- Related Organizations-->
191
                    <div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"
192
                         class="uk-margin-medium-bottom uk-width-2-3@m">
193
                      <div class="uk-text-muted">Related Organizations</div>
194
                      <ul class="uk-list organizations uk-margin-remove-top">
195
                        <li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
196
                          <a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
197
                            {{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}
198
                            <span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>
199
                          </a>
200
                          <div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
201
                        </li>
202
                      </ul>
203
                      <div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
204
                        <a (click)="showAll = !showAll;">
205
                          View more
206
                        </a>
207
                      </div>
208
                      <div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
209
                        <a (click)="showAll = !showAll;">View less</a>
210
                      </div>
211
                    </div>
212
                  </div>
213
                  <div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">
214
                    <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||
215
                                resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
216
                         class="uk-padding uk-padding-remove-bottom">
217
                      <!-- Funded By -->
218
                      <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0"
219
                           class="uk-margin-medium-bottom">
220
                        <fundedBy [fundedByProjects]="resultLandingInfo.fundedByProjects"></fundedBy>
221
                      </div>
222
                      <!-- Communities -->
223
                      <div *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
224
                           class="uk-margin-medium-bottom">
225
                        <relatedTo [contexts]="resultLandingInfo.contexts"></relatedTo>
226
                      </div>
227
                    </div>
228
                    <!-- Download From -->
229
                    <div
230
                        *ngIf="resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.length > 0"
231
                        class="uk-margin-medium-bottom">
232
                      <div class="sideInfoTitle uk-margin-small-bottom uk-flex">
233
                        <span class="uk-width-1-2">Download from</span>
234
                        <span *ngIf="resultLandingInfo.deletedByInferenceIds"
235
                              class="uk-width-1-2 uk-text-right">
236
                            <a (click)="openDeletedByInference()">View all {{resultLandingInfo.deletedByInferenceIds.length}}
237
                              versions</a>
238
                          </span>
239
                      </div>
240
                      <availableOn [availableOn]="resultLandingInfo.hostedBy_collectedFrom"></availableOn>
241
                    </div>
242
                  </div>
243
                  <div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
244
                       class="uk-width-expand uk-padding">
245
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
246
                      No summary information available
247
                    </div>
248
                  </div>
249
                </div>
250
              </ng-template>
251
              <ng-template #references_tab>
252
                <div class="uk-grid uk-margin-remove">
253
                  <div class="uk-width-expand uk-padding">
254
                    <div>
255
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
256
                                      (pageChange)="updateReferencesPage($event)"
257
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
258
                                      [totalResults]="resultLandingInfo.references.length">
259
                      </no-load-paging>
260
                      <div
261
                          *ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">
262
                        <p *ngIf="item">
263
                          {{item.name}}
264
                          <ng-container *ngIf="item.ids && item.ids.length > 0">
265
                              <span *ngFor="let id of item.ids">
266
                                [<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"
267
                                    target="_blank">{{getReferenceIdName(id)}}</a>
268
                                <a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"
269
                                   [queryParams]="{id: id.value}"
270
                                   target="_blank">OpenAIRE</a>]
271
                              </span>
272
                          </ng-container>
273
                        </p>
274
                      </div>
275
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
276
                                      (pageChange)="updateReferencesPage($event)"
277
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
278
                                      [totalResults]="resultLandingInfo.references.length">
279
                      </no-load-paging>
280
                    </div>
281
                  </div>
282
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
283
                </div>
284
              </ng-template>
285
              <ng-template #supplementary_tab>
286
                <div class="uk-grid uk-margin-remove">
287
                  <div class="uk-width-expand uk-padding">
288
                    <div
289
                        *ngIf="resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0"
290
                        class="uk-margin-bottom">
291
                      <h6>Supplementary Outcomes</h6>
292
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
293
                                      [type]="'research outcomes'"
294
                                      (pageChange)="updateSupplementaryPage($event)"
295
                                      [page]="supplementaryPage" [pageSize]="pageSize"
296
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
297
                      </no-load-paging>
298
                      <ul class="uk-list uk-list-divider uk-margin">
299
                        <li *ngFor="let item of resultLandingInfo.supplementaryResearchResults.slice((supplementaryPage-1)*pageSize, supplementaryPage*pageSize)">
300
                          <result-preview [modal]="relationModal" [properties]="properties"
301
                                          [result]="getResultPreview(item)"></result-preview>
302
                        </li>
303
                      </ul>
304
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
305
                                      [type]="'research outcomes'"
306
                                      (pageChange)="updateSupplementaryPage($event)"
307
                                      [page]="supplementaryPage" [pageSize]="pageSize"
308
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
309
                      </no-load-paging>
310
                    </div>
311
                    <div
312
                        *ngIf="resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0">
313
                      <h6>Outcomes Supplemented by this {{getTypeName()}}</h6>
314
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
315
                                      [type]="'research outcomes'"
316
                                      (pageChange)="updateSupplementedByPage($event)"
317
                                      [page]="supplementedByPage" [pageSize]="pageSize"
318
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
319
                      </no-load-paging>
320
                      <ul class="uk-list uk-list-divider uk-margin">
321
                        <li *ngFor="let item of resultLandingInfo.supplementedByResearchResults.slice((supplementedByPage-1)*pageSize, supplementedByPage*pageSize)">
322
                          <result-preview [modal]="relationModal" [properties]="properties"
323
                                          [result]="getResultPreview(item)"></result-preview>
324
                        </li>
325
                      </ul>
326
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
327
                                      [type]="'research outcomes'"
328
                                      (pageChange)="updateSupplementedByPage($event)"
329
                                      [page]="supplementedByPage" [pageSize]="pageSize"
330
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
331
                      </no-load-paging>
332
                    </div>
333
                  </div>
334
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
335
                </div>
336
              </ng-template>
337
              <ng-template #related_tab>
338
                <div class="uk-grid uk-margin-remove">
339
                  <div class="uk-width-expand uk-padding">
340
                    <div
341
                        *ngIf="resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0"
342
                        class="uk-margin-bottom">
343
                      <h6>Related research</h6>
344
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
345
                                      [type]="'research outcomes'"
346
                                      (pageChange)="updateRelatedPage($event)"
347
                                      [page]="relatedPage" [pageSize]="pageSize"
348
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
349
                      </no-load-paging>
350
                      <ul class="uk-list uk-list-divider uk-margin">
351
                        <li *ngFor="let item of resultLandingInfo.relatedResearchResults.slice((relatedPage-1)*pageSize, relatedPage*pageSize)">
352
                          <result-preview [modal]="relationModal" [properties]="properties"
353
                                          [result]="getResultPreview(item)"></result-preview>
354
                        </li>
355
                      </ul>
356
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
357
                                      [type]="'research outcomes'"
358
                                      (pageChange)="updateRelatedPage($event)"
359
                                      [page]="relatedPage" [pageSize]="pageSize"
360
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
361
                      </no-load-paging>
362
                    </div>
363
                    <div
364
                        *ngIf="resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0">
365
                      <h6>Similar Outcomes</h6>
366
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
367
                                      [type]="'research outcomes'"
368
                                      (pageChange)="updateSimilarPage($event)"
369
                                      [page]="similarPage" [pageSize]="pageSize"
370
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
371
                      </no-load-paging>
372
                      <ul class="uk-list uk-list-divider uk-margin">
373
                        <li *ngFor="let item of resultLandingInfo.similarResearchResults.slice((similarPage-1)*pageSize, similarPage*pageSize)">
374
                          <result-preview [modal]="relationModal" [properties]="properties"
375
                                          [result]="getResultPreview(item)"></result-preview>
376
                        </li>
377
                      </ul>
378
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
379
                                      [type]="'research outcomes'"
380
                                      (pageChange)="updateSimilarPage($event)"
381
                                      [page]="similarPage" [pageSize]="pageSize"
382
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
383
                      </no-load-paging>
384
                    </div>
385
                  </div>
386
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
387
                </div>
388
              </ng-template>
389
              <ng-template #bioentities_tab>
390
                <div class="uk-grid uk-margin-remove">
391
                  <div class="uk-width-expand uk-padding">
392
                    <div>
393
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
394
                                      (pageChange)="updateBioentitiesPage($event)"
395
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
396
                                      [totalResults]="bioentitiesNum">
397
                      </no-load-paging>
398
                      <div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>
399
                        <ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">
400
                          <ng-container
401
                              *ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">
402
                            <div>
403
                              <div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">
404
                                {{keyIn}}
405
                              </div>
406
                              <a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"
407
                                 [title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">
408
                                {{keyIn}}
409
                                <span class="custom-external custom-icon space"></span>
410
                              </a>
411
                            </div>
412
                          </ng-container>
413
                        </ng-container>
414
                      </div>
415
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
416
                                      (pageChange)="updateBioentitiesPage($event)"
417
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
418
                                      [totalResults]="bioentitiesNum">
419
                      </no-load-paging>
420
                    </div>
421
                  </div>
422
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
423
                </div>
424
              </ng-template>
425
              <my-tabs>
426
<!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
427
<!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
428
                <my-tab tabTitle="Summary"
429
                        [tabId]="'summary'" class="uk-active">
430
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
431
                </my-tab>
432
<!--                [class]="(activeTab === 'references')?'uk-active':''"-->
433
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
434
                        [tabTitle]="'references'" [tabId]="'references'"
435
                        [tabNumber]="resultLandingInfo.references.length">
436
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
437
                </my-tab>
438
<!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
439
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
440
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
441
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
442
                        [tabNumber]="supplementaryResults">
443
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
444
                </my-tab>
445
<!--                [class]="(activeTab === 'related')?'uk-active':''"-->
446
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
447
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
448
                        [tabTitle]="'Related research'" [tabId]="'related'"
449
                        [tabNumber]="relatedResultsNum">
450
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
451
                </my-tab>
452
<!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
453
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
454
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
455
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
456
                </my-tab>
457
              </my-tabs>
458
              <my-small-tabs>
459
                <!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
460
                <!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
461
                <my-tab tabTitle="Summary"
462
                        [tabId]="'summary'" class="uk-active">
463
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
464
                </my-tab>
465
                <!--                [class]="(activeTab === 'references')?'uk-active':''"-->
466
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
467
                        [tabTitle]="'references'" [tabId]="'references'"
468
                        [tabNumber]="resultLandingInfo.references.length">
469
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
470
                </my-tab>
471
                <!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
472
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
473
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
474
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
475
                        [tabNumber]="supplementaryResults">
476
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
477
                </my-tab>
478
                <!--                [class]="(activeTab === 'related')?'uk-active':''"-->
479
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
480
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
481
                        [tabTitle]="'Related research'" [tabId]="'related'"
482
                        [tabNumber]="relatedResultsNum">
483
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
484
                </my-tab>
485
                <!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
486
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
487
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
488
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
489
                </my-tab>
490
              </my-small-tabs>
491
            </div>
492
            <div class="uk-margin-small-top uk-flex">
493
              <!-- Last Index Info-->
494
              <div class="uk-width-2-3@m uk-width-1-2">
495
                <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
496
                <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>
497
                <span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-muted">
498
                . Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
499
              </span>
500
              </div>
501
              <!--Feedback-->
502
              <div class="uk-width-expand uk-text-right">
503
                <span class="uk-text-muted">Any information missing or wrong?</span>
504
                <a (click)="showFeedback = true; scroll()" class="portal-link space">Report an Issue</a>
505
              </div>
506
            </div>
507
            <!-- B2 Note-->
508
            <div *ngIf="properties.b2noteAPIURL && resultLandingInfo" class="uk-margin-medium-top">
509
              <b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (pidEmitter)="pidInit($event)"></b2note>
510
            </div>
511
          </div>
512
        </div>
513
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
514
                [texts]="pageContents['bottom']"></helper>
515
      </div>
516

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

    
(1-1/4)