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.adminToolsPortalType == 'explore'">
105
                <orcid-work [resultId]="id" [resultTitle]="resultLandingInfo.title" [resultLandingInfo]="resultLandingInfo"
106
                            [pids]="pidsArrayString" [pageType]="'landing'">
107
                </orcid-work>
108
              </li>
109
              <li *ngIf="properties.b2noteAPIURL">
110
                <a *ngIf="isLoggedIn && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
111
                  <span class="uk-icon-button uk-button-primary uk-icon">
112
                    <img src="assets/common-assets/b2note.png">
113
                  </span>
114
                  <span class="uk-margin-small-left">add annotation</span>
115
                </a>
116
                <span *ngIf="!pid || !isLoggedIn" class="uk-link-text uk-text-bold uk-text-uppercase uk-text-muted half-opacity"
117
                      [attr.uk-tooltip]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID':
118
                'Annotations are available only for logged in users'">
119
                  <span class="uk-icon-button uk-button-primary uk-icon uk-disabled">
120
                    <img src="assets/common-assets/b2note.png">
121
                  </span>
122
                  <span class="uk-margin-small-left">add annotation</span>
123
                </span>
124
              </li>
125
              <!-- Metrics -->
126
              <li *ngIf="hasAltMetrics || hasMetrics" class="uk-margin-medium-top">
127
                <div uk-grid
128
                     class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle uk-flex-center uk-padding-remove-left">
129
                  <div *ngIf="hasMetrics" [class.uk-hidden]="!(totalViews && totalDownloads && pageViews)">
130
                    <metrics [pageViews]="pageViews"
131
                             [id]="id" [entityType]="'results'" [entity]="title"
132
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
133
                             (metricsResults)="metricsResults($event)" [properties]=properties>
134
                    </metrics>
135
                  </div>
136
                  <div *ngIf="hasAltMetrics">
137
                    <altmetrics *ngIf="hasAltMetrics" id="{{resultLandingInfo.identifiers.get('doi')[0]}}" type="doi">
138
                    </altmetrics>
139
                  </div>
140
                </div>
141
              </li>
142
            </ul>
143
          </div>
144
<!--          *ngIf="numberOfTabs > 0"-->
145
          <div class="uk-padding-remove-left uk-width-1-1 uk-margin-large-top">
146
            <div class="main-tabs-div">
147
              <ng-template #summary_tab>
148
                <div class="uk-grid uk-margin-remove">
149
                  <div *ngIf="!hasPrimaryInfo && hasSecondaryInfo" class="uk-width-expand uk-padding">
150
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
151
                      No summary information available
152
                    </div>
153
                  </div>
154
                  <div *ngIf="hasPrimaryInfo" class="uk-width-expand uk-padding">
155
                    <!-- Description -->
156
                    <div *ngIf="resultLandingInfo.description" class="uk-margin-medium-bottom">
157
                      <div class="uk-text-justify uk-height-max-medium uk-overflow-auto">
158
                        <div class="uk-text-muted">Abstract</div>
159
                        <span>{{resultLandingInfo.description.substring(0, showNumDescription)}}</span>
160
                        <span *ngIf="showNumDescription == thresholdDescription &&
161
                       resultLandingInfo.description.length > thresholdDescription">...</span>
162
                      </div>
163
                      <div *ngIf="showNumDescription == thresholdDescription &&
164
                    resultLandingInfo.description.length > thresholdDescription" class="uk-text-right">
165
                        <a (click)="showNumDescription = resultLandingInfo.description.length;">
166
                          Read more
167
                        </a>
168
                      </div>
169
                      <div *ngIf="resultLandingInfo.description && showNumDescription > thresholdDescription"
170
                           class="uk-text-right">
171
                        <a (click)="showNumDescription = thresholdDescription;">
172
                          Read less
173
                        </a>
174
                      </div>
175
                    </div>
176
                    <!-- Identifiers -->
177
                    <div *ngIf="resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0"
178
                         class="uk-margin-medium-bottom">
