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
    <li class="uk-margin-top">
5
      <a class="clickable"
6
         uk-toggle="target: #dynamic_content_id; animation:uk-animation-fade"><span
7
        class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20"
8
                             xmlns="http://www.w3.org/2000/svg" icon="code" ratio="1"><polyline
9
        fill="none" stroke="#000" stroke-width="1.01" points="13,4 19,10 13,16"></polyline><polyline
10
        fill="none" stroke="#000" stroke-width="1.01"
11
        points="7,4 1,10 7,16"></polyline></svg></span> Include in your site (HTML)</a>
12
      <div hidden id="dynamic_content_id" class="uk-margin-small-top">
13
        <div class="uk-grid">
14
          <a
15
            class="clipboard_btn uk-padding-remove-left uk-margin-small-left uk-text-right uk-width-1-1"
16
            data-clipboard-target="#clipboard" title="Copy to clipboard">
17
            <button class="uk-button uk-button-small uk-button-default uk-icon">
18
              <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="copy" ratio="1">
19
                <rect fill="none" stroke="#000" x="3.5" y="2.5" width="12" height="16"></rect>
20
                <polyline fill="none" stroke="#000" points="5 0.5 17.5 0.5 17.5 17"></polyline>
21
              </svg>
22
              <span class="uk-margin-small-left">COPY</span>
23
            </button>
24
          </a>
25
        </div>
26

    
27
        <pre class="box-content uk-padding-remove-bottom uk-margin-remove-bottom"><code
28
          id="clipboard">{{dynamic_content}}</code></pre>
29
        <div class="uk-text-small uk-margin-small-top">
30
          For further information contact us at
31
          <u><a [href]="'mailto:'+properties.helpdeskEmail" class="uk-link-text">{{properties.helpdeskEmail}}</a></u>
32
        </div>
33

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

    
76
<ng-template #search_box let-fetch="fetch" let-type="type" let-typeName="typeName">
77
  <div *ngIf="fetch.searchUtils.totalResults > 0">
78
    <div class="uk-position-relative">
79
      <a [queryParams]="routerHelper.createQueryParams(['f0', 'fv0', 'type', 'qf'], ['relprojectid', projectId, type, 'false'])"
80
         [routerLink]="properties.searchLinkToAdvancedResults" target="_blank">
81
        <span class="custom-external uk-position-top-right uk-margin-small-right uk-margin-small-top"></span>
82
        <div class="header target uk-text-bold">{{typeName}}</div>
83
        <div class="icon uk-position-center" uk-icon="icon: search;"></div>
84
        <div class="footer target uk-position-relative">
85
          <span class="uk-text-bold uk-position-center">{{fetch.searchUtils.totalResults | number}}</span>
86
        </div>
87
      </a>
88
    </div>
89
  </div>
90
</ng-template>
91

    
92
<div id="tm-main" class="landing uk-section uk-padding-remove-top uk-margin-small-top tm-middle">
93
  <div *ngIf="!showFeedback" uk-grid>
94
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
95

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

    
249
            <!-- Description -->
250
            <div *ngIf="projectInfo.description" class="uk-margin-bottom">
251
              <div class="uk-text-justify uk-text-small uk-height-max-medium uk-overflow-auto">
252
                <span class="uk-text-muted">Description: </span>
253
                <span>{{projectInfo.description.substring(0, showNumDescription)}}</span>
254
                <span *ngIf="showNumDescription == thresholdDescription &&
255
                       projectInfo.description.length > thresholdDescription">...</span>
256
              </div>
257
              <div *ngIf="showNumDescription == thresholdDescription &&
258
                    projectInfo.description.length > thresholdDescription" class="uk-text-right">
259
                <a (click)="showNumDescription = projectInfo.description.length;">
260
                  View more
261
                </a>
262
              </div>
263
              <div *ngIf="projectInfo.description && showNumDescription > thresholdDescription"
264
                   class="uk-text-right">
265
                <a (click)="showNumDescription = thresholdDescription;">
266
                  View less
267
                </a>
268
              </div>
269
            </div>
270

    
271
            <div *ngIf="(fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
272
                       || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
273
              class="uk-margin-medium-top">
274
              <div class="uk-margin-top simple-buttons uk-flex uk-flex-middle">
275
                <div (click)="openStatistics()" class="clickable uk-margin-right">
