Project

General

Profile

1
<!-- Before title -->
2
<div uk-grid>
3
  <div [class.uk-width-1-1]="!result.relation" [class.uk-width-1-2]="result.relation"
4
       [class.uk-width-3-4@s]="result.relation">
5
    <!-- deposit website URL -->
6
    <span class="uk-width-expand uk-flex-right">
7
        <a *ngIf="result.websiteURL && promoteWebsiteURL" href="{{result.websiteURL}}" target="_blank" type="submit"
8
           class="uk-float-right uk-button portal-button uk-padding uk-padding-remove-vertical uk-margin-small-left">
9
          <span><span>Visit repository to deposit</span><span uk-icon="arrow-right"></span></span>
10
        </a>
11
    </span>
12
    <div class="uk-text-small">
13
      <span class="uk-text-capitalize">
14
        {{getTypeName(result.resultType)}}
15
      </span>
16
      <span
17
          *ngIf="properties.environment !== 'production' && result.types && removeDuplicates(result.types).length > 0">
18
        {{' . ' + removeDuplicates(result.types).join(' . ')}}
19
      </span>
20
      <span *ngIf="properties.environment === 'production' && result.types &&
21
          removeUnknown(removeDuplicates(result.types)).length > 0">
22
        {{' . ' + removeDuplicates(removeDuplicates(result.types)).join(' . ')}}
23
      </span>
24
      <span *ngIf="result.year">{{' . ' + result.year.toString()}}</span>
25
      <span *ngIf="result.startYear && result.endYear"> . {{result.startYear}} - {{result.endYear}}</span>
26
      <span *ngIf="result.embargoEndDate && result.embargoEndDate != ''">
27
        . Embargo End Date: {{result.embargoEndDate | date: 'dd MMM yyyy'}}
28
      </span>
29
    </div>
30
    <!-- Title -->
31
    <div class="uk-margin-small-bottom">
32
      <div class="uk-h5 uk-margin-remove">
33

    
34
        <a *ngIf="result.id && !(result.resultType == 'dataprovider' && result.compatibilityUNKNOWN) "
35
           (click)="onClick()" [queryParams]="routerHelper.createQueryParam(urlParam,result.id)"
36
           routerLink="/search/{{result.resultType}}" class="portal-link uk-width-expand">
37
          <div *ngIf="(result.title) || result.acronym">
38
      <span *ngIf="result.acronym">
39
        {{result.acronym}}
40
      </span>
41
            <span *ngIf="result.acronym && (result.title)"> (</span>
42
            <span *ngIf="result.title" [innerHTML]="result.title"></span>
43
            <span *ngIf="result.acronym && result.title">)</span>
44
          </div>
45
          <div *ngIf="!result.title && !result.acronym">
46
            [no title available]
47
          </div>
48
        </a>
49
        <div *ngIf="!result.id ||  (result.resultType == 'dataprovider' && result.compatibilityUNKNOWN)" class="uk-width-expand">
50
          <div *ngIf="(result.title) || result.acronym">
51
      <span *ngIf="result.acronym">
52
        {{result.acronym}}
53
      </span>
54
            <span *ngIf="result.acronym && (result.title)"> (</span>
55
            <span *ngIf="result.title" [innerHTML]="result.title"></span>
56
            <span *ngIf="result.acronym && result.title">)</span>
57
          </div>
58
          <div *ngIf="!result.title && !result.acronym">
59
            [no title available]
60
          </div>
61
        </div>
62
        <hr  *ngIf="result.websiteURL && promoteWebsiteURL">
63
      </div>
64
      <!-- Download from-->
65
      <div *ngIf="result.hostedBy_collectedFrom && result.hostedBy_collectedFrom.length > 0"
66
           class="uk-margin-small-bottom download-from">
67
        <div *ngFor="let from of result.hostedBy_collectedFrom">
68
    <span class="uk-margin-right uk-display-inline-block">
69
      <span class="uk-text-muted">Download from: </span>
70
      <a *ngIf="from.downloadUrl && from.downloadUrl.length === 1"
71
         [href]="from.downloadUrl[0]" target="_blank" class="title">
72
        {{from.downloadName}}
73
        <span class="custom-external space"></span>
74
      </a>
75
      <span *ngIf="!from.downloadUrl || from.downloadUrl.length === 0" class="title">
76
        {{from.downloadName}}
77
      </span>
78
    </span>
79
          <span class="provider uk-display-inline-block">
80
      <span class="uk-text-muted">Provider: </span>
81
      <a *ngIf="from.collectedId" routerLink="/search/dataprovider" [queryParams]="{datasourceId: from.collectedId}"
82
         [href]="from.downloadUrl[0]" target="_blank">
83
        {{from.collectedName}}
84
        <span class="custom-external space"></span>
85
      </a>
86
      <span *ngIf="!from.collectedId">
87
        {{from.collectedName}}
88
      </span>
89
    </span>
90
        </div>
91
      </div>
92
      <!-- Authors -->
93
      <div *ngIf="result.authors">
94
        <showAuthors [authors]="result.authors" [authorsLimit]=10 [modal]="modal" [showAll]=false></showAuthors>
