Project

General

Profile

1
<!-- Before title -->
2
<div class="uk-text-small">
3
  <span class="uk-text-capitalize">
4
    {{result.resultType}}
5
  </span>
6
  <span *ngIf="properties.environment !== 'production' && result.types && removeDuplicates(result.types).length > 0">
7
    {{' . ' + removeDuplicates(result.types).join(' . ')}}
8
  </span>
9
  <span *ngIf="properties.environment === 'production' && result.types &&
10
          removeUnknown(removeDuplicates(result.types)).length > 0">
11
    {{' . ' + removeDuplicates(removeDuplicates(result.types)).join(' . ')}}
12
  </span>
13
  <span *ngIf="result.year">{{' . ' + result.year.toString()}}</span>
14
  <span *ngIf="result.startYear && result.endYear"> . {{result.startYear}} - {{result.endYear}}</span>
15
  <span *ngIf="result.embargoEndDate && result.embargoEndDate != ''">
16
    . Embargo End Date: {{result.embargoEndDate | date: 'dd MMM yyyy'}}
17
  </span>
18
</div>
19
<!-- Title -->
20
<div class="uk-h5 uk-margin-remove">
21
  <a *ngIf="result.id" [queryParams]="routerHelper.createQueryParam(urlParam, result.id)"
22
     routerLink="/search/{{result.resultType}}" class="portal-link">
23
    <div *ngIf="(result.title) || result.acronym">
24
      <span *ngIf="result.acronym">
25
        {{result.acronym}}
26
      </span>
27
      <span *ngIf="result.acronym && (result.title)"> (</span>
28
      <span *ngIf="result.title" [innerHTML]="result.title"></span>
29
      <span *ngIf="result.acronym && result.title">)</span>
30
    </div>
31
    <div *ngIf="!result.title && !result.acronym">
32
      [no title available]
33
    </div>
34
  </a>
35
  <div *ngIf="!result.id">
36
    <div *ngIf="(result.title) || result.acronym">
37
      <span *ngIf="result.acronym">
38
        {{result.acronym}}
39
      </span>
40
      <span *ngIf="result.acronym && (result.title)"> (</span>
41
      <span *ngIf="result.title" [innerHTML]="result.title"></span>
42
      <span *ngIf="result.acronym && result.title">)</span>
43
    </div>
44
    <div *ngIf="!result.title && !result.acronym">
45
      [no title available]
46
    </div>
47
  </div>
48
</div>
49
<!-- Download from-->
50
<div *ngIf="result.hostedBy_collectedFrom && result.hostedBy_collectedFrom.length > 0" class="uk-margin-small-bottom download-from">
51
  <div *ngFor="let from of result.hostedBy_collectedFrom">
52
    <span class="uk-margin-right uk-display-inline-block">
53
      <span class="uk-text-muted">Download from: </span>
54
      <a *ngIf="from.downloadUrl && from.downloadUrl.length === 1"
55
         [href]="from.downloadUrl[0]" target="_blank" class="title">
56
        {{from.downloadName}}
57
        <span class="custom-external"></span>
58
      </a>
59
      <span *ngIf="!from.downloadUrl || from.downloadUrl.length === 0" class="title">
60
        {{from.downloadName}}
61
      </span>
62
    </span>
63
    <span class="provider uk-display-inline-block">
64
      <span class="uk-text-muted">Provider: </span>
65
      <a *ngIf="from.collectedId" routerLink="/search/dataprovider" [queryParams]="{datasourceId: from.collectedId}"
66
         [href]="from.downloadUrl[0]" target="_blank">
67
        {{from.collectedName}}
68
      </a>
69
      <span *ngIf="!from.collectedId">
70
        {{from.collectedName}}
71
      </span>
72
    </span>
73
  </div>
74
</div>
75
<!-- Authors -->
76
<div *ngIf="result.authors" class="uk-margin-small-bottom">
77
  <showAuthors [authors]="result.authors" [authorsLimit]=10 [showAll]=false></showAuthors>
78
</div>
79
<!-- Funder -->
80
<div *ngIf="result.funderShortname || result.code" class="uk-margin-small-bottom uk-text-small">
81
  <span *ngIf="result.funderShortname">
82
    <span class="uk-text-muted">Funder: </span>
83
    {{result.funderShortname}}
84
  </span>
85
  <span *ngIf="result.code" [class.uk-margin-left]="result.funderShortname">
86
    <span class="uk-text-muted">Project Code: </span>
87
    {{result.code}}
88
  </span>
89
</div>
90
<!-- Labels -->
91
<div class="uk-margin-small-bottom">
92
  <span *ngIf="properties.environment !== 'production' && result.accessMode"
93
        class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
94
        title="Access Mode">
95
    {{result.accessMode}}
96
  </span>{{' '}}
97
  <span *ngIf="properties.environment === 'production' && result.accessMode && result.accessMode.toLowerCase() !== 'not available'"
98
        class="uk-label custom-label" [ngClass]="'label-' + accessClass(result.accessMode)"
99
        title="Access Mode">
100
    {{result.accessMode}}
101
  </span>{{' '}}
102
  <span *ngIf="result.openAccessMandatePublications && (!result.openAccessMandateDatasets)"
103
        class="uk-label custom-label label-open"
104
        title="Open Access mandate for Publications">
105
          Open Access mandate for Publications
106
  </span>{{' '}}
107
  <span
108
      *ngIf="result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets && (result.openAccessMandatePublications == undefined || !result.openAccessMandatePublications)"
109
      class="uk-label custom-label label-open " title="Open Access mandate for Research Data">
110
          Open Access mandate for Research Data
111
  </span>{{' '}}
112
  <span
113
      *ngIf="result.openAccessMandatePublications != undefined && result.openAccessMandatePublications && result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets"