276
                  <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
277
                    <path d="M0 0h24v24H0z" fill="none"></path>
278
                    <path id="statistics-bars" d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"></path>
279
                  </svg>
280
                  <span class="uk-text-middle space">View statistics</span>
281
                </div>
282
              </div>
283

    
284
              <div class="uk-margin-top advanced-buttons uk-grid-small uk-child-width-1-4@s uk-child-width-1-2"
285
                   uk-height-match="target: .target; row: false"
286
                   uk-grid>
287
                <ng-container *ngTemplateOutlet="search_box;
288
                            context: {  fetch: fetchPublications, type: 'publications', typeName: 'Publications'}">
289
                </ng-container>
290
                <ng-container *ngTemplateOutlet="search_box;
291
                            context: {  fetch: fetchDatasets, type: 'datasets', typeName: 'Research Data'}">
292
                </ng-container>
293
                <ng-container *ngTemplateOutlet="search_box;
294
                            context: {  fetch: fetchSoftware, type: 'software', typeName: 'Software'}">
295
                </ng-container>
296
                <ng-container *ngTemplateOutlet="search_box;
297
                            context: {  fetch: fetchOrps, type: 'other', typeName: 'Other Research Products'}">
298
                </ng-container>
299
              </div>
300
            </div>
301
            <div class="uk-margin-small-top uk-flex uk-flex-bottom">
302
              <img src="assets/common-assets/graph.svg" style="opacity: 0.4">
303
              <span class="uk-margin-small-left uk-text-small uk-text-baseline uk-text-muted">Powered by OpenAIRE Open Research Graph</span>
304
            </div>