179
                      <showIdentifiers [identifiers]="resultLandingInfo.identifiers"
180
                                       [properties]="properties">
181
                      </showIdentifiers>
182
                    </div>
183
                    <!-- Subjects -->
184
                    <div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||
185
                        resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">
186
                      <showSubjects [subjects]="resultLandingInfo.subjects"
187
                                    [otherSubjects]="resultLandingInfo.otherSubjects"
188
                                    [classifiedSubjects]="resultLandingInfo.classifiedSubjects">
189
                      </showSubjects>
190
                    </div>
191
                    <!-- Related Organizations-->
192
                    <div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"
193
                         class="uk-margin-medium-bottom uk-width-2-3@m">
194
                      <div class="uk-text-muted">Related Organizations</div>
195
                      <ul class="uk-list organizations uk-margin-remove-top">
196
                        <li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
197
                          <a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
198
                            {{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}
199
                            <span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>
200
                          </a>
201
                          <div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
202
                        </li>
203
                      </ul>
204
                      <div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
205
                        <a (click)="showAll = !showAll;">
206
                          View more
207
                        </a>
208
                      </div>
209
                      <div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
210
                        <a (click)="showAll = !showAll;">View less</a>
211
                      </div>
212
                    </div>
213

    
214
                  </div>
215
                  <div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">
216
                    <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||
217
                                resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
218
                         class="uk-padding uk-padding-remove-bottom">
219
                      <!-- Funded By -->
220
                      <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0"
221
                           class="uk-margin-medium-bottom">
222
                        <fundedBy [fundedByProjects]="resultLandingInfo.fundedByProjects"></fundedBy>
223
                      </div>
224
                      <!-- Communities -->
225
                      <div *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length >0"
226
                           class="uk-margin-medium-bottom">
227
                        <relatedTo [contexts]="resultLandingInfo.contexts"></relatedTo>
228
                      </div>
229
                    </div>
230
                    <!-- Download From -->
231
                    <div
232
                        *ngIf="resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.length > 0"
233
                        class="uk-margin-medium-bottom">
234
                      <div class="sideInfoTitle uk-margin-small-bottom uk-flex">
235
                        <span class="uk-width-1-2">Download from</span>
236
                        <span *ngIf="resultLandingInfo.deletedByInferenceIds"
237
                              class="uk-width-1-2 uk-text-right">
238
                            <a (click)="openDeletedByInference()">View all {{resultLandingInfo.deletedByInferenceIds.length}}
239
                              versions</a>
240
                          </span>
241
                      </div>
242
                      <availableOn [availableOn]="resultLandingInfo.hostedBy_collectedFrom"></availableOn>
243
                    </div>
244
                  </div>
245
                  <div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
246
                       class="uk-width-expand uk-padding">
247
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
248
                      No summary information available
249
                    </div>
250
                  </div>
251
                </div>
252
              </ng-template>
253
              <ng-template #references_tab>
254
                <div class="uk-grid uk-margin-remove">
255
                  <div class="uk-width-expand uk-padding">
256
                    <div>
257
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
258
                                      (pageChange)="updateReferencesPage($event)"
259
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
260
                                      [totalResults]="resultLandingInfo.references.length">
261
                      </no-load-paging>
262
                      <div
263
                          *ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">
264
                        <p *ngIf="item">
265
                          {{item.name}}
266
                          <ng-container *ngIf="item.ids && item.ids.length > 0">
267
                              <span *ngFor="let id of item.ids">
268
                                [<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"
269
                                    target="_blank">{{getReferenceIdName(id)}}</a>
270
                                <a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"
271
                                   [queryParams]="{id: id.value}"
272
                                   target="_blank">OpenAIRE</a>]
273
                              </span>
274
                          </ng-container>
275
                        </p>
276
                      </div>
277
                      <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
278
                                      (pageChange)="updateReferencesPage($event)"
279
                                      [page]="referencesPage" [pageSize]="1.5*pageSize"
280
                                      [totalResults]="resultLandingInfo.references.length">
281
                      </no-load-paging>
282
                    </div>
283
                  </div>
284
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
285
                </div>
286
              </ng-template>
287
              <ng-template #supplementary_tab>
288
                <div class="uk-grid uk-margin-remove">
289
                  <div class="uk-width-expand uk-padding">
290
                    <div
291
                        *ngIf="resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0"
292
                        class="uk-margin-bottom">
293
                      <h6>Supplementary Outcomes</h6>
294
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
295
                                      [type]="'research outcomes'"
296
                                      (pageChange)="updateSupplementaryPage($event)"
297
                                      [page]="supplementaryPage" [pageSize]="pageSize"
298
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
299
                      </no-load-paging>
300
                      <ul class="uk-list uk-list-divider uk-margin">
301
                        <li *ngFor="let item of resultLandingInfo.supplementaryResearchResults.slice((supplementaryPage-1)*pageSize, supplementaryPage*pageSize)">
302
                          <result-preview [modal]="relationModal" [properties]="properties"
303
                                          [result]="getResultPreview(item)"></result-preview>
304
                        </li>
305
                      </ul>
306
                      <no-load-paging *ngIf="resultLandingInfo.supplementaryResearchResults.length > pageSize"
307
                                      [type]="'research outcomes'"
308
                                      (pageChange)="updateSupplementaryPage($event)"
309
                                      [page]="supplementaryPage" [pageSize]="pageSize"
310
                                      [totalResults]="resultLandingInfo.supplementaryResearchResults.length">
311
                      </no-load-paging>
312
                    </div>
313
                    <div
314
                        *ngIf="resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0">
315
                      <h6>Outcomes Supplemented by this {{getTypeName()}}</h6>
316
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
317
                                      [type]="'research outcomes'"
318
                                      (pageChange)="updateSupplementedByPage($event)"
319
                                      [page]="supplementedByPage" [pageSize]="pageSize"
320
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
321
                      </no-load-paging>
322
                      <ul class="uk-list uk-list-divider uk-margin">
323
                        <li *ngFor="let item of resultLandingInfo.supplementedByResearchResults.slice((supplementedByPage-1)*pageSize, supplementedByPage*pageSize)">
324
                          <result-preview [modal]="relationModal" [properties]="properties"
325
                                          [result]="getResultPreview(item)"></result-preview>
326
                        </li>
327
                      </ul>
328
                      <no-load-paging *ngIf="resultLandingInfo.supplementedByResearchResults.length > pageSize"
329
                                      [type]="'research outcomes'"
330
                                      (pageChange)="updateSupplementedByPage($event)"
331
                                      [page]="supplementedByPage" [pageSize]="pageSize"
332
                                      [totalResults]="resultLandingInfo.supplementedByResearchResults.length">
333
                      </no-load-paging>
334
                    </div>
335
                  </div>
336
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
337
                </div>
338
              </ng-template>
339
              <ng-template #related_tab>
340
                <div class="uk-grid uk-margin-remove">
341
                  <div class="uk-width-expand uk-padding">
342
                    <div
343
                        *ngIf="resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0"
344
                        class="uk-margin-bottom">
345
                      <h6>Related research</h6>
346
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
347
                                      [type]="'research outcomes'"
348
                                      (pageChange)="updateRelatedPage($event)"
349
                                      [page]="relatedPage" [pageSize]="pageSize"
350
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
351
                      </no-load-paging>
352
                      <ul class="uk-list uk-list-divider uk-margin">
353
                        <li *ngFor="let item of resultLandingInfo.relatedResearchResults.slice((relatedPage-1)*pageSize, relatedPage*pageSize)">
354
                          <result-preview [modal]="relationModal" [properties]="properties"
355
                                          [result]="getResultPreview(item)"></result-preview>
356
                        </li>
357
                      </ul>
358
                      <no-load-paging *ngIf="resultLandingInfo.relatedResearchResults.length > pageSize"
359
                                      [type]="'research outcomes'"
360
                                      (pageChange)="updateRelatedPage($event)"
361
                                      [page]="relatedPage" [pageSize]="pageSize"
362
                                      [totalResults]="resultLandingInfo.relatedResearchResults.length">
363
                      </no-load-paging>
364
                    </div>
365
                    <div
366
                        *ngIf="resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0">
367
                      <h6>Similar Outcomes</h6>
368
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
369
                                      [type]="'research outcomes'"
370
                                      (pageChange)="updateSimilarPage($event)"
371
                                      [page]="similarPage" [pageSize]="pageSize"
372
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
373
                      </no-load-paging>
374
                      <ul class="uk-list uk-list-divider uk-margin">
375
                        <li *ngFor="let item of resultLandingInfo.similarResearchResults.slice((similarPage-1)*pageSize, similarPage*pageSize)">
376
                          <result-preview [modal]="relationModal" [properties]="properties"
377
                                          [result]="getResultPreview(item)"></result-preview>
378
                        </li>
379
                      </ul>
380
                      <no-load-paging *ngIf="resultLandingInfo.similarResearchResults.length > pageSize"
381
                                      [type]="'research outcomes'"
382
                                      (pageChange)="updateSimilarPage($event)"
383
                                      [page]="similarPage" [pageSize]="pageSize"
384
                                      [totalResults]="resultLandingInfo.similarResearchResults.length">
385
                      </no-load-paging>
386
                    </div>
387
                  </div>
388
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
389
                </div>
390
              </ng-template>
391
              <ng-template #bioentities_tab>
392
                <div class="uk-grid uk-margin-remove">
393
                  <div class="uk-width-expand uk-padding">
394
                    <div>
395
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
396
                                      (pageChange)="updateBioentitiesPage($event)"
397
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
398
                                      [totalResults]="bioentitiesNum">
399
                      </no-load-paging>
400
                      <div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>
401
                        <ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">
402
                          <ng-container
403
                              *ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">
404
                            <div>
405
                              <div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">
406
                                {{keyIn}}
407
                              </div>
408
                              <a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"
409
                                 [title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">
410
                                {{keyIn}}
411
                                <span class="custom-external custom-icon space"></span>
412
                              </a>
413
                            </div>
414
                          </ng-container>
415
                        </ng-container>
416
                      </div>
417
                      <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
418
                                      (pageChange)="updateBioentitiesPage($event)"
419
                                      [page]="bioentitiesPage" [pageSize]="2*pageSize"
420
                                      [totalResults]="bioentitiesNum">
421
                      </no-load-paging>
422
                    </div>
423
                  </div>
424
                  <!--<div class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove"></div>-->
425
                </div>
426
              </ng-template>
427
              <ng-template #enermaps_tab>
428
                <div class="uk-padding">
429
                  <div   class=" uk-inline uk-width-expand  uk-text-center ">
430
                    <img  class="uk-width-auto" [src]="properties.enermapsURL +'/images/' + enermapsId + '.png'" alt="Enermaps tool preview">
431
                    <div class="uk-overlay uk-overlay-default uk-position-bottom">
432
                      <p>Visit <a
433
                        class=" uk-margin-right uk-margin-small-top"
434
                        [href]="properties.enermapsURL" target="_blank" >
435
                        Enermaps tool <span class="custom-external custom-icon space"></span>
436
                      </a></p>
437
                    </div>
438
                </div>
439
              </div>
440

    
441
              </ng-template>
442
              <my-tabs>
443
<!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
444
<!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
445
                <my-tab tabTitle="Summary"
446
                        [tabId]="'summary'" class="uk-active">
447
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
448
                </my-tab>
449
<!--                [class]="(activeTab === 'references')?'uk-active':''"-->
450
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
451
                        [tabTitle]="'references'" [tabId]="'references'"
452
                        [tabNumber]="resultLandingInfo.references.length">
453
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
454
                </my-tab>
455
<!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
456
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
457
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
458
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
459
                        [tabNumber]="supplementaryResults">
460
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
461
                </my-tab>
462
<!--                [class]="(activeTab === 'related')?'uk-active':''"-->
463
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
464
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
465
                        [tabTitle]="'Related research'" [tabId]="'related'"
466
                        [tabNumber]="relatedResultsNum">
467
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
468
                </my-tab>
469
<!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
470
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
471
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
472
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
473
                </my-tab>
474
                <my-tab *ngIf="enermapsId && properties.enermapsURL"
475
                        [tabTitle]="'Enermaps Tool'" [tabId]="'enermaps'"
476
                        customClass="portalTab">
477
                  <ng-container *ngTemplateOutlet="enermaps_tab;"></ng-container>
478
                </my-tab>
479
              </my-tabs>
480
              <my-small-tabs>
481
                <!--                *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
482
                <!--                [class]="(activeTab === 'summary')?'uk-active':''"-->
483
                <my-tab tabTitle="Summary"
484
                        [tabId]="'summary'" class="uk-active">
485
                  <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
486
                </my-tab>
487
                <!--                [class]="(activeTab === 'references')?'uk-active':''"-->
488
                <my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
489
                        [tabTitle]="'references'" [tabId]="'references'"
490
                        [tabNumber]="resultLandingInfo.references.length">
491
                  <ng-container *ngTemplateOutlet="references_tab;"></ng-container>
492
                </my-tab>
493
                <!--                [class]="(activeTab === 'supplementary')?'uk-active':''"-->
494
                <my-tab *ngIf="(resultLandingInfo.supplementaryResearchResults && resultLandingInfo.supplementaryResearchResults.length > 0) ||
495
                        (resultLandingInfo.supplementedByResearchResults && resultLandingInfo.supplementedByResearchResults.length > 0)"
496
                        [tabTitle]="'Supplementary outcomes'" [tabId]="'supplementary'"
497
                        [tabNumber]="supplementaryResults">
498
                  <ng-container *ngTemplateOutlet="supplementary_tab;"></ng-container>
499
                </my-tab>
500
                <!--                [class]="(activeTab === 'related')?'uk-active':''"-->
501
                <my-tab *ngIf="(resultLandingInfo.relatedResearchResults && resultLandingInfo.relatedResearchResults.length > 0) ||
502
                        (resultLandingInfo.similarResearchResults && resultLandingInfo.similarResearchResults.length > 0)"
503
                        [tabTitle]="'Related research'" [tabId]="'related'"
504
                        [tabNumber]="relatedResultsNum">
505
                  <ng-container *ngTemplateOutlet="related_tab;"></ng-container>
506
                </my-tab>
507
                <!--                [class]="(activeTab === 'bioentities')?'uk-active':''"-->
508
                <my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
509
                        [tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
510
                  <ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
511
                </my-tab>
512
                <my-tab *ngIf="enermapsId && properties.enermapsURL"
513
                        [tabTitle]="'Enermaps Tool'" [tabId]="'enermaps'"
514
                        customClass="portalTab">
515
                  <ng-container *ngTemplateOutlet="enermaps_tab;"></ng-container>
516
                </my-tab>
517
              </my-small-tabs>
518
            </div>
519
            <div class="uk-margin-small-top uk-flex">
520
              <!-- Last Index Info-->
521
              <div class="uk-width-2-3@m uk-width-1-2">
522
                <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
523
                <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>
524
                <span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-muted">
525
                . Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
526
              </span>
527
              </div>
528
              <!--Feedback-->
529
              <div class="uk-width-expand uk-text-right">
530
                <span class="uk-text-muted">Any information missing or wrong?</span>
531
                <a (click)="showFeedback = true; scroll()" class="portal-link space">Report an Issue</a>
532
              </div>
533
            </div>
534
            <!-- B2 Note-->
535
            <div *ngIf="properties.b2noteAPIURL && resultLandingInfo" class="uk-margin-medium-top">
536
              <b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (pidEmitter)="pidInit($event)"></b2note>
537
            </div>
538
          </div>
539
        </div>
540
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
541
                [texts]="pageContents['bottom']"></helper>
542
      </div>
543

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

    
(1-1/4)