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
      <div hidden id="dynamic_content_id" class="uk-margin-small-top">
14
        <div class="uk-grid">
15
          <a
16
            class="clipboard_btn uk-padding-remove-left uk-margin-small-left uk-text-right uk-width-1-1"
17
            data-clipboard-target="#clipboard" title="Copy to clipboard">
18
            <button class="uk-button uk-button-small uk-button-default uk-icon">
19
              <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="copy" ratio="1">
20
                <rect fill="none" stroke="#000" x="3.5" y="2.5" width="12" height="16"></rect>
21
                <polyline fill="none" stroke="#000" points="5 0.5 17.5 0.5 17.5 17"></polyline>
22
              </svg>
23
              <span class="uk-margin-small-left">COPY</span>
24
            </button>
25
          </a>
26
        </div>
27

    
28
        <pre class="box-content uk-padding-remove-bottom uk-margin-remove-bottom"><code
29
          id="clipboard">{{dynamic_content}}</code></pre>
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
<ng-template #search_box let-fetch="fetch" let-type="type" let-typeName="typeName">
79
  <div *ngIf="fetch.searchUtils.totalResults > 0">
80
    <div class="uk-position-relative">
81
      <a [queryParams]="routerHelper.createQueryParams(['f0', 'fv0', 'type', 'qf'], ['relprojectid', projectId, type, 'false'])"
82
         [routerLink]="properties.searchLinkToAdvancedResults" target="_blank">
83
        <span class="custom-external uk-position-top-right uk-margin-small-right uk-margin-small-top"></span>
84
        <div class="header target uk-text-bold">{{typeName}}</div>
85
        <div class="icon uk-position-center" uk-icon="icon: search;"></div>
86
        <div class="footer target uk-position-relative">
87
          <span class="uk-text-bold uk-position-center">{{fetch.searchUtils.totalResults | number}}</span>
88
        </div>
89
      </a>
90
    </div>
91
  </div>
92
</ng-template>
93

    
94
<ng-template #search_tab let-fetch="fetch" let-type="type" let-urlParam="urlParam">
95
  <errorMessages [status]="[fetch.searchUtils.status]" [type]="getEntityName(type, true, true)"
96
                 tab_error_class=true></errorMessages>
97

    
98
  <div *ngIf="fetch.searchUtils.status == errorCodes.DONE">
99
    <div class="uk-inline uk-flex uk-flex-right">
100
      <span class="uk-text-uppercase uk-position-left uk-text-middle uk-flex-middle uk-flex">
101
        <span>Top 10</span><span class="space uk-text-muted">{{getEntityName(type, true, true)}}</span>
102
      </span>
103
      <a [queryParams]="routerHelper.createQueryParams(['f0', 'fv0', 'type', 'qf'], ['relprojectid', projectId, getEntityName(type, true, false), 'false'])"
104
         [routerLink]="properties.searchLinkToAdvancedResults" target="_blank">
105
        <button *ngIf="fetch.searchUtils.totalResults > 10"
106
                class="uk-button uk-button-small portal-button">
107
          <span uk-icon="search"></span>
108
          View more
109
        </button>
110
      </a>
111

    
112
    </div>
113
    <search-result [results]="fetch.results"
114
                   [status]="fetch.searchUtils.status"
115
                   [type]="type" urlParam="articleId"
116
                   dividerNotCard="true">
117
    </search-result>
118
  </div>
119
</ng-template>
120

    
121
<div id="tm-main" class="landing uk-section uk-padding-remove-top tm-middle">
122
  <div *ngIf="!showFeedback" uk-grid>
123
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
124

    
125
      <div id="project" class="uk-container uk-container-large uk-margin-medium-top project">
126
        <div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning uk-margin-large-top"
127
             role="alert">{{warningMessage}}</div>
128
        <div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger  uk-margin-large-top"
129
             role="alert">{{errorMessage}}</div>
130
        <div [style.display]="showLoading ? 'inline' : 'none'"
131
             class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert"><span
132
          class="loading-gif  uk-align-center"></span></div>
133
        <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
134
                [texts]="pageContents['top']"></helper>
135
        <div *ngIf="projectInfo != null"  class="uk-grid">
136
          <div class="uk-width-2-3@m uk-width-1-1@s  uk-margin-bottom">
137
            <schema2jsonld *ngIf="projectInfo" [data]=projectInfo
138
                           [URL]="properties.baseLink+properties.searchLinkToProject+projectId"
139
                           type="project"></schema2jsonld>
140
            <landing-header [properties]="properties" [title]="projectName"
141
                            [subTitle]="projectInfo.acronym ? projectInfo.title : ''"
142
                            [entityType]="'project'"
143
                            [startDate]="projectInfo.startDate"
144
                            [endDate]="projectInfo.endDate"
145
                            [status]="projectInfo.status">
146
            </landing-header>
147
            <!-- Labels -->
148
            <div class="uk-margin-top uk-margin-bottom">
149
              <span *ngIf="projectInfo.openAccessMandatePublications != undefined && projectInfo.openAccessMandatePublications && projectInfo.openAccessMandateDatasets != undefined && projectInfo.openAccessMandateDatasets"
150
                    class="uk-label custom-label  label-open" title="Open Access mandate for Publications and Research Data">
151
                <span class="uk-visible@m">Open Access mandate for Publications and Research Data</span>
152
                <span class="uk-hidden@m">Open Access mandate for ...</span>
153
              </span>{{" "}}
154
              <span *ngIf="projectInfo.openAccessMandatePublications != undefined && projectInfo.openAccessMandatePublications && (projectInfo.openAccessMandateDatasets == undefined || !projectInfo.openAccessMandateDatasets)"
155
                    class="uk-label custom-label label-open" title="Open Access mandate for Publications">
156
                Open Access mandate for Publications
157
              </span>{{" "}}
158
              <span *ngIf="projectInfo.openAccessMandateDatasets != undefined && projectInfo.openAccessMandateDatasets && (projectInfo.openAccessMandatePublications == undefined || !projectInfo.openAccessMandatePublications)"
159
                    class="uk-label custom-label label-open" title="Open Access mandate for Research Data">
160
                Open Access mandate for Research Data
161
              </span>{{" "}}
162
              <span *ngIf="projectInfo.funding && projectInfo.funding.funderName" class="uk-label custom-label label-funder" title="Funder">