305

    
306
<!--            <ul class="custom-accordion" uk-accordion>-->
307

    
308
<!--              <li (click)="activeTab='Publications'; searchPublicationsInit()">-->
309
<!--                <a class="uk-accordion-title" href="#">-->
310
<!--                  Publications-->
311
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
312
<!--                  ({{fetchPublications.searchUtils.totalResults | number}})-->
313
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
314
<!--                </a>-->
315
<!--                <div class="uk-accordion-content">-->
316
<!--                  <errorMessages [status]="[fetchPublications.searchUtils.status]" [type]="'publications'"-->
317
<!--                                 tab_error_class=true></errorMessages>-->
318

    
319
<!--                  <div *ngIf="fetchPublications.searchUtils.status == errorCodes.DONE">-->
320
<!--                    <div class="uk-text-right" *ngIf="fetchPublications.searchUtils.totalResults > 10">-->
321
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
322
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchPublications"-->
323
<!--                         class="uk-button uk-button-text">-->
324
<!--                        View all {{fetchPublications.searchUtils.totalResults | number}} results-->
325
<!--                      </a>-->
326
<!--                    </div>-->
327
<!--                    <tab-result [(results)]="fetchPublications.results"-->
328
<!--                                [(status)]="fetchPublications.searchUtils.status"-->
329
<!--                                type="publication" urlParam="articleId">-->
330
<!--                    </tab-result>-->
331
<!--                  </div>-->
332
<!--                </div>-->
333
<!--              </li>-->
334

    
335
<!--              <li (click)="activeTab='Research Data'; searchDatasetsInit()">-->
336
<!--                <a class="uk-accordion-title" href="#">-->
337
<!--                  Research Data-->
338
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
339
<!--                  ({{fetchDatasets.searchUtils.totalResults | number}})-->
340
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
341
<!--                </a>-->
342
<!--                <div class="uk-accordion-content">-->
343
<!--                  <errorMessages [status]="[fetchDatasets.searchUtils.status]" [type]="'research data'"-->
344
<!--                                 tab_error_class=true></errorMessages>-->
345

    
346
<!--                  <div *ngIf="fetchDatasets.searchUtils.status == errorCodes.DONE">-->
347

    
348
<!--                    <div class="uk-text-right" *ngIf="fetchDatasets.searchUtils.totalResults > 10">-->
349
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
350
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchDatasets"-->
351
<!--                         class="uk-button uk-button-text">-->
352
<!--                        View all {{fetchDatasets.searchUtils.totalResults | number}} results-->
353
<!--                      </a>-->
354
<!--                    </div>-->
355
<!--                    <tab-result [(results)]="fetchDatasets.results"-->
356
<!--                                [(status)]="fetchDatasets.searchUtils.status"-->
357
<!--                                type="dataset" urlParam="datasetId">-->
358
<!--                    </tab-result>-->
359
<!--                  </div>-->
360
<!--                </div>-->
361
<!--              </li>-->
362

    
363
<!--              <li (click)="activeTab='Software'; searchSoftwareInit()">-->
364
<!--                <a class="uk-accordion-title" href="#">-->
365
<!--                  Software-->
366
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
367
<!--                  ({{fetchSoftware.searchUtils.totalResults | number}})-->
368
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
369
<!--                </a>-->
370
<!--                <div class="uk-accordion-content">-->
371
<!--                  <errorMessages [status]="[fetchSoftware.searchUtils.status]" [type]="'software'"-->
372
<!--                                 tab_error_class=true></errorMessages>-->
373

    
374
<!--                  <div *ngIf="fetchSoftware.searchUtils.status == errorCodes.DONE">-->
375

    
376
<!--                    <div class="uk-text-right" *ngIf="fetchSoftware.searchUtils.totalResults > 10">-->
377
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
378
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchSoftware"-->
379
<!--                         class="uk-button uk-button-text">-->
380
<!--                        View all {{fetchSoftware.searchUtils.totalResults | number}} results-->
381
<!--                      </a>-->
382
<!--                    </div>-->
383
<!--                    <tab-result [(results)]="fetchSoftware.results"-->
384
<!--                                [(status)]="fetchSoftware.searchUtils.status"-->
385
<!--                                type="software" urlParam="softwareId">-->
386
<!--                    </tab-result>-->
387
<!--                  </div>-->
388
<!--                </div>-->
389
<!--              </li>-->
390

    
391
<!--              <li (click)="activeTab='Other Research Products'; searchOrpsInit()">-->
392
<!--                <a class="uk-accordion-title" href="#">-->
393
<!--                  Other Research Products-->
394
<!--                  &lt;!&ndash; <span class="uk-badge uk-badge-notification"> &ndash;&gt;-->
395
<!--                  ({{fetchOrps.searchUtils.totalResults | number}})-->
396
<!--                  &lt;!&ndash; </span> &ndash;&gt;-->
397
<!--                </a>-->
398
<!--                <div class="uk-accordion-content">-->
399
<!--                  <errorMessages [status]="[fetchOrps.searchUtils.status]" [type]="'other research products'"-->
400
<!--                                 tab_error_class=true></errorMessages>-->
401

    
402
<!--                  <div *ngIf="fetchOrps.searchUtils.status == errorCodes.DONE">-->
403

    
404
<!--                    <div class="uk-text-right" *ngIf="fetchOrps.searchUtils.totalResults > 10">-->
405
<!--                      <a [queryParams]="routerHelper.createQueryParams(['project', 'po'], [projectId, 'and'])"-->
406
<!--                         routerLinkActive="router-link-active" [routerLink]="linkToSearchOrps"-->
407
<!--                         class="uk-button uk-button-text">-->
408
<!--                        View all {{fetchOrps.searchUtils.totalResults | number}} results-->
409
<!--                      </a>-->
410
<!--                    </div>-->
411
<!--                    <tab-result [(results)]="fetchOrps.results"-->
412
<!--                                [(status)]="fetchOrps.searchUtils.status"-->
413
<!--                                type="other" urlParam="orpId">-->
414
<!--                    </tab-result>-->
415
<!--                  </div>-->
416
<!--                </div>-->
417
<!--              </li>-->
418

    
419
<!--              <li (click)="activeTab='Statistics'; statsClicked=true">-->
420
<!--                <a class="uk-accordion-title" href="#">-->
421
<!--                  Statistics-->
422
<!--                </a>-->
423
<!--                <div class="uk-accordion-content">-->
424
<!--                  <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status]"-->
425
<!--                                 [type]="'statistics'" tab_error_class=true></errorMessages>-->
426

    
427
<!--                  <div-->
428
<!--                    *ngIf="statsClicked && (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE)">-->
429

    
430
<!--                    <div>-->
431
<!--                      <p class="uk-text-bold">Research Results</p>-->
432
<!--                      <i-frame [url]=chartScientificResultsUrl></i-frame>-->
433
<!--                      <p class="uk-text-bold">Access Mode of Research Results</p>-->
434
<!--                      <i-frame [url]=chartAccessModeUrl></i-frame>-->
435
<!--                      <p class="uk-text-bold">By Datasource of Research Results</p>-->
436
<!--                      <i-frame [url]=chartDatasourcesUrl></i-frame>-->
437
<!--                    </div>-->
438
<!--                  </div>-->
439
<!--                </div>-->
440
<!--              </li>-->
441

    
442
<!--              <li (click)="metricsClicked=true; activeTab='Metrics'">-->
443
<!--                <a class="uk-accordion-title" href="#">-->
444
<!--                  Metrics-->
445
<!--                </a>-->
446
<!--                <div class="uk-accordion-content">-->
447
<!--                  <metrics *ngIf="metricsClicked" [pageViews]="pageViews"-->
448
<!--                           [id]="projectId" [entityType]="'projects'" [entity]="'Project'"-->
449
<!--                           (metricsResults)="metricsResults($event)" [properties]=properties>-->
450
<!--                  </metrics>-->
451
<!--                  <i-frame *ngIf="metricsClicked && totalViews > 0"-->
452
<!--                           [url]=viewsFrameUrl >-->
453
<!--                  </i-frame>-->
454
<!--                  <i-frame *ngIf="metricsClicked && totalDownloads > 0"-->
455
<!--                           [url]=downloadsFrameUrl>-->
456
<!--                  </i-frame>-->
457
<!--                </div>-->
458
<!--              </li>-->
459
<!--            </ul>-->
460
          </div>