95
      </div>
96
    </div>
97
    <!-- Funder -->
98
    <div *ngIf="result.funderShortname || result.code" class="uk-margin-small-bottom uk-text-small">
99
  <span *ngIf="result.funderShortname">
100
    <span class="uk-text-muted">Funder: </span>
101
    {{result.funderShortname}}
102
  </span>
103
      <span *ngIf="result.code" [class.uk-margin-left]="result.funderShortname">
104
    <span class="uk-text-muted">Project Code: </span>
105
        {{result.code}}
106
  </span>
107
    </div>
108
    <!-- Funder Budget -->
109
    <div *ngIf="result.budget || result.contribution" class="uk-margin-small-bottom uk-text-small">
110
      <span *ngIf="result.budget">
111
        <span class="uk-text-muted">Overall Budget: </span>
112
        {{result.budget | number}}
113
        <span *ngIf="result.currency">{{result.currency}}</span>
114
      </span>
115
      <span *ngIf="result.contribution" [class.uk-margin-left]="result.budget">
116
        <span class="uk-text-muted">Funder Contribution: </span>
117
        {{result.contribution | number}}
118
        <span *ngIf="result.currency">{{result.currency}}</span>
119
      </span>
120
    </div>
121
    <!-- Labels -->
122
    <div class="uk-margin-small-bottom">
123
  <span *ngIf="properties.environment !== 'production' && result.accessMode"
124
        class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
125
        title="Access Mode">
126
    {{result.accessMode}}
127
  </span>{{' '}}
128
      <span
129
          *ngIf="properties.environment === 'production' && result.accessMode && result.accessMode.toLowerCase() !== 'not available'"
130
          class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
131
          title="Access Mode">
132
    {{result.accessMode}}
133
  </span>{{' '}}
134
      <span *ngIf="result.openAccessMandatePublications && (!result.openAccessMandateDatasets)"
135
            class="uk-label custom-label label-open"
136
            title="Open Access mandate for Publications">
137
          Open Access mandate for Publications
138
  </span>{{' '}}
139
      <span
140
          *ngIf="result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets && (result.openAccessMandatePublications == undefined || !result.openAccessMandatePublications)"
141
          class="uk-label custom-label label-open " title="Open Access mandate for Research Data">
142
          Open Access mandate for Research Data
143
  </span>{{' '}}
144
      <span
145
          *ngIf="result.openAccessMandatePublications != undefined && result.openAccessMandatePublications && result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets"
146
          class="uk-label custom-label label-open "
147
          title="Open Access mandate for Publications and Research Data">
148
          Open Access mandate for Publications and Research Data
149
  </span>{{' '}}
150
      <span *ngIf="properties.environment !== 'production' && result.languages && result.languages.length > 0">
151
    <span *ngFor="let language of result.languages"
152
          class="uk-label custom-label label-language " title="Language">
153
      {{language}}
154
    </span>{{' '}}
155
  </span>
156
      <span
157
          *ngIf="properties.environment === 'production' && result.languages && removeUnknown(result.languages).length > 0">
158
    <span *ngFor="let language of removeUnknown(result.languages)"
159
          class="uk-label custom-label label-language " title="Language">
160
      {{language}}
161
    </span>{{' '}}
162
  </span>
163
      <span *ngIf="result.programmingLanguages && result.programmingLanguages.length > 0">
164
    <span *ngFor="let programmingLanguage of result.programmingLanguages"
165
          class="uk-label custom-label label-language" title="Programming Language">
166
      {{programmingLanguage}}
167
    </span>{{" "}}
168
  </span>
169
      <span *ngIf="result.sc39" class="uk-label custom-label label-sc39" title="Special Clause 39">
170
    Special Clause 39
171
  </span>{{' '}}
172
      <span *ngIf="result.compatibility && result.compatibility != '' && result.compatibility != 'not available'"
173
            class="uk-label custom-label  label-compatibility" title="Compatibility">
174
    {{result.compatibility}}
175
  </span>{{' '}}
176
      <span *ngIf="result.compatibility != undefined && result.compatibility != '' && result.compatibility ==
177
      'not available'"
178
            class="uk-label custom-label  label-danger" title="OpenAIRE Compatibility">Not yet registered</span>
179
      {{' '}}
180
    </div>
181
    <!-- Identifiers -->
182
    <div *ngIf="result.identifiers && result.identifiers.size > 0">
183
      <showIdentifiers [identifiers]="result.identifiers" [properties]="properties"></showIdentifiers>
184
    </div>
185
    <!-- Publisher -->
186
    <div *ngIf="result.publisher && result.publisher != ''" class="uk-text-small uk-margin-small-bottom">
187
      <span class="uk-text-muted">Publisher: </span>
188
      {{result.publisher}}
189
    </div>
190
    <!-- Countries -->
191
    <div *ngIf="result.countries && result.countries.length > 0"
192
         class="uk-text-small uk-margin-small-bottom">
193
      <span class="uk-text-muted">{{(result.countries.length == 1) ? 'Country' : 'Countries'}}: </span>