163
                {{projectInfo.funding.funderName}}
164
              </span>{{" "}}
165
              <span *ngIf="projectInfo.specialClause39"
166
                    class="uk-label custom-label label-sc39" title="Special Clause 39">
167
                Special Clause 39
168
              </span>{{" "}}
169
            </div>
170
            <ul class="uk-list uk-margin-bottom left-border">
171
              <li *ngIf="projectInfo.funding">
172
                <span *ngIf="projectInfo.funding.funderName" class="uk-margin-right">
173
                  <span class="uk-text-muted">Funder: </span>
174
                  <span class="uk-text-bold">{{projectInfo.funding.funderName}}</span>
175
                </span>
176
                <span *ngIf="projectInfo.funding.code" class="uk-margin-right uk-display-inline-block">
177
                  <span class="uk-text-muted">Project code: </span>
178
                  {{projectInfo.funding.code}}
179
                </span>
180
                <span *ngIf="projectInfo.funding.callIdentifier" class="uk-display-inline-block">
181
                  <span class="uk-text-muted">Call for proposal: </span>
182
                  {{projectInfo.funding.callIdentifier}}
183
                </span>
184
              </li>
185
              <li *ngIf="projectInfo.funding">
186
                <span *ngIf="projectInfo.funding.fundingStream" class="uk-margin-right">
187
                  <span class="uk-text-muted">Funded under: </span>
188
                  {{projectInfo.funding.fundingStream}}
189
                </span>
190
                <span *ngIf="projectInfo.funding.budget" class="uk-margin-right uk-display-inline-block">
191
                  <span class="uk-text-muted">Overall Budget: </span>
192
                  {{projectInfo.funding.budget | number}}
193
                  <span *ngIf="projectInfo.funding.currency">{{projectInfo.funding.currency}}</span>
194
                </span>
195
                <span *ngIf="projectInfo.funding.contribution" class="uk-display-inline-block">
196
                  <span class="uk-text-muted">Funder Contribution: </span>
197
                  {{projectInfo.funding.contribution | number}}
198
                  <span *ngIf="projectInfo.funding.currency">{{projectInfo.funding.currency}}</span>
199
                </span>
200
              </li>
201
              <li *ngIf="projectInfo.status" class="uk-margin-right">
202
                <span>
203
                  <span class="uk-text-muted">Status: </span>
204
                  {{projectInfo.status}}
205
                </span>
206
              </li>
207
              <li *ngIf="projectInfo.startDate || projectInfo.endDate" class="uk-width-2-5">
208
                <progress *ngIf="projectInfo.startDate && projectInfo.endDate"
209
                          class="uk-progress portal-progress uk-margin-small-top uk-margin-remove-bottom"
210
                          [value]="(projectInfo.currentDate > projectInfo.startDate ? projectInfo.currentDate-projectInfo.startDate : 0)"
211
                          [max]="projectInfo.endDate-projectInfo.startDate">
212
                </progress>
213
                <div class="uk-grid">
214
                  <span *ngIf="projectInfo.startDate" class="uk-width-1-2">
215
                    <div class="uk-text-muted">Start Date</div>
216
                    <div>{{projectInfo.startDate | date: 'dd MMM yyyy'}}</div>
217
                  </span>
218
                  <span *ngIf="projectInfo.endDate" [class]="'uk-width-1-2 ' + (projectInfo.startDate ? 'uk-text-right' : '')">
219
                    <div class="uk-text-muted">End Date</div>
220
                    <div>{{projectInfo.endDate | date: 'dd MMM yyyy'}}</div>
221
                  </span>
222
                </div>
223
              </li>
224
              <li *ngIf="projectInfo.urlInfo ">
225
                <span class="uk-button-text">
226
                    <a target="_blank" href="{{projectInfo.url}}">
227
                        {{projectInfo.urlInfo}}
228
                    </a>
229
                </span>
230
              </li>
231
            </ul>
232
            <ul class="uk-list uk-margin-bottom">
233
              <li *ngIf="projectInfo.openAccessMandatePublications != undefined || projectInfo.openAccessMandateDatasets != undefined">
234
                <div>Open Access mandate</div>
235
                <div>
236
                  <span *ngIf="projectInfo.openAccessMandatePublications != undefined" class="uk-margin-right">
237
                    <span class="uk-text-muted">Publications: </span>
238
                    <span *ngIf="projectInfo.openAccessMandatePublications">Yes</span>
239
                    <span *ngIf="!projectInfo.openAccessMandatePublications">No</span>
240
                  </span>
241
                  <span *ngIf="projectInfo.openAccessMandateDatasets != undefined">
242
                    <span class="uk-text-muted">Research Data: </span>
243
                    <span *ngIf="projectInfo.openAccessMandateDatasets">Yes</span>
244
                    <span *ngIf="!projectInfo.openAccessMandateDatasets">No</span>
245
                  </span>
246
                </div>
247
              </li>
248
            </ul>