461

    
462
          <div class="uk-width-1-3@m uk-width-1-1@s">
463
            <div class="uk-card uk-card-default uk-padding-small">
464
<!--              <div *ngIf="isRouteAvailable('participate/direct-claim') " class=" uk-margin-small-bottom">-->
465

    
466
<!--                <button class="   uk-button portal-button uk-margin-small-top uk-width-1-1">-->
467
<!--              <span class="uk-icon">-->
468
<!--                   <svg icon="link" ratio="1" xmlns="http://www.w3.org/2000/svg" width="25" viewBox="0 0 20 20"-->
469
<!--                        height="25"><path-->
470
<!--                     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"-->
471
<!--                     fill="none" stroke="#000" stroke-width="1.1"></path><path-->
472
<!--                     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"-->
473
<!--                     fill="none" stroke="#000" stroke-width="1.1"></path><path d="M7.925,11.875 L11.925,7.975"-->
474
<!--                                                                               fill="none" stroke="#000"-->
475
<!--                                                                               stroke-width="1.1"></path></svg>-->
476
<!--                 </span> Link this project to...-->
477
<!--                </button>-->
478

    
479

    
480
<!--                <div class="  uk-text-center uk-margin-expand uk-padding-small    uk-margin-auto  default-dropdown "-->
481
<!--                     uk-dropdown="mode:click">-->
482
<!--                  <div class="uk-grid    uk-child-width-1-3  uk-width-large ">-->
483

    
484
<!--                    <div><a-->
485
<!--                      [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId,'project','result'])"-->
486
<!--                      routerLinkActive="router-link-active" routerLink="/participate/direct-claim">-->
487
<!--                      <button class="uk-icon-button portal-button">-->
488
<!--                      <span class="uk-icon">-->
489
<!--                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"-->
490
<!--                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"-->
491
<!--                                                                         width="12" x="3.5" y="2.5"></rect><polyline-->
492
<!--                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>-->
493
<!--                      </button>-->
494
<!--                      <div>Research results</div>-->
495
<!--                    </a></div>-->
496

    
497
<!--                  </div>-->
498
<!--                </div>-->
499
<!--              </div>-->
500

    
501
              <div *ngIf="isRouteAvailable('participate/direct-claim')">
502
                <div class="uk-margin-auto uk-width-3-4">
503
                  <button class="uk-button uk-width-1-1 portal-button">
504
                    <span uk-icon="link"></span>
505
                    Link this project to...
506
                  </button>
507
                </div>
508
                <div class="uk-text-center uk-margin-expand uk-padding-small    uk-margin-auto  default-dropdown "
509
                     uk-dropdown="mode:click">
510
                  <div class="uk-grid uk-child-width-1-3 uk-width-large ">
511
                    <div>