114
      class="uk-label custom-label label-open "
115
      title="Open Access mandate for Publications and Research Data">
116
          Open Access mandate for Publications and Research Data
117
  </span>{{' '}}
118
  <span *ngIf="properties.environment !== 'production' && result.languages && result.languages.length > 0">
119
    <span *ngFor="let language of result.languages"
120
          class="uk-label custom-label label-language " title="Language">
121
      {{language}}
122
    </span>{{' '}}
123
  </span>
124
  <span *ngIf="properties.environment === 'production' && result.languages && removeUnknown(result.languages).length > 0">
125
    <span *ngFor="let language of removeUnknown(result.languages)"
126
          class="uk-label custom-label label-language " title="Language">
127
      {{language}}
128
    </span>{{' '}}
129
  </span>
130
  <span *ngIf="result.programmingLanguages && result.programmingLanguages.length > 0">
131
    <span *ngFor="let programmingLanguage of result.programmingLanguages"
132
          class="uk-label custom-label label-language" title="Programming Language">
133
      {{programmingLanguage}}
134
    </span>{{" "}}
135
  </span>
136
  <span *ngIf="result.sc39" class="uk-label custom-label label-sc39" title="Special Clause 39">
137
    Special Clause 39
138
  </span>{{' '}}
139
  <span *ngIf="result.compatibility && result.compatibility != ''"
140
        class="uk-label custom-label  label-compatibility" title="Compatibility">
141
    {{result.compatibility}}
142
  </span>{{' '}}
143
</div>
144
<!-- Identifiers -->
145
<div *ngIf="result.identifiers && result.identifiers.size > 0">
146
  <showIdentifiers [identifiers]="result.identifiers"></showIdentifiers>
147
</div>
148
<!-- Publisher -->
149
<div *ngIf="result.publisher && result.publisher != ''" class="uk-text-small uk-margin-small-bottom">
150
  <span class="uk-text-muted">Publisher: </span>
151
  {{result.publisher}}
152
</div>
153
<!-- Countries -->
154
<div *ngIf="result.countries && result.countries.length > 0"
155
     class="uk-text-small uk-margin-small-bottom">
156
  <span class="uk-text-muted">{{(result.countries.length == 1)?'Country':'Countries'}}: </span>
157
  <span *ngFor="let country of  result.countries.slice(0,10) let i = index">
158
        {{country}}{{(i < (result.countries.slice(0, 10).length - 1)) ? ", " : ""}}
159
    {{(i == result.countries.slice(0, 10).length - 1 && result.countries.length > 10) ? "..." : ""}}
160
  </span>
161
</div>
162
<!-- Projects -->
163
<div *ngIf="result.projects && result.projects.length > 0" class="uk-text-small uk-margin-small-bottom">
164
  <span class="uk-text-muted"> Project: </span>
165
  <span *ngFor="let project of result.projects.slice(0,10) let i=index">
166
    <span>
167
      {{project.funderShortname ? project.funderShortname : project.funderName}}
168
    </span>
169
    <span *ngIf="project.acronym || project.title">
170
      | {{ project.acronym ? project.acronym : (project.title.length > 25 ?
171
        project.title.substring(0, 25) + '...' : project.title)}}
172
    </span>
173
    <span *ngIf="project.code"> ({{project.code}})</span>
174
    <span *ngIf="i < result.projects.length-1">,</span>
175
  </span>
176
  <span *ngIf="result.projects.length > 10">...</span>
177
</div>
178
<!-- Organizations -->
179
<div *ngIf="showOrganizations && result.organizations && result.organizations.length > 0"
180
     class="uk-text-small uk-margin-small-bottom">
181
  <span class="uk-text-muted">Organization: </span>
182
  <span *ngFor="let organization of result.organizations.slice(0,10) let i=index">
183
    <span>{{organization.name}}</span>
184
    <span *ngIf="(i < result.organizations.length-1) && (i < 9)">,</span>
185
  </span>
186
  <span *ngIf="result.organizations.length > 10">...</span>
187
</div>
188
<!-- Website URL -->
189
<div *ngIf="result.websiteURL && result.websiteURL != ''" class="uk-text-small uk-margin-small-bottom">
190
  <span class="uk-text-muted">Website URL: </span>
191
  <span>
192
            <a href="{{result.websiteURL}}" target="_blank" class="custom-external custom-icon">
193
                {{result.websiteURL}}
194
            </a>
195
        </span>
196
</div>
197
<!-- OAI-PMH URL-->
198
<div *ngIf="result.OAIPMHURL && result.OAIPMHURL != ''" class="uk-text-small uk-margin-small-bottom">
199
  <span class="uk-text-muted">OAI-PMH URL: </span>
200
  <span>
201
      <a href="{{result.OAIPMHURL}}" target="_blank" class="custom-external custom-icon">
202
          {{result.OAIPMHURL}}
203
      </a>
204
  </span>
205
</div>
206
<!-- Subjects -->
207
<div *ngIf="showSubjects && result.subjects && result.subjects.length > 0"
208
     class="uk-text-small uk-margin-small-bottom">
209
  <span class="uk-text-muted">Subject: </span>
210
  <span *ngFor="let subject of  result.subjects.slice(0,10) let i = index">{{subject}}
211
    {{(i < (result.subjects.slice(0, 10).length - 1)) ? ", " : ""}}
212
    {{(i == result.subjects.slice(0, 10).length - 1 && result.subjects.length > 10) ? "..." : ""}}
213
  </span>
214
</div>
215
<!-- Description -->
216
<div *ngIf="result.description" class="uk-margin-small-bottom multi-line-ellipsis lines-3">
217
  <p class="uk-text-small">
218
    {{result.description}}
219
  </p>
220
</div>
(1-1/4)