249

    
250
<!--            <div *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0-->
251
<!--                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"-->
252
<!--              class="uk-margin-medium-top">-->
253
<!--              <div class="uk-margin-top simple-buttons uk-flex uk-flex-middle">-->
254
<!--                <div (click)="openStatistics()" class="clickable uk-margin-right">-->
255
<!--                  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">-->
256
<!--                    <path d="M0 0h24v24H0z" fill="none"></path>-->
257
<!--                    <path id="statistics-bars" d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"></path>-->
258
<!--                  </svg>-->
259
<!--                  <span class="uk-text-middle space">View statistics</span>-->
260
<!--                </div>-->
261
<!--              </div>-->
262

    
263
<!--              <div class="uk-margin-top advanced-buttons uk-grid-small uk-child-width-1-4@s uk-child-width-1-2"-->
264
<!--                   uk-height-match="target: .target; row: false"-->
265
<!--                   uk-grid>-->
266
<!--                <ng-container *ngTemplateOutlet="search_box;-->
267
<!--                            context: {  fetch: fetchPublications, type: 'publications', typeName: 'Publications'}">-->
268
<!--                </ng-container>-->
269
<!--                <ng-container *ngTemplateOutlet="search_box;-->
270
<!--                            context: {  fetch: fetchDatasets, type: 'datasets', typeName: 'Research Data'}">-->
271
<!--                </ng-container>-->
272
<!--                <ng-container *ngTemplateOutlet="search_box;-->
273
<!--                            context: {  fetch: fetchSoftware, type: 'software', typeName: 'Software'}">-->
274
<!--                </ng-container>-->
275
<!--                <ng-container *ngTemplateOutlet="search_box;-->
276
<!--                            context: {  fetch: fetchOrps, type: 'other', typeName: 'Other Research Products'}">-->
277
<!--                </ng-container>-->
278
<!--              </div>-->
279
<!--            </div>-->
280
<!--            <div class="uk-margin-small-top uk-flex uk-flex-bottom">-->
281
<!--              <img src="assets/common-assets/graph.svg" style="opacity: 0.4">-->
282
<!--              <span class="uk-margin-small-left uk-text-small uk-text-baseline uk-text-muted">Powered by OpenAIRE Open Research Graph</span>-->
283
<!--            </div>-->
284

    
285
<!--            <ul class="custom-accordion" uk-accordion>-->
286

    
287
<!--              <li (click)="activeTab='Publications'; searchPublicationsInit()">-->
288
<!--                <a class="uk-accordion-title" href="#">-->
289
<!--                  Publications-->
290
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
291
<!--                  ({{fetchPublications.searchUtils.totalResults | number}})-->
292
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
293
<!--                </a>-->
294
<!--                <div class="uk-accordion-content">-->
295
<!--                  <errorMessages [status]="[fetchPublications.searchUtils.status]" [type]="'publications'"-->
296
<!--                                 tab_error_class=true></errorMessages>-->
297

    
298
<!--                  <div *ngIf="fetchPublications.searchUtils.status == errorCodes.DONE">-->
299
<!--                    <div class="uk-text-right" *ngIf="fetchPublications.searchUtils.totalResults > 10">-->
300
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
301
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchPublications"-->
302
<!--                         class="uk-button uk-button-text">-->
303
<!--                        View all {{fetchPublications.searchUtils.totalResults | number}} results-->
304
<!--                      </a>-->
305
<!--                    </div>-->
306
<!--                    <tab-result [(results)]="fetchPublications.results"-->
307
<!--                                [(status)]="fetchPublications.searchUtils.status"-->
308
<!--                                type="publication" urlParam="articleId">-->
309
<!--                    </tab-result>-->
310
<!--                  </div>-->
311
<!--                </div>-->
312
<!--              </li>-->
313

    
314
<!--              <li (click)="activeTab='Research Data'; searchDatasetsInit()">-->
315
<!--                <a class="uk-accordion-title" href="#">-->
316
<!--                  Research Data-->
317
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
318
<!--                  ({{fetchDatasets.searchUtils.totalResults | number}})-->
319
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
320
<!--                </a>-->
321
<!--                <div class="uk-accordion-content">-->
322
<!--                  <errorMessages [status]="[fetchDatasets.searchUtils.status]" [type]="'research data'"-->
323
<!--                                 tab_error_class=true></errorMessages>-->
324

    
325
<!--                  <div *ngIf="fetchDatasets.searchUtils.status == errorCodes.DONE">-->
326

    
327
<!--                    <div class="uk-text-right" *ngIf="fetchDatasets.searchUtils.totalResults > 10">-->
328
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
329
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchDatasets"-->
330
<!--                         class="uk-button uk-button-text">-->
331
<!--                        View all {{fetchDatasets.searchUtils.totalResults | number}} results-->
332
<!--                      </a>-->
333
<!--                    </div>-->
334
<!--                    <tab-result [(results)]="fetchDatasets.results"-->
335
<!--                                [(status)]="fetchDatasets.searchUtils.status"-->
336
<!--                                type="dataset" urlParam="datasetId">-->
337
<!--                    </tab-result>-->
338
<!--                  </div>-->
339
<!--                </div>-->
340
<!--              </li>-->
341

    
342
<!--              <li (click)="activeTab='Software'; searchSoftwareInit()">-->
343
<!--                <a class="uk-accordion-title" href="#">-->
344
<!--                  Software-->
345
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
346
<!--                  ({{fetchSoftware.searchUtils.totalResults | number}})-->
347
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
348
<!--                </a>-->
349
<!--                <div class="uk-accordion-content">-->
350
<!--                  <errorMessages [status]="[fetchSoftware.searchUtils.status]" [type]="'software'"-->
351
<!--                                 tab_error_class=true></errorMessages>-->
352

    
353
<!--                  <div *ngIf="fetchSoftware.searchUtils.status == errorCodes.DONE">-->
354

    
355
<!--                    <div class="uk-text-right" *ngIf="fetchSoftware.searchUtils.totalResults > 10">-->
356
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
357
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchSoftware"-->
358
<!--                         class="uk-button uk-button-text">-->
359
<!--                        View all {{fetchSoftware.searchUtils.totalResults | number}} results-->
360
<!--                      </a>-->
361
<!--                    </div>-->
362
<!--                    <tab-result [(results)]="fetchSoftware.results"-->
363
<!--                                [(status)]="fetchSoftware.searchUtils.status"-->
364
<!--                                type="software" urlParam="softwareId">-->
365
<!--                    </tab-result>-->
366
<!--                  </div>-->
367
<!--                </div>-->
368
<!--              </li>-->
369

    
370
<!--              <li (click)="activeTab='Other Research Products'; searchOrpsInit()">-->
371
<!--                <a class="uk-accordion-title" href="#">-->
372
<!--                  Other Research Products-->
373
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
374
<!--                  ({{fetchOrps.searchUtils.totalResults | number}})-->
375
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
376
<!--                </a>-->
377
<!--                <div class="uk-accordion-content">-->
378
<!--                  <errorMessages [status]="[fetchOrps.searchUtils.status]" [type]="'other research products'"-->
379
<!--                                 tab_error_class=true></errorMessages>-->
380

    
381
<!--                  <div *ngIf="fetchOrps.searchUtils.status == errorCodes.DONE">-->
382

    
383
<!--                    <div class="uk-text-right" *ngIf="fetchOrps.searchUtils.totalResults > 10">-->
384
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
385
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchOrps"-->
386
<!--                         class="uk-button uk-button-text">-->
387
<!--                        View all {{fetchOrps.searchUtils.totalResults | number}} results-->
388
<!--                      </a>-->
389
<!--                    </div>-->
390
<!--                    <tab-result [(results)]="fetchOrps.results"-->
391
<!--                                [(status)]="fetchOrps.searchUtils.status"-->
392
<!--                                type="other" urlParam="orpId">-->
393
<!--                    </tab-result>-->
394
<!--                  </div>-->
395
<!--                </div>-->
396
<!--              </li>-->
397

    
398
<!--              <li (click)="activeTab='Statistics'; statsClicked=true">-->
399
<!--                <a class="uk-accordion-title" href="#">-->
400
<!--                  Statistics-->
401
<!--                </a>-->
402
<!--                <div class="uk-accordion-content">-->
403
<!--                  <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status]"-->
404
<!--                                 [type]="'statistics'" tab_error_class=true></errorMessages>-->
405

    
406
<!--                  <div-->
407
<!--                    *ngIf="statsClicked && (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE)">-->
408

    
409
<!--                    <div>-->
410
<!--                      <p class="uk-text-bold">Research Results</p>-->
411
<!--                      <i-frame [url]=chartScientificResultsUrl></i-frame>-->
412
<!--                      <p class="uk-text-bold">Access Mode of Research Results</p>-->
413
<!--                      <i-frame [url]=chartAccessModeUrl></i-frame>-->
414
<!--                      <p class="uk-text-bold">By Datasource of Research Results</p>-->
415
<!--                      <i-frame [url]=chartDatasourcesUrl></i-frame>-->
416
<!--                    </div>-->
417
<!--                  </div>-->
418
<!--                </div>-->
419
<!--              </li>-->
420

    
421
<!--              <li (click)="metricsClicked=true; activeTab='Metrics'">-->
422
<!--                <a class="uk-accordion-title" href="#">-->
423
<!--                  Metrics-->
424
<!--                </a>-->
425
<!--                <div class="uk-accordion-content">-->
426
<!--                  <metrics *ngIf="metricsClicked" [pageViews]="pageViews"-->
427
<!--                           [id]="projectId" [entityType]="'projects'" [entity]="'Project'"-->
428
<!--                           (metricsResults)="metricsResults($event)" [properties]=properties>-->
429
<!--                  </metrics>-->
430
<!--                  <i-frame *ngIf="metricsClicked && totalViews > 0"-->
431
<!--                           [url]=viewsFrameUrl >-->
432
<!--                  </i-frame>-->
433
<!--                  <i-frame *ngIf="metricsClicked && totalDownloads > 0"-->
434
<!--                           [url]=downloadsFrameUrl>-->
435
<!--                  </i-frame>-->
436
<!--                </div>-->
437
<!--              </li>-->
438
<!--            </ul>-->
439
          </div>
