Project

General

Profile

1
<ng-template #share_research_results_box
2
             let-dynamic_content="dynamic_content">
3
  <ul class="uk-list uk-margin-remove-bottom">
4
<!--    class="uk-margin-top"-->
5
    <li>
6
<!--      <a class="clickable"-->
7
<!--         uk-toggle="target: #dynamic_content_id; animation:uk-animation-fade"><span-->
8
<!--        class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20"-->
9
<!--                             xmlns="http://www.w3.org/2000/svg" icon="code" ratio="1"><polyline-->
10
<!--        fill="none" stroke="#000" stroke-width="1.01" points="13,4 19,10 13,16"></polyline><polyline-->
11
<!--        fill="none" stroke="#000" stroke-width="1.01"-->
12
<!--        points="7,4 1,10 7,16"></polyline></svg></span> Include in your site (HTML)</a>-->
13
<!--      hidden class="uk-margin-small-top"-->
14
      <div id="dynamic_content_id">
15
        <pre class="box-content uk-padding-remove-bottom uk-margin-remove-bottom"><code
16
          id="clipboard">{{dynamic_content}}</code></pre>
17
        <div class="uk-grid uk-margin-small-top">
18
          <a
19
            class="clipboard_btn uk-padding-remove-left uk-margin-small-left uk-text-right uk-width-1-1"
20
            data-clipboard-target="#clipboard" title="Copy to clipboard">
21
            <button class="uk-button uk-button-small uk-button-secondary uk-icon">
22
              <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="copy" ratio="1">
23
                <rect fill="none" stroke="#000" x="3.5" y="2.5" width="12" height="16"></rect>
24
                <polyline fill="none" stroke="#000" points="5 0.5 17.5 0.5 17.5 17"></polyline>
25
              </svg>
26
              <span class="uk-margin-small-left">COPY</span>
27
            </button>
28
          </a>
29
        </div>
30
        <div class="uk-text-small uk-margin-small-top">
31
          For further information contact us at
32
          <u><a [href]="'mailto:'+properties.helpdeskEmail" class="uk-link-text">{{properties.helpdeskEmail}}</a></u>
33
        </div>
34

    
35
      </div>
36
    </li>
37
  </ul>
38
</ng-template>
39
<ng-template #download_research_results_box
40
             let-type="type" let-fileName_type="fileName_type" let-csvParams="csvParams">
41
  <ul class="uk-list uk-margin-remove-bottom">
42
<!--    class="uk-margin-top"-->
43
    <li>
44
      <a class="clickable"
45
         (click)="downloadHtmlFile(type, 'funder-'+fileName_type+'-report')">
46
<!--         target="_blank"-->
47
<!--         href="/project-report?projectId={{projectId}}&size={{fetch.searchUtils.totalResults}}&type={{type}}">-->
48
<!--        <span class="uk-icon">-->
49
<!--          <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="code" ratio="1">-->
50
<!--            <polyline fill="none" stroke="#000" stroke-width="1.01" points="13,4 19,10 13,16"></polyline>-->
51
<!--            <polyline fill="none" stroke="#000" stroke-width="1.01" points="7,4 1,10 7,16"></polyline></svg>-->
52
<!--        </span>-->
53
        <span class="uk-icon">
54
          <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="download" ratio="1">
55
            <polyline fill="none" stroke="#000" points="14,10 9.5,14.5 5,10"></polyline>
56
            <rect x="3" y="17" width="13" height="1"></rect>
57
            <line fill="none" stroke="#000" x1="9.5" y1="13.91" x2="9.5" y2="3"></line>
58
          </svg>
59
        </span>
60
        Download {{projectInfo.funding.funderShortName}} report (HTML)
61
      </a>
62
    </li>
63
    <li class="uk-margin-small-top">
64
      <a class="clickable" (click)="downloadCsvFile(downloadURLAPI+csvParams, 'funder-'+fileName_type+'-report')">
65
        <span class="uk-icon">
66
          <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="download" ratio="1">
67
            <polyline fill="none" stroke="#000" points="14,10 9.5,14.5 5,10"></polyline>
68
            <rect x="3" y="17" width="13" height="1"></rect>
69
            <line fill="none" stroke="#000" x1="9.5" y1="13.91" x2="9.5" y2="3"></line>
70
          </svg>
71
        </span>
72
        Download {{projectInfo.funding.funderShortName}} report (CSV)
73
      </a>
74
    </li>
75
  </ul>
76
</ng-template>
77

    
78
<div id="tm-main" class="landing uk-section uk-padding-remove-top tm-middle">
79
  <div *ngIf="!showFeedback" uk-grid>
80
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
81

    
82
      <div id="project" class="uk-container uk-container-large uk-margin-medium-top project">
83
        <div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning uk-margin-large-top"
84
             role="alert">{{warningMessage}}</div>
85
        <div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger  uk-margin-large-top"
86
             role="alert">{{errorMessage}}</div>
87
        <div [style.display]="showLoading ? 'inline' : 'none'"
88
             class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert"><span