512
                      <a [queryParams]="routerHelper.createQueryParams(['id','type','linkTo'],[projectId,
513
                      'project','result'])"
514
                         routerLinkActive="router-link-active" routerLink="/participate/direct-claim">
515
                        <button class="uk-icon-button portal-button">
516
                        <span class="uk-icon">
517
                           <svg height="20" icon="copy" ratio="1" viewBox="0 0 20 20" width="20"
518
                                xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="16" stroke="#000"
519
                                                                         width="12" x="3.5" y="2.5"></rect><polyline
520
                             fill="none" points="5 0.5 17.5 0.5 17.5 17" stroke="#000"></polyline></svg></span>
521
                        </button>
522
                        <div>Research results</div>
523
                      </a>
524
                    </div>
525
                  </div>
526
                </div>
527
              </div>
528
              <div *ngIf="isRouteAvailable('participate/deposit/learn-how')"
529
                   class="uk-margin-small-top uk-margin-auto uk-width-3-4">
530
                <a routerLinkActive="router-link-active" routerLink="/participate/deposit/learn-how"
531
                   class="uk-button uk-button-primary uk-width-1-1">
532
                      <span class="uk-icon">
533
                        <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">
534
                          <polyline fill="none" stroke="#000" points="5 8 9.5 3.5 14 8 "></polyline>
535
                          <rect x="3" y="17" width="13" height="1"></rect>
536
                          <line fill="none" stroke="#000" x1="9.5" y1="15" x2="9.5" y2="4"></line>
537
                        </svg>
538
                      </span>
539
                  Deposit
540
                </a>
541
              </div>
542

    
543
              <div class="uk-margin-top">
544
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share - Bookmark</div>
545
                <div class="uk-margin-small-left uk-margin-small-right"><addThis></addThis></div>
546
              </div>
547
              <!-- Metrics -->
548
              <div *ngIf="hasMetrics" class="uk-margin-top">
549
                <div class="sideInfoTitle uk-margin-small-bottom">Metrics</div>
550
                <div uk-grid class="uk-child-width-1-3 uk-text-center uk-flex uk-flex-middle">
551
                  <div></div><!-- Open Citations-->
552
                  <div>
553
                    <metrics [pageViews]="pageViews"
554
                             [id]="projectId" [entityType]="'projects'" [entity]="'project'"
555
                             [viewsFrameUrl]="viewsFrameUrl" [downloadsFrameUrl]="downloadsFrameUrl"
556
                             (metricsResults)="metricsResults($event)" [properties]=properties>
557
                    </metrics>
558
                  </div>
559
                </div>
560
              </div>
561
              <div class="uk-margin-top">
562
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Share project's content</div>
563
                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
564
<!--                  <select class="select" id="share_content" name="share_content"-->
565
<!--                          [(ngModel)]="share_research_results_type">-->
566
<!--                    <option value="">Select content type</option>-->
567
<!--                    <option value="publications">Publications</option>-->
568
<!--                    <option value="datasets">Research data</option>-->
569
<!--                    <option value="software">Software</option>-->
570
<!--                    <option value="other">Other research products</option>-->
571
<!--                  </select>-->
572
                  <div class="uk-padding-small uk-padding-remove-vertical">
573
                    <mat-select [(value)]="share_research_results_type"
574
                                [disableOptionCentering]="true"
575
                                panelClass="entitiesSelectionPanel"
576
                                class="matSelection">
577
                      <mat-option value="">Select content type</mat-option>
578
                      <mat-option value="result">All research outcomes</mat-option>
579
                      <mat-option value="publication">Publications</mat-option>
580
                      <mat-option value="dataset">Research data</mat-option>
581
                      <mat-option value="software">Software</mat-option>
582
                      <mat-option value="other">Other research products</mat-option>
583
                    </mat-select>
584
                    <div *ngIf="share_research_results_type" class="uk-animation-slide-top-small">
585
                      <ng-container *ngTemplateOutlet="share_research_results_box;
586
                        context: {  dynamic_content: getDynamicContent(share_research_results_type) }">
587
                      </ng-container>
588
                    </div>
589
                </div>
590
              </div>
591
              <div class="uk-margin-top">
592
                <div class="sideInfoTitle uk-margin-small-bottom uk-margin-small-top">Download report</div>
593
                <div class="app-box uk-padding-small uk-margin-small-left uk-margin-small-right">