440

    
441
          <div class="uk-width-1-3@m uk-width-1-1@s">
442
            <ul class="uk-list uk-card uk-card-default uk-padding-small">
443
<!--              <div *ngIf="isRouteAvailable('participate/direct-claim')">-->
444
<!--                <div class="uk-margin-auto uk-width-3-4">-->
445
<!--                  <button class="uk-button uk-width-1-1 portal-button">-->
446
<!--                    <span uk-icon="link"></span>-->
447
<!--                    Link this project to...-->
448
<!--                  </button>-->
449
<!--                </div>-->
450
<!--                <div class="uk-text-center uk-margin-expand uk-padding-small    uk-margin-auto  default-dropdown "-->
451
<!--                     uk-dropdown="mode:click">-->
452
<!--                  <div class="uk-grid uk-child-width-1-3 uk-width-large ">-->
453
<!--                    <div>-->
454
<!--                      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId,-->
455
<!--                      'project','result'])"-->
456
<!--                         routerLinkActive="router-link-active" routerLink="/participate/direct-claim">-->
457
<!--                        <button class="uk-icon-button portal-button">-->
458
<!--                        <span class="uk-icon">-->
459
<!--                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"-->
460
<!--                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"-->
461
<!--                                                                         width="12" x="3.5" y="2.5"></rect><polyline-->
462
<!--                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>-->
463
<!--                        </button>-->
464
<!--                        <div>Research results</div>-->
465
<!--                      </a>-->
466
<!--                    </div>-->
467
<!--                  </div>-->
468
<!--                </div>-->
469
<!--              </div>-->
470
<!--              <div *ngIf="isRouteAvailable('participate/deposit/learn-how')"-->
471
<!--                   class="uk-margin-small-top uk-margin-auto uk-width-3-4">-->
472
<!--                <a routerLinkActive="router-link-active" routerLink="/participate/deposit/learn-how"-->
473
<!--                   class="uk-button uk-button-primary uk-width-1-1">-->
474
<!--                      <span class="uk-icon">-->
475
<!--                        <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
476
<!--                          <polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline>-->
477
<!--                          <rect x="3" y="17" width="13" height="1"></rect>-->
478
<!--                          <line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line>-->
479
<!--                        </svg>-->
480
<!--                      </span>-->
481
<!--                  Deposit-->
482
<!--                </a>-->
483
<!--              </div>-->
484

    
485
<!--              <div class="uk-margin-top">-->
486
<!--                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share - Bookmark</div>-->
487
<!--                <div class="uk-margin-small-left uk-margin-small-right"><addThis></addThis></div>-->
488
<!--              </div>-->
489
              <!-- Metrics -->
