1
|
<ul [class]="'uk-list uk-list-divider uk-margin '+custom_class">
|
2
|
<!--div *ngIf="status == errorCodes.NONE" class="uk-alert uk-alert-primary uk-animation-fade" role="alert">No Results found</div>
|
3
|
<div *ngIf="status == errorCodes.ERROR" class="uk-alert uk-alert-warning uk-animation-fade" role="alert">An Error Occured</div>
|
4
|
<div *ngIf="status == errorCodes.OUT_OF_BOUND" class="uk-alert uk-alert-warning uk-animation-fade" role="alert">Requested page out of bounds</div>
|
5
|
<div *ngIf="status == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger uk-animation-fade" role="alert">Service not available</div>
|
6
|
<div *ngIf="status == errorCodes.LOADING && showLoading" class="uk-animation-fade uk-margin-large-top uk-width-1-1" role="alert"><img src="./assets/loading.gif" class="uk-align-center" alt="Loading"></div-->
|
7
|
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
8
|
|
9
|
<li *ngFor="let result of results" class="uk-animation-fade">
|
10
|
<h4 class = "{{result.title.accessMode}} {{result.title.sc39}}" [title] = result.title.accessMode >
|
11
|
<a [queryParams]="routerHelper.createQueryParam(urlParam,result.id)" routerLinkActive="router-link-active" routerLink="/search/{{type}}">
|
12
|
<p *ngIf="result['title'].name != undefined && result['title'].name != ''"
|
13
|
[innerHTML]="result['title'].name">
|
14
|
</p>
|
15
|
<p *ngIf="result['title'].name == undefined || result['title'].name == ''">
|
16
|
[no title available]
|
17
|
</p>
|
18
|
</a>
|
19
|
</h4>
|
20
|
|
21
|
<div>
|
22
|
<span *ngIf="result['authors'] != undefined">
|
23
|
<span *ngFor="let author of result['authors'].slice(0,15)">
|
24
|
<!--a href="{{author['url']}}"-->
|
25
|
<!--a [queryParams]="routerHelper.createQueryParams(['author','au'],[quote(author['name']),'and'])" routerLinkActive="router-link-active" [routerLink]="linkToAdvancedSearchPage">
|
26
|
{{author['name']}};
|
27
|
</a-->
|
28
|
{{author}};
|
29
|
</span>
|
30
|
<span *ngIf="result['authors'].length > 15">...</span>
|
31
|
</span>
|
32
|
<span *ngIf="result.year != undefined && result.year != ''">
|
33
|
({{result.year}})
|
34
|
</span>
|
35
|
</div>
|
36
|
|
37
|
<div *ngIf="result.publisher != undefined && result.publisher != ''"><span class="uk-text-bold">Publisher:</span> {{result.publisher}}</div>
|
38
|
|
39
|
<div *ngIf="result.country != undefined && result.country != ''">Country: {{result.country}}</div>
|
40
|
|
41
|
<div *ngIf="result['projects'] != undefined">
|
42
|
<span> Project: </span>
|
43
|
<span *ngFor="let project of result['projects'].slice(0,15) let i=index">
|
44
|
<!--a *ngIf="project.url != undefined" href="{{project.url}}"-->
|
45
|
<a *ngIf="project.id" [queryParams]="{projectId: project.id}" routerLinkActive="router-link-active" routerLink="/search/project">
|
46
|
{{project['funderShortname']?project['funderShortname']:project['funderName']}}
|
47
|
| {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}} ({{project.code}})</a><span
|
48
|
|
49
|
*ngIf="!project.id">{{project['funderShortname']?project['funderShortname']:project['funderName']}}<span
|
50
|
*ngIf="project['acronym'] || project['title']"> | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}}</span><span
|
51
|
*ngIf="project.code">({{project.code}})</span></span><span
|
52
|
|
53
|
*ngIf="i < result['projects'].length-1">,</span>
|
54
|
</span>
|
55
|
<span *ngIf="result['projects'].length > 15">...</span>
|
56
|
</div>
|
57
|
|
58
|
<div *ngIf="result.description != undefined && result.description != ''">
|
59
|
<div class="text-justify descriptionText">
|
60
|
{{result.description}}
|
61
|
</div>
|
62
|
</div>
|
63
|
|
64
|
<mark *ngIf="result.embargoEndDate != undefined && result.embargoEndDate != ''">Embargo End Date: {{result.embargoEndDate}}</mark>
|
65
|
|
66
|
|
67
|
<div *ngIf="result['funders'] != undefined">
|
68
|
<span> Funder: </span>
|
69
|
<span *ngFor="let funder of result['funders'] let i=index">
|
70
|
|
71
|
<span *ngIf="funder.funderShortname">
|
72
|
{{funder.funderShortname}}</span><span
|
73
|
|
74
|
*ngIf="i < result['funders'].length-1">,</span>
|
75
|
</span>
|
76
|
<span *ngIf="result.startYear && result.endYear"> (start {{result.startYear}} - end {{result.endYear}})</span>
|
77
|
</div>
|
78
|
<div *ngIf="result['organizations'] != undefined && result['organizations'].length > 0">
|
79
|
<span> Organization: </span>
|
80
|
<span *ngFor="let organization of result['organizations'].slice(0,10) let i=index">
|
81
|
<!--a *ngIf="organization.url != undefined" href="{{organization.url}}"-->
|
82
|
<a *ngIf="organization.id" [queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active" routerLink="/search/organization">
|
83
|
{{organization.name}}</a><span
|
84
|
|
85
|
*ngIf="!organization.id">
|
86
|
{{organization.name}}</span><span
|
87
|
|
88
|
*ngIf="(i < result['organizations'].length-1) && (i < 9)">,</span>
|
89
|
</span>
|
90
|
<span *ngIf="result['organizations'].length > 10">...</span>
|
91
|
</div>
|
92
|
|
93
|
<div *ngIf="result['type'] != undefined && result['type'] != ''">Type: {{result['type']}}</div>
|
94
|
<div *ngIf="result['countries'] && result['countries'].length > 0">
|
95
|
Country: <span *ngFor="let country of result['countries'].slice(0,10) let i = index">{{country}}{{(i < ( result['countries'].slice(0,10).length-1))?", ":""}}{{(i == result['countries'].slice(0,10).length-1 && result['countries'].length > 10)?"...":""}}</span>
|
96
|
</div>
|
97
|
<div *ngIf="result['websiteURL'] != undefined && result['websiteURL'] != ''">
|
98
|
<span>Website URL: </span>
|
99
|
<span>
|
100
|
<a href="{{result['websiteURL']}}" target="_blank" class="custom-external custom-icon">
|
101
|
{{result['websiteURL']}}
|
102
|
</a>
|
103
|
</span>
|
104
|
</div>
|
105
|
<div *ngIf="result['OAIPMHURL'] != undefined && result['OAIPMHURL'] != ''">
|
106
|
<span>OAI-PMH URL: </span>
|
107
|
<span>
|
108
|
<a href="{{result['OAIPMHURL']}}" target="_blank" class="custom-external custom-icon">
|
109
|
{{result['OAIPMHURL']}}
|
110
|
</a>
|
111
|
</span>
|
112
|
</div>
|
113
|
|
114
|
<div *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''">
|
115
|
Compatibility: {{result.compatibility}}
|
116
|
</div>
|
117
|
|
118
|
<div *ngIf="showSubjects && result['subjects'] && result['subjects'].length > 0">
|
119
|
Subject: <span *ngFor="let subject of result['subjects'].slice(0,10) let i = index">{{subject}}{{(i < ( result['subjects'].slice(0,10).length-1))?", ":""}}{{(i == result['subjects'].slice(0,10).length-1 && result['subjects'].length > 10)?"...":""}}</span>
|
120
|
</div>
|
121
|
|
122
|
|
123
|
</li>
|
124
|
</ul>
|