194
      <span *ngFor="let country of  result.countries.slice(0,10) let i = index">
195
        {{country}}{{(i < (result.countries.slice(0, 10).length - 1)) ? ", " : ""}}
196
        {{(i == result.countries.slice(0, 10).length - 1 && result.countries.length > 10) ? "..." : ""}}
197
  </span>
198
    </div>
199
    <!-- Projects -->
200
    <div *ngIf="result.projects && result.projects.length > 0" class="uk-text-small uk-margin-small-bottom">
201
      <span class="uk-text-muted"> Project: </span>
202
      <span *ngFor="let project of result.projects.slice(0,10) let i=index">
203
    <span>
204
      {{project.funderShortname ? project.funderShortname : project.funderName}}
205
    </span>
206
    <span *ngIf="project.acronym || project.title">
207
      | {{ project.acronym ? project.acronym : (project.title.length > 25 ?
208
        project.title.substring(0, 25) + '...' : project.title)}}
209
    </span>
210
    <span *ngIf="project.code"> ({{project.code}})</span>
211
    <span *ngIf="i < result.projects.length-1">,</span>
212
  </span>
213
      <span *ngIf="result.projects.length > 10">...</span>
214
    </div>
215
    <!-- Organizations -->
216
    <div *ngIf="showOrganizations && result.organizations && result.organizations.length > 0"
217
         class="uk-text-small uk-margin-small-bottom">
218
      <span class="uk-text-muted">Organization: </span>
219
      <span *ngFor="let organization of result.organizations.slice(0,10) let i=index">
220
    <span>{{organization.name}}</span>
221
    <span *ngIf="(i < result.organizations.length-1) && (i < 9)">, </span>
222
  </span>
223
      <span *ngIf="result.organizations.length > 10">...</span>
224
    </div>
225
    <!-- Website URL -->
226
    <div *ngIf="result.websiteURL && result.websiteURL != '' && !promoteWebsiteURL" class="uk-text-small uk-margin-small-bottom">
227
      <span class="uk-text-muted">Website URL: </span>
228
      <span>
229
            <a href="{{result.websiteURL}}" target="_blank" class="custom-external custom-icon">
230
                {{result.websiteURL}}
231
            </a>
232
        </span>
233
    </div>
234
    <!-- OAI-PMH URL-->
235
    <div *ngIf="result.OAIPMHURL && result.OAIPMHURL != ''" class="uk-text-small uk-margin-small-bottom">
236
      <span class="uk-text-muted">OAI-PMH URL: </span>
237
      <span>
238
      <a href="{{result.OAIPMHURL}}" target="_blank" class="custom-external custom-icon">
239
          {{result.OAIPMHURL}}
240
      </a>
241
  </span>
242
    </div>
243
    <!-- Subjects -->
244
    <div *ngIf="showSubjects && result.subjects && result.subjects.length > 0"
245
         class="uk-text-small uk-margin-small-bottom">
246
      <span class="uk-text-muted">Subject: </span>
247
      <span *ngFor="let subject of  result.subjects.slice(0,10) let i = index">
248
        <span>{{subject}}</span>
249
        <span>{{(i < (result.subjects.slice(0, 10).length - 1)) ? ", " : ""}}</span>
250
        <span>{{(i == result.subjects.slice(0, 10).length - 1 && result.subjects.length > 10) ? "..." : ""}}</span>
251
  </span>
252
    </div>
253
  </div>
254
  <div *ngIf="result.relation" class="uk-width-expand uk-padding-remove-left uk-text-small">
255
    <div *ngIf="result.percentage" class="uk-flex uk-flex-middle">
256
      <div class="uk-margin-small-right">
257
        <span class="uk-text-capitalize uk-text-muted">{{result.relation}}: </span>
258
        <span class="portal-color uk-text-bold"> {{result.percentage}}%</span>
259
      </div>
260
      <progress class="uk-progress portal-progress uk-margin-remove uk-text-left uk-width-expand"
261
                [value]="result.percentage" max="100"></progress>
262
    </div>
263
    <div class="uk-text-capitalize uk-text-muted" *ngIf="result.provenanceAction">
264
      {{result.provenanceAction}}
265
    </div>
266
  </div>
267
</div>
268
<!-- Description -->
269
<div *ngIf="result.description" class="uk-margin-small-bottom multi-line-ellipsis lines-3">
270
  <p class="uk-text-small uk-text-muted">
271
    {{result.description}}
272
  </p>
273
</div>
274
<div *ngIf="result.pop_inf && result.DOI">
275
  <span  title = "Popularity" id = "popularity-{{result.pop_inf[0]}}" class="fa fa-fire"></span> &nbsp;<!-- ATHENA CODE -->
276
  <span title = "Influence" id = "influence-{{result.pop_inf[1]}}" class="fa fa-university"></span> &nbsp;<!-- ATHENA CODE -->
277
  <span><a title ="Link to Bip!Finder" class="fas fa-external-link-alt" target="_blank" href = "https://bip.imis.athena-innovation.gr/site/details?id={{result.DOI}}"></a></span>
278
</div>
(1-1/4)