490
<!--              <div *ngIf="hasMetrics" class="uk-margin-top">-->
491
<!--                <div class="sideInfoTitle uk-margin-small-bottom">Metrics</div>-->
492
<!--                <div uk-grid class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle">-->
493
<!--                  <div></div>&lt;!&ndash; Open Citations&ndash;&gt;-->
494
<!--                  <div>-->
495
<!--                    <metrics [pageViews]="pageViews"-->
496
<!--                             [id]="projectId" [entityType]="'projects'" [entity]="'project'"-->
497
<!--                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"-->
498
<!--                             (metricsResults)="metricsResults($event)" [properties]=properties>-->
499
<!--                    </metrics>-->
500
<!--                  </div>-->
501
<!--                </div>-->
502
<!--              </div>-->
503
<!--              <div class="uk-margin-top">-->
504
<!--                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share project's content</div>-->
505
<!--                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">-->
506
<!--                  <div class="uk-padding-small uk-padding-remove-vertical">-->
507
<!--                    <mat-select [(value)]="share_research_results_type"-->
508
<!--                                [disableOptionCentering]="true"-->
509
<!--                                panelClass="entitiesSelectionPanel"-->
510
<!--                                class="matSelection">-->
511
<!--                      <mat-option value="">Select content type</mat-option>-->
512
<!--                      <mat-option value="result">All research outcomes</mat-option>-->
513
<!--                      <mat-option value="publication">Publications</mat-option>-->
514
<!--                      <mat-option value="dataset">Research data</mat-option>-->
515
<!--                      <mat-option value="software">Software</mat-option>-->
516
<!--                      <mat-option value="other">Other research products</mat-option>-->
517
<!--                    </mat-select>-->
518
<!--                    <div *ngIf="share_research_results_type" class="uk-animation-slide-top-small">-->
519
<!--                      <ng-container *ngTemplateOutlet="share_research_results_box;-->
520
<!--                        context: {  dynamic_content: getDynamicContent(share_research_results_type) }">-->
521
<!--                      </ng-container>-->
522
<!--                    </div>-->
523
<!--                </div>-->
524
<!--              </div>-->
525
<!--                <div class="uk-margin-top">-->
526
<!--                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Download report</div>-->
527
<!--                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">-->
528
<!--&lt;!&ndash;                  <select class="select" id="download_report" name="download_report"&ndash;&gt;-->
529
<!--&lt;!&ndash;                          [(ngModel)]="download_research_results_type">&ndash;&gt;-->
530
<!--&lt;!&ndash;                    <option value="">Select content type</option>&ndash;&gt;-->
531
<!--&lt;!&ndash;                    <option value="results">All research outcomes</option>&ndash;&gt;-->
532
<!--&lt;!&ndash;                    <option value="publications">Publications</option>&ndash;&gt;-->
533
<!--&lt;!&ndash;                    <option value="datasets">Research data</option>&ndash;&gt;-->
534
<!--&lt;!&ndash;                    <option value="software">Software</option>&ndash;&gt;-->
535
<!--&lt;!&ndash;                    <option value="other">Other research products</option>&ndash;&gt;-->
536
<!--&lt;!&ndash;                  </select>&ndash;&gt;-->
537
<!--                  <div class="uk-padding-small uk-padding-remove-vertical">-->
538
<!--                    <mat-select *ngIf="projectInfo.funding &&-->
539
<!--                                      (fetchPublications.searchUtils.totalResults > 0 ||-->
540
<!--                                      fetchDatasets.searchUtils.totalResults > 0 ||-->
541
<!--                                      fetchSoftware.searchUtils.totalResults > 0 ||-->
542
<!--                                      fetchOrps.searchUtils.totalResults > 0)"-->
543
<!--                                [(value)]="download_research_results_type"-->
544
<!--                                [disableOptionCentering]="true"-->
545
<!--                                panelClass="entitiesSelectionPanel"-->
546
<!--                                class="matSelection">-->
547
<!--                      <mat-option value="">Select content type</mat-option>-->
548
<!--                      <mat-option value="results">All research outcomes</mat-option>-->
549
<!--                      <mat-option value="publications"-->
550
<!--                                  [disabled]="fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE"-->
551
<!--                                  [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"-->
552
<!--                                  title="No report available">-->
553
<!--                        Publications-->
554
<!--                      </mat-option>-->
555
<!--                      <mat-option value="datasets"-->
556
<!--                                  [disabled]="fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE"-->
557
<!--                                  [attr.uk-tooltip]="(fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"-->
558
<!--                                  title="No report available">-->
559
<!--                        Research data-->
560
<!--                      </mat-option>-->
561
<!--                      <mat-option value="software"-->
562
<!--                                  [disabled]="fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE"-->
563
<!--                                  [attr.uk-tooltip]="(fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"-->
564
<!--                                  title="No report available">-->
565
<!--                        Software-->
566
<!--                      </mat-option>-->
567
<!--                      <mat-option value="other"-->
568
<!--                                  [disabled]="fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE"-->
569
<!--                                  [attr.uk-tooltip]="(fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"-->
570
<!--                                  title="No report available">-->
571
<!--                        Other research products-->
572
<!--                      </mat-option>-->
573
<!--                    </mat-select>-->
574
<!--                    <div *ngIf="download_research_results_type" class="uk-animation-slide-top-small">-->
575
<!--                      <ng-container *ngTemplateOutlet="download_research_results_box;-->
576
<!--                          context: {  type: download_research_results_type,-->
577
<!--                                      fileName_type: getFileNameType(download_research_results_type),-->
578
<!--                                      csvParams: getCsvParams(download_research_results_type) }">-->
579
<!--                      </ng-container>-->
580
<!--                    </div>-->
581

    
582
<!--                    <div *ngIf="!projectInfo.funding ||-->
583
<!--                          (fetchPublications.searchUtils.totalResults == 0 &&-->
584
<!--                          fetchDatasets.searchUtils.totalResults == 0 &&-->
585
<!--                          fetchSoftware.searchUtils.totalResults == 0 &&-->
586
<!--                          fetchOrps.searchUtils.totalResults == 0)"-->
587
<!--                          class="uk-text-muted">-->
588
<!--                      No reports available-->
589
<!--                    </div>-->
590
<!--                  </div>-->
591
<!--                </div>-->
592
<!--              </div>-->
593
<!--              </div>-->
594

    
595

    
596
<!--              NEW-->
597
              <li><addThis></addThis></li>
598
              <li *ngIf="isRouteAvailable('participate/direct-claim')">
599
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openLinkProjectModal()">
600
                  <span class="uk-icon-button portal-button" uk-icon="link"></span>
601
                  Link this project to...
602
                </a>
603
                <modal-alert #linkProjectModal>
604
                  <div class="uk-grid uk-child-width-1-3 uk-width-large ">
605
                    <div>
606
                      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId,
607
                      'project','result'])"
608
                         routerLinkActive="router-link-active" routerLink="/participate/direct-claim">
609
                        <button class="uk-icon-button portal-button">
610
                        <span class="uk-icon">
611
                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
612
                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
613
                                                                         width="12" x="3.5" y="2.5"></rect><polyline
614
                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