594
<!--                  <select class="select" id="download_report" name="download_report"-->
595
<!--                          [(ngModel)]="download_research_results_type">-->
596
<!--                    <option value="">Select content type</option>-->
597
<!--                    <option value="results">All research outcomes</option>-->
598
<!--                    <option value="publications">Publications</option>-->
599
<!--                    <option value="datasets">Research data</option>-->
600
<!--                    <option value="software">Software</option>-->
601
<!--                    <option value="other">Other research products</option>-->
602
<!--                  </select>-->
603
                  <div class="uk-padding-small uk-padding-remove-vertical">
604
                    <mat-select *ngIf="projectInfo.funding &&
605
                                      (fetchPublications.searchUtils.totalResults > 0 ||
606
                                      fetchDatasets.searchUtils.totalResults > 0 ||
607
                                      fetchSoftware.searchUtils.totalResults > 0 ||
608
                                      fetchOrps.searchUtils.totalResults > 0)"
609
                                [(value)]="download_research_results_type"
610
                                [disableOptionCentering]="true"
611
                                panelClass="entitiesSelectionPanel"
612
                                class="matSelection">
613
                      <mat-option value="">Select content type</mat-option>
614
                      <mat-option value="results">All research outcomes</mat-option>
615
                      <mat-option value="publications"
616
                                  [disabled]="fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE"
617
                                  [attr.uk-tooltip]="(fetchPublications.searchUtils.totalResults == 0 || fetchPublications.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
618
                                  title="No report available">
619
                        Publications
620
                      </mat-option>
621
                      <mat-option value="datasets"
622
                                  [disabled]="fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE"
623
                                  [attr.uk-tooltip]="(fetchDatasets.searchUtils.totalResults == 0 || fetchDatasets.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
624
                                  title="No report available">
625
                        Research data
626
                      </mat-option>
627
                      <mat-option value="software"
628
                                  [disabled]="fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE"
629
                                  [attr.uk-tooltip]="(fetchSoftware.searchUtils.totalResults == 0 || fetchSoftware.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
630
                                  title="No report available">
631
                        Software
632
                      </mat-option>
633
                      <mat-option value="other"
634
                                  [disabled]="fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE"
635
                                  [attr.uk-tooltip]="(fetchOrps.searchUtils.totalResults == 0 || fetchOrps.searchUtils.status != errorCodes.DONE) ? 'cls: uk-active' : 'cls: uk-invisible'"
636
                                  title="No report available">
637
                        Other research products
638
                      </mat-option>
639
                    </mat-select>
640
                    <div *ngIf="download_research_results_type" class="uk-animation-slide-top-small">
641
                      <ng-container *ngTemplateOutlet="download_research_results_box;
642
                          context: {  type: download_research_results_type,
643
                                      fileName_type: getFileNameType(download_research_results_type),
644
                                      csvParams: getCsvParams(download_research_results_type) }">
645
                      </ng-container>
646
                    </div>
647

    
648
                    <div *ngIf="!projectInfo.funding ||
649
                          (fetchPublications.searchUtils.totalResults == 0 &&
650
                          fetchDatasets.searchUtils.totalResults == 0 &&
651
                          fetchSoftware.searchUtils.totalResults == 0 &&
652
                          fetchOrps.searchUtils.totalResults == 0)"
653
                          class="uk-text-muted">
654
                      No reports available
655
                    </div>
656
                  </div>
657
                </div>
658
              </div>
659
              <!--              <div class="uk-margin-top">-->
