1
|
<div class="uk-container uk-margin-top organization">
|
2
|
<div *ngIf="warningMessage.length > 0" class="uk-alert uk-alert-warning" role="alert">{{warningMessage}}</div>
|
3
|
<div *ngIf="errorMessage.length > 0" class="uk-alert uk-alert-danger" role="alert">{{errorMessage}}</div>
|
4
|
|
5
|
<!--div class="container-header" >
|
6
|
<div *ngIf="organizationInfo != null">
|
7
|
<h3 *ngIf="organizationInfo.title != undefined">
|
8
|
<a *ngIf="organizationInfo.title['url'] != ''"
|
9
|
href="{{organizationInfo.title['url']}}"
|
10
|
target="_blank" class="uk-icon-external-link">
|
11
|
{{organizationInfo.title['name']}}
|
12
|
</a>
|
13
|
<p *ngIf="organizationInfo.title['url'] == ''">
|
14
|
{{organizationInfo.title['name']}}
|
15
|
</p>
|
16
|
</h3>
|
17
|
</div>
|
18
|
</div>
|
19
|
|
20
|
<div class="uk-grid"-->
|
21
|
<div *ngIf="organizationInfo != null" class="uk-grid">
|
22
|
<div class="uk-width-7-10">
|
23
|
<showTitle [title]="organizationInfo.title"></showTitle>
|
24
|
|
25
|
<!--div class="uk-width-2-3" *ngIf="organizationInfo != null"-->
|
26
|
<dl class="uk-description-list-horizontal custom-description-list-horizontal">
|
27
|
<dt *ngIf="organizationInfo.name != undefined && organizationInfo.name != ''">Name: </dt>
|
28
|
<dd *ngIf="organizationInfo.name != undefined && organizationInfo.name != ''">{{organizationInfo.name}}</dd>
|
29
|
<dt *ngIf="organizationInfo.country != undefined && organizationInfo.country != ''">Country: </dt>
|
30
|
<dd *ngIf="organizationInfo.country != undefined && organizationInfo.country != ''">{{organizationInfo.country}}</dd>
|
31
|
</dl>
|
32
|
|
33
|
<ul class="uk-tab" data-uk-switcher="{connect:'#tab-content'}">
|
34
|
<li class="uk-active">
|
35
|
<a>
|
36
|
Projects
|
37
|
<span class="uk-badge uk-badge-notification">{{(searchingProjectsTabComponent)?searchingProjectsTabComponent.fetchProjects.totalResults:0}}</span>
|
38
|
</a>
|
39
|
</li>
|
40
|
<li (click)="searchDataprovidersInit()">
|
41
|
<a>
|
42
|
Data Providers
|
43
|
<!--span *ngIf="organizationInfo.dataProviders == undefined" class="badge">0</span>
|
44
|
<span *ngIf="organizationInfo.dataProviders != undefined" class="badge">
|
45
|
{{organizationInfo.dataProviders.length}}
|
46
|
</span-->
|
47
|
<span class="uk-badge uk-badge-notification">
|
48
|
{{fetchDataproviders.searchUtils.totalResults}}
|
49
|
</span>
|
50
|
</a>
|
51
|
</li>
|
52
|
<!--li (click)="getMetrics()">
|
53
|
<a href="#metricsTab">
|
54
|
Metrics
|
55
|
</a>
|
56
|
</li-->
|
57
|
</ul>
|
58
|
|
59
|
<ul id="tab-content" class="uk-switcher uk-margin">
|
60
|
<li class="uk-animation-fade">
|
61
|
<searchingProjectsTab [organizationId]=organizationId ></searchingProjectsTab>
|
62
|
<!--div *ngIf="organizationInfo.projects == undefined" class = "uk-alert">
|
63
|
There are no projects
|
64
|
</div>
|
65
|
|
66
|
<div *ngIf="organizationInfo.projects != undefined">
|
67
|
<p>
|
68
|
The results below are discovered through our pilot algorithms.
|
69
|
<a href="mailto:feedback@openaire.eu">Let us know how we are doing!</a>
|
70
|
</p>
|
71
|
|
72
|
<div *ngIf="organizationInfo.projects.size == 1">
|
73
|
<div *ngFor="let key of organizationInfo.projects.keys()">
|
74
|
<strong>Projects funded by {{key}}</strong>
|
75
|
</div>
|
76
|
</div>
|
77
|
|
78
|
<div *ngIf="organizationInfo.projects.size > 1">
|
79
|
<strong>Filter by Funder</strong>
|
80
|
|
81
|
<span *ngFor="let key of organizationInfo.projects.keys()" class="checkbox">
|
82
|
<label>
|
83
|
<!--input type="checkbox" (ngModelChange)="changeType(key)"-->
|
84
|
<!--input type="checkbox" (click)='handleClick(key)'>
|
85
|
{{key}}
|
86
|
</label>
|
87
|
</span>
|
88
|
</div>
|
89
|
|
90
|
<table class="uk-table uk-table-striped" *ngIf="organizationInfo.projects.size > 0">
|
91
|
<thead>
|
92
|
<tr>
|
93
|
<th class="uk-text-center">Funder</th>
|
94
|
<th class="uk-text-center">Project Name</th>
|
95
|
</tr>
|
96
|
</thead>
|
97
|
<tbody *ngFor="let key of organizationInfo.projects.keys()">
|
98
|
<tr *ngFor="let item of organizationInfo.projects.get(key)">
|
99
|
<td *ngIf="fundersSet.has(key)">
|
100
|
{{key}}
|
101
|
</td>
|
102
|
<td *ngIf="fundersSet.has(key)">
|
103
|
<!--a *ngIf="item['url'] != '' && item['name'] != ''" href="{{item['url']}}"-->
|
104
|
<!--a *ngIf="item['id'] != '' && item['name'] != ''"
|
105
|
[queryParams]="{projectId: item.id}" routerLinkActive="router-link-active" routerLink="/search/project">
|
106
|
{{item['name']}}
|
107
|
</a>
|
108
|
<p *ngIf="item['id'] == '' && item['name'] != ''">{{item['name']}}</p>
|
109
|
<span *ngIf="item['code'] != null && item['code'] != ''"> ({{item['code']}}) </span>
|
110
|
</td>
|
111
|
</tr>
|
112
|
</tbody>
|
113
|
</table>
|
114
|
|
115
|
</div-->
|
116
|
</li>
|
117
|
|
118
|
<li class="uk-animation-fade">
|
119
|
<!--showDataProviders [dataProviders]="organizationInfo.dataProviders"></showDataProviders-->
|
120
|
<div *ngIf="fetchDataproviders.searchUtils.totalResults == 0" class = "uk-alert">
|
121
|
There are no dataproviders
|
122
|
</div>
|
123
|
|
124
|
<div *ngIf="fetchDataproviders.searchUtils.totalResults > 0">
|
125
|
<p>
|
126
|
The results below are discovered through our pilot algorithms.
|
127
|
<a href="mailto:feedback@openaire.eu">Let us know how we are doing!</a>
|
128
|
</p>
|
129
|
|
130
|
<div class = "uk-text-right" *ngIf = "fetchDataproviders.searchUtils.totalResults > 10">
|
131
|
<!--a [href] = "linkToSearchDataproviders">
|
132
|
View all {{fetchDataproviders.searchUtils.totalResults}} results
|
133
|
</a-->
|
134
|
<a [queryParams]="routerHelper.createQueryParams(['organizationId', 'or'], [organizationId, 'and'])"
|
135
|
routerLinkActive="router-link-active" [routerLink]="linkToSearchDataproviders">
|
136
|
View all {{fetchDataproviders.searchUtils.totalResults}} results
|
137
|
</a>
|
138
|
</div>
|
139
|
<search-result [(results)]="fetchDataproviders.results"
|
140
|
[(status)]= "fetchDataproviders.status"
|
141
|
type="dataprovider" urlParam="datasourceId">
|
142
|
</search-result>
|
143
|
</div>
|
144
|
</li>
|
145
|
<!--li id="metricsTab">
|
146
|
<div *ngIf="metrics == undefined" class = "uk-alert uk-alert-warning">
|
147
|
Metrics are currently unavailable
|
148
|
</div>
|
149
|
<div *ngIf="metrics != undefined" class="uk-panel uk-panel-box">
|
150
|
<b>Views: </b>{{metrics}}
|
151
|
</div>
|
152
|
</li-->
|
153
|
</ul>
|
154
|
</div>
|
155
|
|
156
|
<div class="uk-width-3-10">
|
157
|
<ul class="uk-list uk-list-striped">
|
158
|
<li>
|
159
|
<dl class="uk-description-list-line">
|
160
|
<dt >Share - Bookmark
|
161
|
</dt>
|
162
|
<dd>
|
163
|
<addThis ></addThis>
|
164
|
</dd>
|
165
|
</dl>
|
166
|
</li>
|
167
|
|
168
|
<ng-container *ngIf="searchingProjectsTabComponent && searchingProjectsTabComponent.fetchProjects.funders.length > 0">
|
169
|
<li *ngFor="let funder of searchingProjectsTabComponent.fetchProjects.funders">
|
170
|
<!--a href="{{downloadURLAPI}}resources?size={{organizationInfo.projects.get(key).length}}&{{csvProjectParamsHead}}{{organizationInfo.projects.get(key)[0]['funderId']}}{{csvParamsTail}}">
|
171
|
Download projects report (CSV) for {{key}}
|
172
|
</a-->
|
173
|
<span class="clickable" (click)="downloadfile(downloadURLAPI+'resources?size='+funder.number+'&'+csvProjectParamsHead+funder.id+csvParamsTail)">
|
174
|
<span aria-hidden="true" class="glyphicon glyphicon-download"></span>
|
175
|
<span class="uk-icon-download"> Projects report(CSV) for {{funder.name}}</span>
|
176
|
</span>
|
177
|
</li>
|
178
|
|
179
|
<li *ngFor="let funder of searchingProjectsTabComponent.fetchProjects.funders">
|
180
|
<span class="clickable" (click)="confirmOpen(funder.name,funder.id, funder.number)">
|
181
|
<span aria-hidden="true" class="glyphicon glyphicon-download"></span>
|
182
|
<span class="uk-icon-download"> Publications report(CSV) for {{funder.name}}</span>
|
183
|
</span>
|
184
|
</li>
|
185
|
</ng-container>
|
186
|
</ul>
|
187
|
</div>
|
188
|
</div>
|
189
|
<modal-loading></modal-loading>
|
190
|
<modal-alert (alertOutput)="confirmClose($event)"></modal-alert>
|
191
|
</div>
|