615
                        </button>
616
                        <div>Research results</div>
617
                      </a>
618
                    </div>
619
                  </div>
620
                </modal-alert>
621
              </li>
622
              <li *ngIf="isRouteAvailable('participate/deposit/learn-how')">
623
              <a class="uk-link-text uk-text-bold uk-text-uppercase"
624
                 routerLinkActive="router-link-active" routerLink="/participate/deposit/learn-how">
625
                  <span class="uk-icon uk-icon-button uk-button-primary">
626
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">
627
                      <polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline>
628
                      <rect x="3" y="17" width="13" height="1"></rect>
629
                      <line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line>
630
                    </svg>
631
                  </span>
632
                  Deposit your research
633
                </a>
634
              </li>
635
              <li>
636
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openShareResultsModal()">
637
                  <span class="uk-icon uk-icon-button uk-button-default">
638
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="code" ratio="1">
639
                      <polyline fill="none" stroke="#000" stroke-width="1.01" points="13,4 19,10 13,16"></polyline>
640
                      <polyline fill="none" stroke="#000" stroke-width="1.01" points="7,4 1,10 7,16"></polyline>
641
                    </svg>
642
                  </span>
643
                  Share results
644
                </a>
645
                <modal-alert #shareResultsModal>
646
                  <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
647
                    <div class="uk-padding-small uk-padding-remove-vertical">
648
                      <mat-form-field class="matSelectionFormField uk-width-1-1">
649
                        <mat-label>Select content type to share</mat-label>
650
                        <mat-select [(value)]="share_research_results_type"
651
                                    [disableOptionCentering]="true"
652
                                    panelClass="entitiesSelectionPanel"
653
                                    class="matSelection">
654
<!--                          <mat-option value="">Select content type</mat-option>-->
655
                          <mat-option value="result">All research outcomes</mat-option>
656
                          <mat-option value="publication">Publications</mat-option>
657
                          <mat-option value="dataset">Research data</mat-option>
658
                          <mat-option value="software">Software</mat-option>
659
                          <mat-option value="other">Other research products</mat-option>
660
                        </mat-select>
661
                      </mat-form-field>
662
                      <div *ngIf="share_research_results_type" class="uk-animation-slide-top-small">
663
                        <ng-container *ngTemplateOutlet="share_research_results_box;
664
                        context: {  dynamic_content: getDynamicContent(share_research_results_type) }">
665
                        </ng-container>
666
                      </div>
667
                    </div>
668
                  </div>
669
                </modal-alert>
670
              </li>
671
              <li>
672
                <a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openDownloadReportModal()">
673
                  <span class="uk-icon uk-icon-button uk-button-secondary">
674
                    <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="download" ratio="1">
675
                      <polyline fill="none" stroke="#000" points="14,10 9.5,14.5 5,10"></polyline>
676
                      <rect x="3" y="17" width="13" height="1"></rect>
677
                      <line fill="none" stroke="#000" x1="9.5" y1="13.91" x2="9.5" y2="3"></line>
678
                    </svg>
679
                  </span>
680
                  Download report
681
                </a>
682
                <modal-alert #downloadReportModal>
683
                  <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
684
                    <div class="uk-padding-small uk-padding-remove-vertical">
685
                      <mat-form-field class="matSelectionFormField uk-width-1-1">
686
                        <mat-label>Select content type report to download</mat-label>
687
                        <mat-select *ngIf="projectInfo.funding &&
688
                                        (fetchPublications.searchUtils.totalResults > 0 ||
689
                                        fetchDatasets.searchUtils.totalResults > 0 ||
690
                                        fetchSoftware.searchUtils.totalResults > 0 ||
691
                                        fetchOrps.searchUtils.totalResults > 0)"
692
                                    [(value)]="download_research_results_type"
693
                                    [disableOptionCentering]="true"
694
                                    panelClass="entitiesSelectionPanel"
695
                                    class="matSelection">
696
<!--                          <mat-option value="">Select content type</mat-option>-->
697
                          <mat-option value="results">All research outcomes</mat-option>
698
                          <mat-option value="publications"
699
                                      [disabled]="fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE"