89
          class="loading-gif  uk-align-center"></span></div>
90
        <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
91
                [texts]="pageContents['top']"></helper>
92
        <div *ngIf="projectInfo != null"  class="uk-grid uk-margin-remove-left uk-margin-large-bottom">
93
          <div class="uk-width-2-3@m uk-width-1-1@s  uk-margin-bottom uk-padding uk-padding-remove-left uk-padding-remove-vertical">
94
            <schema2jsonld *ngIf="projectInfo" [data]=projectInfo
95
                           [URL]="properties.domain+properties.baseLink+properties.searchLinkToProject+projectId"
96
                           type="project"></schema2jsonld>
97
            <landing-header [properties]="properties" [title]="projectName"
98
                            [subTitle]="projectInfo.acronym ? projectInfo.title : ''"
99
                            [entityType]="'project'"
100
                            [startDate]="projectInfo.startDate"
101
                            [endDate]="projectInfo.endDate"
102
                            [status]="projectInfo.status">
103
            </landing-header>
104
            <!-- Labels -->
105
            <div class="uk-margin-top uk-margin-bottom">
106
              <span *ngIf="projectInfo.openAccessMandatePublications != undefined && projectInfo.openAccessMandatePublications && projectInfo.openAccessMandateDatasets != undefined && projectInfo.openAccessMandateDatasets"
107
                    class="uk-label custom-label  label-open" title="Open Access mandate for Publications and Research Data">
108
                <span class="uk-visible@m">Open Access mandate for Publications and Research Data</span>
109
                <span class="uk-hidden@m">Open Access mandate for ...</span>
110
              </span>{{" "}}
111
              <span *ngIf="projectInfo.openAccessMandatePublications != undefined && projectInfo.openAccessMandatePublications && (projectInfo.openAccessMandateDatasets == undefined || !projectInfo.openAccessMandateDatasets)"
112
                    class="uk-label custom-label label-open" title="Open Access mandate for Publications">
113
                Open Access mandate for Publications
114
              </span>{{" "}}
115
              <span *ngIf="projectInfo.openAccessMandateDatasets != undefined && projectInfo.openAccessMandateDatasets && (projectInfo.openAccessMandatePublications == undefined || !projectInfo.openAccessMandatePublications)"
116
                    class="uk-label custom-label label-open" title="Open Access mandate for Research Data">
117
                Open Access mandate for Research Data
118
              </span>{{" "}}
119
              <span *ngIf="projectInfo.funding && projectInfo.funding.funderName" class="uk-label custom-label label-funder" title="Funder">
120
                {{projectInfo.funding.funderName}}
121
              </span>{{" "}}
122
              <span *ngIf="projectInfo.specialClause39"
123
                    class="uk-label custom-label label-sc39" title="Special Clause 39">
124
                Special Clause 39
125
              </span>{{" "}}
126
            </div>
127
            <ul class="basic-info uk-list uk-margin-bottom left-border">
128
              <li *ngIf="projectInfo.funding">
129
                <span *ngIf="projectInfo.funding.funderName" class="uk-margin-right">
130
                  <span class="uk-text-muted">Funder: </span>
131
                  <span class="uk-text-bold">{{projectInfo.funding.funderName}}</span>
132
                </span>
133
                <span *ngIf="projectInfo.funding.code" class="uk-margin-right uk-display-inline-block">
134
                  <span class="uk-text-muted">Project code: </span>
135
                  {{projectInfo.funding.code}}
136
                </span>
137
                <span *ngIf="projectInfo.funding.callIdentifier" class="uk-display-inline-block">
138
                  <span class="uk-text-muted">Call for proposal: </span>
139
                  {{projectInfo.funding.callIdentifier}}
140
                </span>
141
              </li>
142
              <li *ngIf="projectInfo.funding">
143
                <span *ngIf="projectInfo.funding.fundingStream" class="uk-margin-right">
144
                  <span class="uk-text-muted">Funded under: </span>
145
                  {{projectInfo.funding.fundingStream}}
146
                </span>
147
                <span *ngIf="projectInfo.funding.budget" class="uk-margin-right uk-display-inline-block">
148
                  <span class="uk-text-muted">Overall Budget: </span>
149
                  {{projectInfo.funding.budget | number}}
150
                  <span *ngIf="projectInfo.funding.currency">{{projectInfo.funding.currency}}</span>
151
                </span>
152
                <span *ngIf="projectInfo.funding.contribution" class="uk-display-inline-block">
153
                  <span class="uk-text-muted">Funder Contribution: </span>
154
                  {{projectInfo.funding.contribution | number}}
155
                  <span *ngIf="projectInfo.funding.currency">{{projectInfo.funding.currency}}</span>
156
                </span>
157
              </li>
158
              <li *ngIf="projectInfo.status" class="uk-margin-right">
159
                <span>
160
                  <span class="uk-text-muted">Status: </span>
161
                  {{projectInfo.status}}
162
                </span>
163
              </li>
164
              <li *ngIf="projectInfo.startDate || projectInfo.endDate" class="uk-width-2-5@m uk-width-1-2@s">