660
<!--                <div class="sideInfoTitle uk-margin-small-bottom">Share project's research results</div>-->
661
<!--                <div>-->
662
<!--                  <div [class]="'uk-margin-small-bottom uk-margin-small-right uk-button uk-button-small'-->
663
<!--                                  + (share_research_results_type == 'publications' ? ' researchResultTypeSelected' : ' researchResultTypeNotSelected')"-->
664
<!--                       (click)="((share_research_results_type == 'publications') ? share_research_results_type='' : share_research_results_type='publications')">-->
665
<!--                    Publications-->
666
<!--                  </div>-->
667
<!--                  <div [class]="'uk-margin-small-bottom uk-margin-small-right uk-button uk-button-small'-->
668
<!--                                  + (share_research_results_type == 'datasets' ? ' researchResultTypeSelected' : ' researchResultTypeNotSelected')"-->
669
<!--                       (click)="((share_research_results_type == 'datasets') ? share_research_results_type='' : share_research_results_type='datasets')">-->
670
<!--                      Research data-->
671
<!--                  </div>-->
672
<!--                  <div [class]="'uk-margin-small-bottom uk-margin-small-right uk-button uk-button-small'-->
673
<!--                                                    + (share_research_results_type == 'software' ? ' researchResultTypeSelected' : ' researchResultTypeNotSelected')"-->
674
<!--                       (click)="((share_research_results_type == 'software') ? share_research_results_type='' : share_research_results_type='software')">-->
675
<!--                      Software-->
676
<!--                  </div>-->
677
<!--                  <div [class]="'uk-margin-small-bottom uk-margin-small-right uk-button uk-button-small'-->
678
<!--                                                    + (share_research_results_type == 'other' ? ' researchResultTypeSelected' : ' researchResultTypeNotSelected')"-->
679
<!--                       (click)="((share_research_results_type == 'other') ? share_research_results_type='' : share_research_results_type='other')">-->
680
<!--                      Other-->
681
<!--                  </div>-->
682
<!--                </div>-->
683
<!--              </div>-->
684
<!--            </div>-->
685
            </div>
686
          </div>
687
          <div class="uk-margin-small-top uk-text-muted uk-text-small uk-text-right">
688
            Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
689
          </div>
690
          <modal-loading></modal-loading>
691
          <modal-alert #AlertModalCsvError></modal-alert>
692

    
693
        </div>
694
      </div>
695
        <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
696
                [texts]="pageContents['bottom']"></helper>
697
    </div>
698

    
699
    <!-- Statistics -->
700
    <modal-alert *ngIf="projectInfo &&
701
                        (fetchPublications.searchUtils.totalResults > 0 || fetchDatasets.searchUtils.totalResults > 0
702
                        || fetchSoftware.searchUtils.totalResults > 0 || fetchOrps.searchUtils.totalResults > 0)"
703
                 classBody="uk-width-xxlarge uk-padding-remove-right" #statisticsModal>
704
      <landing-header [properties]="properties" [title]="projectName"
705
                      [subTitle]="projectInfo.acronym ? projectInfo.title : ''"
706
                      [entityType]="'project'"
707
                      [startDate]="projectInfo.startDate"
708
                      [endDate]="projectInfo.endDate"
709
                      [status]="projectInfo.status">
710
      </landing-header>
711
      <div class="uk-margin-medium-top uk-margin-medium-right">
712
        <errorMessages [status]="[fetchPublications.searchUtils.status, fetchDatasets.searchUtils.status,
713
                                  fetchSoftware.searchUtils.status, fetchOrps.searchUtils.status]"
714
                       [type]="'statistics'" tab_error_class=true></errorMessages>
715

    
716
        <div
717
          *ngIf="statsClicked &&
718
          (fetchPublications.searchUtils.status == errorCodes.DONE || fetchDatasets.searchUtils.status == errorCodes.DONE
719
          || fetchSoftware.searchUtils.status == errorCodes.DONE || fetchOrps.searchUtils.status == errorCodes.DONE)">
720
          <div class="uk-padding uk-padding-remove-top">
721
            <span class="uk-text-bold uk-text-small">Produced research outcomes per year</span>
722
            <i-frame [url]=chartScientificResultsUrl></i-frame>
723
          </div>
724
          <div class="uk-padding uk-padding-remove-top">
725
            <span class="uk-text-bold uk-text-small">Access mode of research outcomes</span>
726
            <i-frame [url]=chartAccessModeUrl></i-frame>
727
          </div>
728
          <div class="uk-padding uk-padding-remove-top">
729
            <span class="uk-text-bold uk-text-small">Research outcomes per datasource</span>
730
            <i-frame [url]=chartDatasourcesUrl></i-frame>
731
          </div>
732
        </div>
733
      </div>
734
    </modal-alert>
735
  </div>
736
</div>
737
  <feedback *ngIf="projectInfo" [projectInfo]="projectInfo"
738
            [properties]="properties" [entityType]="'project'" [title]="projectName" [fields]="feedbackFields"
739
            [showForm]="showFeedback" (show)="showFeedback = $event"></feedback>
740
</div>
(1-1/5)