700
                                      [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
701
                                      title="No report available">
702
                            Publications
703
                          </mat-option>
704
                          <mat-option value="datasets"
705
                                      [disabled]="fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE"
706
                                      [attr.uk-tooltip]="(fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
707
                                      title="No report available">
708
                            Research data
709
                          </mat-option>
710
                          <mat-option value="software"
711
                                      [disabled]="fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE"
712
                                      [attr.uk-tooltip]="(fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
713
                                      title="No report available">
714
                            Software
715
                          </mat-option>
716
                          <mat-option value="other"
717
                                      [disabled]="fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE"
718
                                      [attr.uk-tooltip]="(fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
719
                                      title="No report available">
720
                            Other research products
721
                          </mat-option>
722
                        </mat-select>
723
                      </mat-form-field>
724
                      <div *ngIf="download_research_results_type" class="uk-animation-slide-top-small">
725
                        <ng-container *ngTemplateOutlet="download_research_results_box;
726
                          context: {  type: download_research_results_type,
727
                                      fileName_type: getFileNameType(download_research_results_type),
728
                                      csvParams: getCsvParams(download_research_results_type) }">
729
                        </ng-container>
730
                      </div>
731

    
732
                      <div *ngIf="!projectInfo.funding ||
733
                          (fetchPublications.searchUtils.totalResults == 0 &&
734
                          fetchDatasets.searchUtils.totalResults == 0 &&
735
                          fetchSoftware.searchUtils.totalResults == 0 &&
736
                          fetchOrps.searchUtils.totalResults == 0)"
737
                           class="uk-text-muted">
738
                        No reports available
739
                      </div>
740
                    </div>
741
                  </div>
742
                </modal-alert>
743
              </li>
744
              <!-- Metrics -->
745
              <li *ngIf="hasMetrics" class="uk-margin-top">
746
                <div uk-grid class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle">
747
                  <div></div><!-- Open Citations-->
748
                  <div>
749
                    <metrics [pageViews]="pageViews"
750
                             [id]="projectId" [entityType]="'projects'" [entity]="'project'"
751
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
752
                             (metricsResults)="metricsResults($event)" [properties]=properties>
753
                    </metrics>
754
                  </div>
755
                </div>
756
              </li>
757

    
758

    
759
            </ul>
760
            <div class="uk-margin-small-top uk-text-muted uk-text-small uk-text-right">
761
              Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
762
            </div>
763
            <modal-loading></modal-loading>
764
            <modal-alert #AlertModalCsvError></modal-alert>
765

    
766
          </div>
767
        </div>
768

    
769
        <div *ngIf="projectInfo != null">
770

    
771
        <div class="main-tabs-div">
772
            <my-tabs (selectedActiveTab)="onSelectActiveTab($event)">
773
              <my-tab [tabTitle]="'Project Summary'" [tabId]="'summary'">
774
                <div class="uk-grid uk-margin-remove">
775
                  <div  *ngIf="projectInfo.description" class="uk-width-expand uk-padding uk-inline">
776
                    <!-- Description -->
777
                    <div class="uk-text-muted uk-text-small">Description</div>
778
                    <div *ngIf="projectInfo.description" class="uk-margin-bottom">
779
                      <div class="uk-text-justify uk-text-small uk-height-max-medium uk-overflow-auto">
780
                        <span>{{projectInfo.description.substring(0, showNumDescription)}}</span>
781
                        <span *ngIf="showNumDescription == thresholdDescription &&
782
                       projectInfo.description.length > thresholdDescription">...</span>
783
                      </div>
784
                      <div *ngIf="showNumDescription == thresholdDescription &&
785
                                    projectInfo.description.length > thresholdDescription" class="uk-text-right">
786
                        <a (click)="showNumDescription = projectInfo.description.length;">
787
                          Read more
788
                        </a>
789
                      </div>
790
                      <div *ngIf="projectInfo.description && showNumDescription > thresholdDescription"
791
                           class="uk-text-right">
792
                        <a (click)="showNumDescription = thresholdDescription;">
793
                          Read less
794
                        </a>
795
                      </div>
796
                    </div>
797

    
798
                  </div>
799
                  <div *ngIf="projectInfo.organizations && projectInfo.organizations.length > 0"
800
                       class="uk-width-1-3 uk-padding right-column uk-inline">
801
                    <!-- Organizations -->
802
                    <div class="uk-text-muted uk-text-small">Organizations</div>
803
                    <div class="uk-height-max-medium uk-overflow-auto">
804
                        <span *ngFor="let organization of projectInfo.organizations.slice(0, showNumOrganizations) let i=index"
805
                              [attr.uk-tooltip]="organization.acronym && organization.name ? 'pos:right; delay:10' : 'cls: uk-invisible'"
806
                              [title]="organization.name">
807
                          <a *ngIf="organization.id"
808
                             [queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active"
809
                             routerLink="/search/organization">
810
                            <u>{{(organization.acronym) ? organization.acronym : ''}}</u>
811
                            <u>{{(!organization.acronym && organization.name) ? organization.name : ''}}</u>
812
                          </a>
813
                          <span *ngIf="!organization.id">
814
                            <span *ngIf="organization.acronym">{{organization.acronym}}</span>
815
                            <span *ngIf="!organization.acronym && organization.name">{{organization.name}}</span>
816
                          </span>
817
                          <span *ngIf="(i < projectInfo.organizations.length-1)">, </span>
818
                        </span>
819
                      <span *ngIf="showNumOrganizations == thresholdOrganizations &&  projectInfo.organizations.length > thresholdOrganizations">	... </span>
820
                    </div>
821
                    <div *ngIf="showNumOrganizations == thresholdOrganizations && projectInfo.organizations.length > thresholdOrganizations"
822
                         class="uk-width-1-1 uk-text-right uk-margin-small-top">
823
                      <a (click)="showNumOrganizations = projectInfo.organizations.length;">
824
                        View all {{projectInfo.organizations.length | number}} organizations
825
                      </a>
826
                    </div>
827
                    <div *ngIf="showNumOrganizations > thresholdOrganizations"
828
                         class="uk-width-1-1 uk-text-right uk-margin-small-top">
829
                      <a (click)="showNumOrganizations = thresholdOrganizations;">View less organizations</a>
830
                    </div>
831
                  </div>
832
                </div>
833
              </my-tab>
834
              <my-tab  *ngIf="fetchPublications.searchUtils.totalResults > 0"
835
                       [tabTitle]="'Publications'" [tabNumber]="fetchPublications.searchUtils.totalResults"
836
                       [tabId]="'publications'">
837
                <div class="uk-grid uk-margin-remove">
838
                  <div class="uk-width-expand uk-padding">
839
<!--                    <errorMessages [status]="[fetchPublications.searchUtils.status]" [type]="'publications'"-->
840
<!--                                   tab_error_class=true></errorMessages>-->
841

    
842
<!--                    <div *ngIf="fetchPublications.searchUtils.status == errorCodes.DONE">-->
843
<!--                      <div class="uk-inline uk-flex uk-flex-right">-->
844
<!--                        <span class="uk-position-left uk-text-middle uk-flex-middle uk-flex">-->
845
<!--                          <span>Top 10</span><span class="space uk-text-muted">PUBLICATION</span>-->
846
<!--                        </span>-->
847
<!--                        <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
848
<!--                           routerLinkActive="router-link-active" [routerLink]="linkToSearchPublications">-->
849
<!--                          <button *ngIf="fetchPublications.searchUtils.totalResults > 10"-->
850
<!--                                  class="uk-button uk-button-small portal-button">-->
851
<!--                            <span uk-icon="search"></span>-->
852
<!--                            View more-->
853
<!--                          </button>-->
854
<!--                        </a>-->
855

    
856
<!--                      </div>-->
857
<!--                      <search-result [results]="fetchPublications.results"-->
858
<!--                                  [status]="fetchPublications.searchUtils.status"-->
859
<!--                                  type="publication" urlParam="articleId"-->
860
<!--                                  dividerNotCard="true">-->
861
<!--                      </search-result>-->
862
<!--                    </div>-->
863
                    <ng-container *ngTemplateOutlet="search_tab;
864
                                context: {  fetch: fetchPublications, type: 'publication', urlParam: 'articleId'}">
865
                    </ng-container>
866
                  </div>
867

    
868
                  <div class="uk-width-1-3 uk-padding right-column">
869
                    <div>test publications</div>
870
                  </div>
871
                </div>
872

    
873
                <!--                  <ng-container *ngTemplateOutlet="tab_content; context: {-->
874
                <!--                                  resultType: 'publication', results: publicationResults,-->
875
                <!--                                  totalResults: publicationTotal, type: 'publication', typeName: 'publication'}">-->
876
                <!--                  </ng-container>-->
877
              </my-tab>
878
              <my-tab  *ngIf="fetchDatasets.searchUtils.totalResults > 0"
879
                       [tabTitle]="'Research Data'" [tabNumber]="fetchDatasets.searchUtils.totalResults"
880
                       [tabId]="'datasets'">
881
                <div class="uk-grid uk-margin-remove">
882
                  <div class="uk-width-expand uk-padding">
883
                    <ng-container *ngTemplateOutlet="search_tab;
884
                                    context: {  fetch: fetchDatasets, type: 'dataset', urlParam: 'datasetId'}">
885
                    </ng-container>
886
                  </div>
887

    
888
                  <div class="uk-width-1-3 uk-padding right-column">
889
                    <div>test research data</div>
890
                  </div>
891
                </div>
892
              </my-tab>
893
              <my-tab  *ngIf="fetchSoftware.searchUtils.totalResults > 0"
894
                       [tabTitle]="'Software'" [tabNumber]="fetchSoftware.searchUtils.totalResults"
895
                       [tabId]="'software'">
896
                <div class="uk-grid uk-margin-remove">
897
                  <div class="uk-width-expand uk-padding">
898
                    <ng-container *ngTemplateOutlet="search_tab;
899
                                    context: {  fetch: fetchSoftware, type: 'software', urlParam: 'softwareId'}">
900
                    </ng-container>
901
                  </div>
902

    
903
                  <div class="uk-width-1-3 uk-padding right-column">
904
                    <div>test software</div>
905
                  </div>
906
                </div>
907
              </my-tab>
908
              <my-tab  *ngIf="fetchOrps.searchUtils.totalResults > 0"
909
                       [tabTitle]="'Other Research'" [tabNumber]="fetchOrps.searchUtils.totalResults"
910
                       [tabId]="'other'">
911
                <div class="uk-grid uk-margin-remove">
912
                  <div class="uk-width-expand uk-padding">
913
                    <ng-container *ngTemplateOutlet="search_tab;
914
                                    context: {  fetch: fetchOrps, type: 'other', urlParam: 'orpId'}">
915
                    </ng-container>
916
                  </div>
917

    
918
                  <div class="uk-width-1-3 uk-padding right-column">
919
                    <div>test other research products</div>
920
                  </div>
921
                </div>
922
              </my-tab>
923
              <my-tab *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
924
                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
925
                      [tabTitle]="'Statistics'" [statistics]="true" [tabId]="'statistics'">
926
                <div class="">
927
                  <div class="uk-width-expand uk-padding">
928
                    <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
929
                                  fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
930
                                   [type]="'statistics'" tab_error_class=true></errorMessages>
931

    
932
                    <div
933
                      *ngIf="statsClicked &&
934
                              (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
935
                              || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)"
936
                        class="uk-grid uk-child-width-1-2">
937
                      <div class="uk-padding uk-padding-remove-top">
938
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Produced research
939
                          outcomes per year</div>
940
                        <i-frame [url]=chartScientificResultsUrl></i-frame>
941
                      </div>
942
                      <div class="uk-padding uk-padding-remove-top">
943
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Access mode of research
944
                          outcomes</div>
945
                        <i-frame [url]=chartAccessModeUrl></i-frame>
946
                      </div>
947
                      <div class="uk-padding uk-padding-remove-top">
948
                        <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Research outcomes per datasource</div>
949
                        <i-frame [url]=chartDatasourcesUrl></i-frame>
950
                      </div>
951
                    </div>
952
                  </div>
953
                </div>
954
              </my-tab>
955
            </my-tabs>
956
          </div>
957
          <div class="uk-margin-small-top uk-flex uk-flex-bottom">
958
            <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
959
            <span class="uk-margin-small-left uk-text-small uk-text-baseline uk-text-muted">Powered by OpenAIRE Open Research Graph</span>
960
          </div>
961

    
962

    
963
        </div>
964
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
965
                [texts]="pageContents['bottom']"></helper>
966
    </div>
967

    
968
    <!-- Statistics -->
969
    <modal-alert *ngIf="projectInfo &&
970
                        (fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
971
                        || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
972
                 classBody="uk-width-xxlarge uk-padding-remove-right" #statisticsModal>
973
      <landing-header [properties]="properties" [title]="projectName"
974
                      [subTitle]="projectInfo.acronym ? projectInfo.title : ''"
975
                      [entityType]="'project'"
976
                      [startDate]="projectInfo.startDate"
977
                      [endDate]="projectInfo.endDate"
978
                      [status]="projectInfo.status">
979
      </landing-header>
980
      <div class="uk-margin-medium-top uk-margin-medium-right">
981
        <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
982
                                  fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
983
                       [type]="'statistics'" tab_error_class=true></errorMessages>
984

    
985
        <div
986
          *ngIf="statsClicked &&
987
          (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
988
          || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)">
989
          <div class="uk-padding uk-padding-remove-top">
990
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Produced research
991
              outcomes per year</div>
992
            <i-frame [url]=chartScientificResultsUrl></i-frame>
993
          </div>
994
          <div class="uk-padding uk-padding-remove-top">
995
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Access mode of research
996
              outcomes</div>
997
            <i-frame [url]=chartAccessModeUrl></i-frame>
998
          </div>
999
          <div class="uk-padding uk-padding-remove-top">
1000
            <div *ngIf="!properties.useNewStatistisTool" class="uk-text-center uk-text-large">Research outcomes per datasource</div>
1001
            <i-frame [url]=chartDatasourcesUrl></i-frame>
1002
          </div>
1003
        </div>
1004
      </div>
1005
    </modal-alert>
1006
  </div>
1007
</div>
1008
  <feedback *ngIf="projectInfo" [projectInfo]="projectInfo"
1009
            [properties]="properties" [entityType]="'project'" [title]="projectName" [fields]="feedbackFields"
1010
            [showForm]="showFeedback" (show)="showFeedback = $event"></feedback>
1011
</div>
(1-1/5)