165
                <progress *ngIf="projectInfo.startDate && projectInfo.endDate"
166
                          class="uk-progress portal-progress uk-margin-small-top uk-margin-remove-bottom"
167
                          [value]="(projectInfo.currentDate > projectInfo.startDate ? projectInfo.currentDate-projectInfo.startDate : 0)"
168
                          [max]="projectInfo.endDate-projectInfo.startDate">
169
                </progress>
170
                <div class="uk-grid">
171
                  <span *ngIf="projectInfo.startDate" class="uk-width-1-2">
172
                    <div class="uk-text-muted">Start Date</div>
173
                    <div>{{projectInfo.startDate | date: 'dd MMM yyyy'}}</div>
174
                  </span>
175
                  <span *ngIf="projectInfo.endDate" [class]="'uk-width-1-2 ' + (projectInfo.startDate ? 'uk-text-right' : '')">
176
                    <div class="uk-text-muted">End Date</div>
177
                    <div>{{projectInfo.endDate | date: 'dd MMM yyyy'}}</div>
178
                  </span>
179
                </div>
180
              </li>
181
              <li *ngIf="projectInfo.urlInfo ">
182
                <span class="uk-button-text">
183
                    <a target="_blank" href="{{projectInfo.url}}">
184
                        {{projectInfo.urlInfo}}
185
                    </a>
186
                </span>
187
              </li>
188
            </ul>
189
            <ul class="uk-list uk-margin-bottom">
190
              <li *ngIf="(projectInfo.openAccessMandatePublications != undefined && !projectInfo.openAccessMandatePublications)
191
                      || (projectInfo.openAccessMandateDatasets != undefined && !projectInfo.openAccessMandateDatasets)">
192
                <div>Open Access mandate</div>
193
                <div>
194
                  <span *ngIf="projectInfo.openAccessMandatePublications != undefined && !projectInfo.openAccessMandatePublications"
195
                        class="uk-margin-right">
196
                    <span class="uk-text-muted">Publications: </span>
197
<!--                    <span *ngIf="projectInfo.openAccessMandatePublications">Yes</span>-->
198
                    <span>No</span>
199
                  </span>
200
                  <span *ngIf="projectInfo.openAccessMandateDatasets != undefined && !projectInfo.openAccessMandateDatasets">
201
                    <span class="uk-text-muted">Research Data: </span>
202
<!--                    <span *ngIf="projectInfo.openAccessMandateDatasets">Yes</span>-->
203
                    <span>No</span>
204
                  </span>
205
                </div>
206
              </li>
207
            </ul>
208
          </div>
209

    
210
          <div class="uk-width-1-3@m uk-width-1-1@s uk-padding-remove">
211
            <ul class="user-actions uk-list uk-card uk-card-default uk-padding">
212
              <!--              NEW-->
213
              <li><addThis></addThis></li>
214
              <li *ngIf="isRouteAvailable('participate/direct-claim')">
215
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openLinkProjectModal()">
216
                  <span class="uk-icon-button portal-button uk-icon">
217
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="link"><path
218
                      fill="none" stroke="#000" stroke-width="1.1"
219
                      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
220
                      fill="none" stroke="#000" stroke-width="1.1"
221
                      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
222
                      fill="none" stroke="#000" stroke-width="1.1"
223
                      d="M7.925,11.875 L11.925,7.975"></path>
224
                    </svg>
225
                  </span>
226
                  <span class="uk-margin-small-left">Link this project to...</span>
227
                </a>
228
                <modal-alert #linkProjectModal
229
                             [classTitle]="'landing-modal-header'" [classBody]="'uk-padding-remove landing-modal'">
230
<!--                  <div class="uk-modal-title landing-modal-header">-->
231
<!--                    <button class="uk-modal-close-default uk-float-right" (click)='linkProjectModal.cancel()' uk-close></button>-->
232
<!--                    <h4 class="modal-title" id="myModalLabel">{{linkProjectModal.alertTitle}}</h4>-->
233
<!--                  </div>-->
234
                  <div class="uk-padding uk-padding-remove-vertical uk-margin-medium uk-text-center ">
235
                    <div>
236
                      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId, 'project','result'])"
237
                         routerLinkActive="router-link-active" routerLink="/participate/direct-claim"
238
                         (click)="linkProjectModal.cancel();">
239
                        <button class="uk-icon-button portal-button">
240
                        <span class="uk-icon">
241
                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
242
                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
243
                                                                         width="12" x="3.5" y="2.5"></rect><polyline
244
                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
245
                        </button>
246
                        <div class="uk-margin-small-top">Research outcomes</div>
247
                      </a>
248
                    </div>
249
                  </div>
250
                </modal-alert>
251
              </li>
252
              <li *ngIf="isRouteAvailable('participate/deposit/learn-how')">
253
              <a class="uk-link-text uk-text-bold uk-text-uppercase"
254
                 routerLinkActive="router-link-active" routerLink="/participate/deposit/learn-how">
255
                  <span class="uk-icon uk-icon-button uk-button-secondary">
256
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">
257
                      <polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline>
258
                      <rect x="3" y="17" width="13" height="1"></rect>
259
                      <line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line>
260
                    </svg>
261
                  </span>
262
                <span class="uk-margin-small-left"><u>Deposit your research</u></span>
263
                </a>
264
              </li>
265
              <li>
266
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openShareResultsModal()">
267
                  <span class="uk-icon uk-icon-button uk-button-primary">
268
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="code" ratio="1">
269
                      <polyline fill="none" stroke="#000" stroke-width="1.01" points="13,4 19,10 13,16"></polyline>
270
                      <polyline fill="none" stroke="#000" stroke-width="1.01" points="7,4 1,10 7,16"></polyline>
271
                    </svg>
272
                  </span>
273
                  <span class="uk-margin-small-left">Share results</span>
274
                </a>
275
                <modal-alert #shareResultsModal
276
                             [classTitle]="'landing-modal-header'" [classBody]="'uk-padding-remove landing-modal'">
277
                <div class="uk-padding-small uk-margin-small-left uk-margin-small-right">
278
                    <div class="uk-padding-small uk-padding-remove-vertical">
279
                      <mat-form-field class="matSelectionFormField uk-width-1-1">
280
                        <mat-label>Select content type to share</mat-label>
281
                        <mat-select [(value)]="share_research_results_type"
282
                                    [disableOptionCentering]="true"
283
                                    panelClass="entitiesSelectionPanel"
284
                                    class="matSelection">
285
<!--                          <mat-option value="">Select content type</mat-option>-->
286
                          <mat-option value="result">All research outcomes</mat-option>
287
                          <mat-option value="publication">Publications</mat-option>
288
                          <mat-option value="dataset">Research data</mat-option>
289
                          <mat-option value="software">Software</mat-option>
290
                          <mat-option value="other">Other research products</mat-option>
291
                        </mat-select>
292
                      </mat-form-field>
293
                      <div *ngIf="share_research_results_type" class="uk-animation-slide-top-small">
294
                        <ng-container *ngTemplateOutlet="share_research_results_box;
295
                        context: {  dynamic_content: getDynamicContent(share_research_results_type) }">
296
                        </ng-container>
297
                      </div>
298
                    </div>
299
                  </div>
300
                </modal-alert>
301
              </li>
302
              <li>
303
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openDownloadReportModal()">
304
                  <span class="uk-icon uk-icon-button uk-button-primary">
305
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="download" ratio="1">
306
                      <polyline fill="none" stroke="#000" points="14,10 9.5,14.5 5,10"></polyline>
307
                      <rect x="3" y="17" width="13" height="1"></rect>
308
                      <line fill="none" stroke="#000" x1="9.5" y1="13.91" x2="9.5" y2="3"></line>
309
                    </svg>
310
                  </span>
311
                  <span class="uk-margin-small-left">Download report</span>
312
                </a>
313
                <modal-alert #downloadReportModal
314
                             [classTitle]="'landing-modal-header'" [classBody]="'uk-padding-remove landing-modal'">
315
                <div class="uk-padding-small uk-margin-small-left uk-margin-small-right">
316
                    <div class="uk-padding-small uk-padding-remove-vertical">
317
<!--                      *ngIf="projectInfo.funding &&-->
318
<!--                      (fetchPublications.searchUtils.totalResults > 0 ||-->
319
<!--                      fetchDatasets.searchUtils.totalResults > 0 ||-->
320
<!--                      fetchSoftware.searchUtils.totalResults > 0 ||-->
321
<!--                      fetchOrps.searchUtils.totalResults > 0)"-->
322
                      <mat-form-field
323
                                      class="matSelectionFormField uk-width-1-1">
324
                        <mat-label>Select content type report to download</mat-label>
325
                        <mat-select [(value)]="download_research_results_type"
326
                                    [disableOptionCentering]="true"
327
                                    panelClass="entitiesSelectionPanel"
328
                                    class="matSelection">
329
<!--                          <mat-option value="">Select content type</mat-option>-->
330
                          <mat-option value="results"
331
                                      [disabled]="!projectInfo.funding ||
332
                                                  (fetchPublications.searchUtils.totalResults == 0 &&
333
                                                  fetchDatasets.searchUtils.totalResults == 0 &&
334
                                                  fetchSoftware.searchUtils.totalResults == 0 &&
335
                                                  fetchOrps.searchUtils.totalResults == 0)"
336
                                      [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
337
                                      title="No report available">
338
                            All research outcomes
339
                          </mat-option>
340
                          <mat-option value="publications"
341
                                      [disabled]="!projectInfo.funding || fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE"
342
                                      [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
343
                                      title="No report available">
344
                            Publications
345
                          </mat-option>
346
                          <mat-option value="datasets"
347
                                      [disabled]="!projectInfo.funding || fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE"
348
                                      [attr.uk-tooltip]="(fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
349
                                      title="No report available">
350
                            Research data
351
                          </mat-option>
352
                          <mat-option value="software"
353
                                      [disabled]="!projectInfo.funding || fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE"
354
                                      [attr.uk-tooltip]="(fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
355
                                      title="No report available">
356
                            Software
357
                          </mat-option>
358
                          <mat-option value="other"
359
                                      [disabled]="!projectInfo.funding || fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE"
360
                                      [attr.uk-tooltip]="(fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
361
                                      title="No report available">
362
                            Other research products
363
                          </mat-option>
364
                        </mat-select>
365
                      </mat-form-field>
366
                      <div *ngIf="download_research_results_type" class="uk-animation-slide-top-small">
367
                        <ng-container *ngTemplateOutlet="download_research_results_box;
368
                          context: {  type: download_research_results_type,
369
                                      fileName_type: getFileNameType(download_research_results_type),
370
                                      csvParams: getCsvParams(download_research_results_type) }">
371
                        </ng-container>
372
                      </div>
373

    
374
                      <div *ngIf="!projectInfo.funding ||
375
                          (fetchPublications.searchUtils.totalResults == 0 &&
376
                          fetchDatasets.searchUtils.totalResults == 0 &&
377
                          fetchSoftware.searchUtils.totalResults == 0 &&
378
                          fetchOrps.searchUtils.totalResults == 0)"
379
                           class="uk-text-muted">
380
                        No reports available
381
                      </div>
382
                    </div>
383
                  </div>
384
                </modal-alert>
385
              </li>
386
              <!-- Metrics -->
387
              <li *ngIf="hasMetrics" class="uk-margin-medium-top">
388
                <div class="uk-text-center uk-flex uk-flex-middle uk-flex-center">
389
                  <div [class.uk-hidden]="!(totalViews && totalDownloads && pageViews)">
390
                    <metrics [pageViews]="pageViews"
391
                             [id]="projectId" [entityType]="'projects'" [entity]="'project'"
392
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
393
                             (metricsResults)="metricsResults($event)" [properties]=properties>
394
                    </metrics>
395
                  </div>
396
                </div>
397
              </li>
398

    
399

    
400
            </ul>
401
<!--            <div class="uk-margin-small-top uk-text-muted uk-text-small uk-text-right">-->
402
<!--              Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}-->
403
<!--            </div>-->
404

    
405
          </div>
406
        </div>
407

    
408
        <div *ngIf="projectInfo != null">
409
<!--          *ngIf="numberOfTabs > 0; else loadingBlock"-->
410
          <div class="main-tabs-div">
411
            <ng-template #summary_tab>
412
<!--              <my-tab [tabTitle]="'Project Summary'" [tabId]="'summary'" [active]="true">-->
413
                <div class="uk-grid uk-margin-remove">
414
                  <div class="uk-width-expand uk-padding uk-inline">
415
                    <!-- Description -->
416
                    <div *ngIf="!hasPrimaryInfo" class="uk-width-expand uk-padding">
417
                      <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
418
                        No summary information available
419
                      </div>
420
                    </div>
421
                    <div *ngIf="hasPrimaryInfo" class="uk-margin-medium-bottom">
422
                      <div class="uk-text-muted">Description</div>
423
                      <div class="uk-text-justify uk-height-max-medium uk-overflow-auto">
424
                        <span>{{projectInfo.description.substring(0, showNumDescription)}}</span>
425
                        <span *ngIf="showNumDescription == thresholdDescription &&
426
                                    projectInfo.description.length > thresholdDescription">...</span>
427
                      </div>
428
                      <div *ngIf="showNumDescription == thresholdDescription &&
429
                                    projectInfo.description.length > thresholdDescription" class="uk-text-right">
430
                        <a (click)="showNumDescription = projectInfo.description.length;">
431
                          Read more
432
                        </a>
433
                      </div>
434
                      <div *ngIf="projectInfo.description && showNumDescription > thresholdDescription"
435
                           class="uk-text-right">
436
                        <a (click)="showNumDescription = thresholdDescription;">
437
                          Read less
438
                        </a>
439
                      </div>
440
                    </div>
441
                  </div>
442
                  <div *ngIf="hasSecondaryInfo" class="uk-padding uk-inline uk-width-1-3@m right-column">
443
                    <!-- Organizations -->
444
                    <div class="uk-text-muted">Partners</div>
445
                    <div class="uk-margin-medium-bottom">
446
                      <div class="uk-height-max-medium uk-overflow-auto">
447
                            <span *ngFor="let organization of projectInfo.organizations.slice(0, showNumOrganizations) let i=index"
448
                                  [attr.uk-tooltip]="organization.acronym && organization.name ? 'pos:right; delay:10' : 'cls: uk-invisible'"
449
                                  [title]="organization.name">
450
                              <a *ngIf="organization.id"
451
                                 [queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active"
452
                                 [routerLink]="properties.searchLinkToOrganization.split('?')[0]">
453
                                <u>{{(organization.acronym) ? organization.acronym : ''}}</u>
454
                                <u>{{(!organization.acronym && organization.name) ? organization.name : ''}}</u>
455
                              </a>
456
                              <span *ngIf="!organization.id">
457
                                <span *ngIf="organization.acronym">{{organization.acronym}}</span>
458
                                <span *ngIf="!organization.acronym && organization.name">{{organization.name}}</span>
459
                              </span>
460
                              <span *ngIf="(i < projectInfo.organizations.length-1)">, </span>
461
                            </span>
462
                        <span *ngIf="showNumOrganizations == thresholdOrganizations &&  projectInfo.organizations.length > thresholdOrganizations">	... </span>
463
                      </div>
464
                      <div *ngIf="showNumOrganizations == thresholdOrganizations && projectInfo.organizations.length > thresholdOrganizations"
465
                           class="uk-width-1-1 uk-text-right uk-margin-small-top">
466
                        <a (click)="showNumOrganizations = projectInfo.organizations.length;">
467
                          View all {{projectInfo.organizations.length | number}} organizations
468
                        </a>
469
                      </div>
470
                      <div *ngIf="showNumOrganizations > thresholdOrganizations"
471
                           class="uk-width-1-1 uk-text-right uk-margin-small-top">
472
                        <a (click)="showNumOrganizations = thresholdOrganizations;">View less organizations</a>
473
                      </div>
474
                    </div>
475
                  </div>
476
                  <!--<div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
477
                       class="uk-width-expand uk-padding">
478
&lt;!&ndash;                    <div *ngIf="!tabsAreInitialized" class="uk-animation-fade uk-margin-top  uk-width-1-1" role="alert">&ndash;&gt;
479
&lt;!&ndash;                      <span class="loading-gif  uk-align-center" ></span>&ndash;&gt;
480
&lt;!&ndash;                    </div>&ndash;&gt;
481
                    <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
482
                      No summary information available
483
                    </div>
484
                  </div>-->
485
                </div>
486
<!--              </my-tab>-->
487
            </ng-template>
488
            <ng-template #publications_tab>
489
<!--              <my-tab  *ngIf="fetchPublications.searchUtils.totalResults > 0"-->
490
<!--                       [tabTitle]="'Publications'" [tabNumber]="fetchPublications.searchUtils.totalResults"-->
491
<!--                       [tabId]="'publications'">-->
492
                <div class="uk-grid uk-margin-remove">
493
                  <div class="uk-width-expand uk-padding">
494
                    <search-tab [fetch]="fetchPublications" resultType="publication"
495
                                [params]="getParamsForSearchLink('publications')"
496
                                [searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
497
                                [properties]="properties">
498
                    </search-tab>
499
                  </div>
500
<!--                  <div class="uk-width-1-3@m uk-padding right-column">-->
501
<!--                    <div>test publications</div>-->
502
<!--                  </div>-->
503
                </div>
504
<!--              </my-tab>-->
505
            </ng-template>
506
            <ng-template #datasets_tab>
507
<!--              <my-tab  *ngIf="fetchDatasets.searchUtils.totalResults > 0"-->
508
<!--                       [tabTitle]="'Research Data'" [tabNumber]="fetchDatasets.searchUtils.totalResults"-->
509
<!--                       [tabId]="'datasets'">-->
510
                <div class="uk-grid uk-margin-remove">
511
                  <div class="uk-width-expand uk-padding">
512
                    <search-tab [fetch]="fetchDatasets" resultType="dataset"
513
                                [params]="getParamsForSearchLink('datasets')"
514
                                [searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
515
                                [properties]="properties">
516
                    </search-tab>
517
                  </div>
518
<!--                  <div class="uk-width-1-3@m uk-padding right-column">-->
519
<!--                    <div>test research data</div>-->
520
<!--                  </div>-->
521
                </div>
522
<!--              </my-tab>-->
523
            </ng-template>
524
            <ng-template #software_tab>
525
                <div class="uk-grid uk-margin-remove">
526
                  <div class="uk-width-expand uk-padding">
527
                    <search-tab [fetch]="fetchSoftware" resultType="software"
528
                                [params]="getParamsForSearchLink('software')"
529
                                [searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
530
                                [properties]="properties">
531
                    </search-tab>
532
                  </div>
533
<!--                  <div class="uk-width-1-3@m uk-padding right-column">-->
534
<!--                    <div>test software</div>-->
535
<!--                  </div>-->
536
                </div>
537
            </ng-template>
538
            <ng-template #other_tab>
539
<!--              <my-tab  *ngIf="fetchOrps.searchUtils.totalResults > 0"-->
540
<!--                       [tabTitle]="'Other Research'" [tabNumber]="fetchOrps.searchUtils.totalResults"-->
541
<!--                       [tabId]="'other'">-->
542
                <div class="uk-grid uk-margin-remove">
543
                  <div class="uk-width-expand uk-padding">
544
                    <search-tab [fetch]="fetchOrps" resultType="other"
545
                                [params]="getParamsForSearchLink('other')"
546
                                [searchLinkToAdvancedPage]="properties.searchLinkToAdvancedResults"
547
                                [properties]="properties">
548
                    </search-tab>
549
                  </div>
550
<!--                  <div class="uk-width-1-3@m uk-padding right-column">-->
551
<!--                    <div>test other research products</div>-->
552
<!--                  </div>-->
553
                </div>
554
<!--              </my-tab>-->
555
            </ng-template>
556
            <ng-template #statistics_tab>
557
<!--              <my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0-->
558
<!--                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"-->
559
<!--                      [tabTitle]="'Statistics'" [statistics]="true" [tabId]="'statistics'">-->
560
                <div class="">
561
                  <div class="uk-width-expand uk-padding">
562
                    <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
563
                                  fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
564
                                   [type]="'statistics'" tab_error_class=true></errorMessages>
565

    
566
                    <div
567
                      *ngIf="statsClicked &&
568
                              (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
569
                              || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)"
570
                      class="uk-grid uk-child-width-1-1 uk-child-width-1-2@m">
571
                      <div class="uk-padding uk-padding-remove-top">
572
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Produced research
573
                          outcomes per year</div>
574
                        <i-frame [url]=chartScientificResultsUrl></i-frame>
575
                      </div>
576
                      <div class="uk-padding uk-padding-remove-top">
577
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Access mode of research
578
                          outcomes</div>
579
                        <i-frame [url]=chartAccessModeUrl></i-frame>
580
                      </div>
581
                      <div class="uk-padding uk-padding-remove-top">
582
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Research outcomes per datasource</div>
583
                        <i-frame [url]=chartDatasourcesUrl></i-frame>
584
                      </div>
585
                    </div>
586
                  </div>
587
                </div>
588
<!--              </my-tab>-->
589
            </ng-template>
590

    
591
<!--            [class]="numberOfTabs > 2 ? 'uk-visible@m' : ''"-->
592
            <my-tabs (selectedActiveTab)="onSelectActiveTab($event)">
593
<!--              *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
594
<!--                      [class]="(firstTab === 'summary')?'uk-active':''">-->
595
              <my-tab
596
                tabTitle="Summary" [tabId]="'summary'"
597
                      class="uk-active">
598
                <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
599
              </my-tab>
600
<!--              *ngIf="fetchPublications.searchUtils.totalResults > 0"-->
601
<!--              [class]="(firstTab === 'publications')?'uk-active':''"-->
602
              <my-tab
603
                       [tabTitle]="'Publications'" [tabNumber]="fetchPublications.searchUtils.totalResults"
604
                       [tabId]="'publications'">
605
                <ng-container *ngTemplateOutlet="publications_tab;"></ng-container>
606
              </my-tab>
607
<!--              *ngIf="fetchDatasets.searchUtils.totalResults > 0"-->
608
<!--              [class]="(firstTab === 'datasets')?'uk-active':''"-->
609
              <my-tab
610
                       [tabTitle]="'Research Data'" [tabNumber]="fetchDatasets.searchUtils.totalResults"
611
                       [tabId]="'datasets'" >
612
                <ng-container *ngTemplateOutlet="datasets_tab;"></ng-container>
613
              </my-tab>
614
<!--              *ngIf="fetchSoftware.searchUtils.totalResults > 0"-->
615
<!--              [class]="(firstTab === 'software')?'uk-active':''"-->
616
              <my-tab
617
                       [tabTitle]="'Software'" [tabNumber]="fetchSoftware.searchUtils.totalResults"
618
                       [tabId]="'software'" >
619
                <ng-container *ngTemplateOutlet="software_tab;"></ng-container>
620
              </my-tab>
621
<!--              *ngIf="fetchOrps.searchUtils.totalResults > 0"-->
622
<!--              [class]="(firstTab === 'other')?'uk-active':''"-->
623
              <my-tab
624
                       [tabTitle]="'Other Research'" [tabNumber]="fetchOrps.searchUtils.totalResults"
625
                       [tabId]="'other'" >
626
                <ng-container *ngTemplateOutlet="other_tab;"></ng-container>
627
              </my-tab>
628
<!--              [class]="(firstTab === 'statistics')?'uk-active':''"-->
629
              <my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
630
                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
631
                      [tabTitle]="'Statistics'" [statistics]="true" [tabId]="'statistics'"
632
                      >
633
                <ng-container *ngTemplateOutlet="statistics_tab;"></ng-container>
634
              </my-tab>
635
            </my-tabs>
636

    
637
<!--            *ngIf="numberOfTabs > 2"-->
638
            <my-small-tabs (selectedActiveTab)="onSelectActiveTab($event)">
639
<!--              *ngIf="hasPrimaryInfo || hasSecondaryInfo"-->
640
<!--              [class]="(firstTab === 'summary')?'uk-active':''"-->
641
              <my-tab
642
                tabTitle="Summary" [tabId]="'summary'"
643
                      class="uk-active">
644
                <ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
645
              </my-tab>
646
<!--              *ngIf="fetchPublications.searchUtils.totalResults > 0"-->
647
<!--              [class]="(firstTab === 'publications')?'uk-active':''"-->
648
              <my-tab
649
                       [tabTitle]="'Publications'" [tabNumber]="fetchPublications.searchUtils.totalResults"
650
                       [tabId]="'publications'">
651
                <ng-container *ngTemplateOutlet="publications_tab;"></ng-container>
652
              </my-tab>
653
<!--              *ngIf="fetchDatasets.searchUtils.totalResults > 0"-->
654
<!--              [class]="(firstTab === 'datasets')?'uk-active':''"-->
655
              <my-tab
656
                       [tabTitle]="'Research Data'" [tabNumber]="fetchDatasets.searchUtils.totalResults"
657
                       [tabId]="'datasets'" >
658
                <ng-container *ngTemplateOutlet="datasets_tab;"></ng-container>
659
              </my-tab>
660
<!--              *ngIf="fetchSoftware.searchUtils.totalResults > 0"-->
661
<!--              [class]="(firstTab === 'software')?'uk-active':''"-->
662
              <my-tab
663
                       [tabTitle]="'Software'" [tabNumber]="fetchSoftware.searchUtils.totalResults"
664
                       [tabId]="'software'" >
665
                <ng-container *ngTemplateOutlet="software_tab;"></ng-container>
666
              </my-tab>
667
<!--              *ngIf="fetchOrps.searchUtils.totalResults > 0"-->
668
<!--              [class]="(firstTab === 'other')?'uk-active':''"-->
669
              <my-tab
670
                       [tabTitle]="'Other Research'" [tabNumber]="fetchOrps.searchUtils.totalResults"
671
                       [tabId]="'other'" >
672
                <ng-container *ngTemplateOutlet="other_tab;"></ng-container>
673
              </my-tab>
674
<!--              [class]="(firstTab === 'statistics')?'uk-active':''"-->
675
              <my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
676
                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
677
                      [tabTitle]="'Statistics'" [statistics]="true" [tabId]="'statistics'"
678
                      >
679
                <ng-container *ngTemplateOutlet="statistics_tab;"></ng-container>
680
              </my-tab>
681
            </my-small-tabs>
682
          </div>
683
<!--          <ng-template #loadingBlock>-->
684
<!--            <div *ngIf="!tabsAreInitialized" class="uk-animation-fade uk-margin-top  uk-width-1-1" role="alert">-->
685
<!--              <span class="loading-gif  uk-align-center" ></span>-->
686
<!--            </div>-->
687
<!--          </ng-template>-->
688

    
689
          <div class="uk-margin-small-top uk-flex">
690
            <!-- Last Index Info-->
691
            <div class="uk-width-2-3@m uk-width-1-2">
692
              <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
693
              <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>
694
              <span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-muted">
695
                . Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
696
              </span>
697
            </div>
698
            <!--Feedback-->
699
            <div class="uk-width-expand uk-text-right">
700
              <span class="uk-text-muted">Any information missing or wrong?</span>
701
              <a (click)="showFeedback = true; scroll()" class="portal-link space">Report an Issue</a>
702
            </div>
703
          </div>
704
        </div>
705
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
706
                [texts]="pageContents['bottom']"></helper>
707
    </div>
708

    
709
    <!-- Statistics -->
710
    <modal-alert *ngIf="projectInfo &&
711
                        (fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
712
                        || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
713
                 classBody="uk-width-xxlarge uk-padding-remove-right" #statisticsModal>
714
      <landing-header [properties]="properties" [title]="projectName"
715
                      [subTitle]="projectInfo.acronym ? projectInfo.title : ''"
716
                      [entityType]="'project'"
717
                      [startDate]="projectInfo.startDate"
718
                      [endDate]="projectInfo.endDate"
719
                      [status]="projectInfo.status">
720
      </landing-header>
721
      <div class="uk-margin-medium-top uk-margin-medium-right">
722
        <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
723
                                  fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
724
                       [type]="'statistics'" tab_error_class=true></errorMessages>
725

    
726
        <div
727
          *ngIf="statsClicked &&
728
          (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
729
          || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)">
730
          <div class="uk-padding uk-padding-remove-top">
731
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Produced research
732
              outcomes per year</div>
733
            <i-frame [url]=chartScientificResultsUrl></i-frame>
734
          </div>
735
          <div class="uk-padding uk-padding-remove-top">
736
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Access mode of research
737
              outcomes</div>
738
            <i-frame [url]=chartAccessModeUrl></i-frame>
739
          </div>
740
          <div class="uk-padding uk-padding-remove-top">
741
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Research outcomes per datasource</div>
742
            <i-frame [url]=chartDatasourcesUrl></i-frame>
743
          </div>
744
        </div>
745
      </div>
746
    </modal-alert>
747
  </div>
748
</div>
749
  <feedback *ngIf="projectInfo" [projectInfo]="projectInfo"
750
            [properties]="properties" [entityType]="'project'" [title]="projectName" [fields]="feedbackFields"
751
            [showForm]="showFeedback" (show)="showFeedback = $event"></feedback>
752
</div>
753

    
754
<modal-loading></modal-loading>
755
<modal-alert #AlertModalCsvError></modal-alert>
(1-1/5)