1
|
<ng-template #filters_column>
|
2
|
<!-- let-dynamic_content="dynamic_content">-->
|
3
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top uk-margin-medium-bottom ">
|
4
|
<div class="uk-grid uk-flex uk-flex-bottom">
|
5
|
<h5 class="uk-text-bold">Filters</h5>
|
6
|
<a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
7
|
Clear All
|
8
|
</a>
|
9
|
</div>
|
10
|
<div class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
11
|
<ng-container *ngIf="selectedRangeFilters > 0">
|
12
|
<ng-container *ngFor="let filter of rangeFilters " >
|
13
|
<ng-container *ngIf = "filter.selectedFromAndToValues">
|
14
|
<span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >
|
15
|
<span class="selectedFilterLabel ">
|
16
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
17
|
<span class=" clickable" aria-hidden="true">
|
18
|
<span class="uk-icon">
|
19
|
<svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>
|
20
|
</span>
|
21
|
</span>
|
22
|
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
|
23
|
</a>
|
24
|
</span>
|
25
|
</span>
|
26
|
</ng-container>
|
27
|
</ng-container>
|
28
|
</ng-container>
|
29
|
<ng-container *ngFor="let filter of filters " >
|
30
|
<ng-container *ngIf = "filter.countSelectedValues > 0">
|
31
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
32
|
[title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
|
33
|
<!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
|
34
|
<span class="selectedFilterLabel ">
|
35
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
36
|
<span class=" clickable" aria-hidden="true">
|
37
|
<span class="uk-icon">
|
38
|
<svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>
|
39
|
</span>
|
40
|
</span>
|
41
|
<span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
|
42
|
</a>
|
43
|
</span>
|
44
|
</span>
|
45
|
</ng-container>
|
46
|
</ng-container>
|
47
|
</div>
|
48
|
</div>
|
49
|
<div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">
|
50
|
<span class="uk-text-meta">No filters available</span>
|
51
|
</div>
|
52
|
<ul *ngIf="!showUnknownFilters"
|
53
|
[class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">
|
54
|
<ng-container *ngFor="let filter of rangeFilters">
|
55
|
<li>
|
56
|
<range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>
|
57
|
</li>
|
58
|
</ng-container>
|
59
|
<ng-container *ngFor="let filter of filters ">
|
60
|
<li *ngIf= "filter.values.length >0">
|
61
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
62
|
</li>
|
63
|
</ng-container>
|
64
|
</ul>
|
65
|
</ng-template>
|
66
|
|
67
|
|
68
|
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
|
69
|
' image-front-topbar uk-section-default uk-position-relative ' :
|
70
|
(' uk-section uk-padding-remove-bottom uk-padding-remove-top ' + (usedBy
|
71
|
== 'deposit' ? ' uk-padding-remove-top ' : ' '))"
|
72
|
uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}" tm-header-transparent="light">
|
73
|
<div style="box-sizing: border-box; "
|
74
|
[class]="' uk-background-norepeat uk-background-bottom-center uk-padding-remove-bottom uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
|
75
|
+ (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
|
76
|
' searchFormMinHeight uk-padding-remove-bottom uk-section ' : '')
|
77
|
+(simpleView?'':' advancedSearchFormBackground ')">
|
78
|
|
79
|
<div [class]="(usedBy!='deposit' && (!customFilter || customFilter.queryFieldName != 'communityId'))?'uk-position-cover':''" ></div>
|
80
|
<div class="uk-width-1-1">
|
81
|
<breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"
|
82
|
addClass=" uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
83
|
<div class="uk-position-relative">
|
84
|
<div [class]="'uk-container '+(customFilter && customFilter.queryFieldName ==
|
85
|
'communityId'?' uk-margin-large-bottom ':'uk-margin-large-top')+
|
86
|
(entityType === 'community' ||entityType === 'funder'?' uk-position-relative':'')">
|
87
|
<advanced-search-form
|
88
|
[entityType] = "entityType"
|
89
|
[fieldIds]="fieldIds"
|
90
|
[fieldIdsMap]="fieldIdsMap"
|
91
|
[selectedFields]="selectedFields"
|
92
|
(queryChange)="queryChanged()"
|
93
|
[isDisabled]="disableForms"
|
94
|
[simpleSearchLink]="simpleSearchLink"
|
95
|
[advancedSearchLink]="advancedSearchLink"
|
96
|
[advancedSearchLinkParameters]
|
97
|
="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
98
|
[pageTitle]=pageTitle [simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText"
|
99
|
[resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
|
100
|
[showAdvancedSearchLink]="showAdvancedSearchLink" [customFilter]="customFilter"
|
101
|
>
|
102
|
</advanced-search-form>
|
103
|
<div *ngIf="entityType === 'community' ||entityType === 'funder' " class="uk-position-center-right">
|
104
|
<img src="assets/connect-assets/banner/search.png" class="uk-align-center" width="141" height="171">
|
105
|
</div>
|
106
|
</div>
|
107
|
</div>
|
108
|
</div>
|
109
|
</div>
|
110
|
</div>
|
111
|
<schema2jsonld *ngIf="!includeOnlyResultsAndFilter && url" [URL]="url" type="search" [name]=pageTitle
|
112
|
[searchAction]=false></schema2jsonld>
|
113
|
|
114
|
|
115
|
|
116
|
<div id="tm-main" class=" tm-middle">
|
117
|
<div uk-grid>
|
118
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
119
|
<!-- <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"-->
|
120
|
<!-- addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>-->
|
121
|
<div class="uk-container uk-container-large">
|
122
|
<div>
|
123
|
<breadcrumbs *ngIf="showBreadcrumb && entityType=='community'"
|
124
|
addClass=" " [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
125
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
|
126
|
<div [class]="(showRefine)? 'uk-width-4-5@m uk-width-4-5@l uk-width-1-1@s' :'uk-width-1-1'">
|
127
|
<div *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m uk-margin-top">
|
128
|
|
129
|
<a href="#offcanvas-usage" uk-toggle>
|
130
|
<span class="uk-icon uk-margin-small-right uk-margin-small-left">
|
131
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="settings">
|
132
|
<ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
|
133
|
<ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
|
134
|
<circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
|
135
|
<rect x="1" y="3" width="3" height="1"></rect>
|
136
|
<rect x="10" y="3" width="8" height="1"></rect>
|
137
|
<rect x="1" y="9" width="8" height="1"></rect>
|
138
|
<rect x="15" y="9" width="3" height="1"></rect>
|
139
|
<rect x="1" y="15" width="3" height="1"></rect>
|
140
|
<rect x="10" y="15" width="8" height="1"></rect>
|
141
|
</svg>
|
142
|
</span>
|
143
|
<span>Filters <span *ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters+selectedFilters)}})</span></span>
|
144
|
<!-- <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
|
145
|
<!-- <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
|
146
|
<!-- <rect x="6" y="14" width="12" height="1"></rect>-->
|
147
|
<!-- <rect x="2" y="4" width="2" height="1"></rect>-->
|
148
|
<!-- <rect x="2" y="9" width="2" height="1"></rect>-->
|
149
|
<!-- <rect x="2" y="14" width="2" height="1"></rect>-->
|
150
|
<!-- </svg>-->
|
151
|
</a>
|
152
|
|
153
|
<div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
|
154
|
<div class="uk-offcanvas-bar offcanvas-white">
|
155
|
<button class="uk-offcanvas-close" type="button" uk-close></button>
|
156
|
<div class="uk-width-1-1">
|
157
|
|
158
|
<!-- <span *ngIf="tableViewLink " class="uk-width-expand">-->
|
159
|
<!-- <span *ngIf="tableViewLink">-->
|
160
|
<!-- <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
|
161
|
<!-- <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="2" y="2" width="3" height="3"></rect><rect x="8" y="2" width="3" height="3"></rect><rect x="14" y="2" width="3" height="3"></rect><rect x="2" y="8" width="3" height="3"></rect><rect x="8" y="8" width="3" height="3"></rect><rect x="14" y="8" width="3" height="3"></rect><rect x="2" y="14" width="3" height="3"></rect><rect x="8" y="14" width="3" height="3"></rect><rect x="14" y="14" width="3" height="3"></rect></svg></span>-->
|
162
|
<!-- </a>-->
|
163
|
<!-- <span uk-tooltip="title: List view" class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="table" ratio="1"><rect x="1" y="3" width="18" height="1"></rect><rect x="1" y="7" width="18" height="1"></rect><rect x="1" y="11" width="18" height="1"></rect><rect x="1" y="15" width="18" height="1"></rect></svg></span>-->
|
164
|
<!-- </span>-->
|
165
|
<!-- </span>-->
|
166
|
<!-- <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
|
167
|
<!-- 'community' && entityType != 'funder') && usedBy == 'search'"-->
|
168
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
169
|
<!-- </search-download>-->
|
170
|
|
171
|
<!-- HERE-->
|
172
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-top uk-margin-small-bottom">-->
|
173
|
<!--<!– <div class="uk-grid uk-margin-bottom uk-margin-top">–>-->
|
174
|
<!--<!– <span class="uk-text-bold uk-text-large">Filters</span>–>-->
|
175
|
<!--<!– <a *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">–>-->
|
176
|
<!--<!– Clear All–>-->
|
177
|
<!--<!– </a>–>-->
|
178
|
<!--<!– </div>–>-->
|
179
|
<!-- <div class="uk-grid uk-flex uk-flex-bottom">-->
|
180
|
<!-- <h5 class="uk-text-bold">Filters</h5>-->
|
181
|
<!-- <a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">-->
|
182
|
<!-- Clear All-->
|
183
|
<!-- </a>-->
|
184
|
<!-- </div>-->
|
185
|
<!-- </div>-->
|
186
|
|
187
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters>0" class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>-->
|
188
|
<!-- <ng-container *ngIf="selectedRangeFilters > 0">-->
|
189
|
<!-- <ng-container *ngFor="let filter of rangeFilters " >-->
|
190
|
<!-- <ng-container *ngIf = "filter.selectedFromAndToValues">-->
|
191
|
<!-- <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
|
192
|
<!-- <span class="selectedFilterLabel ">-->
|
193
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
194
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
195
|
<!-- <span class="uk-icon">-->
|
196
|
<!-- <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>-->
|
197
|
<!-- </span>-->
|
198
|
<!-- </span>-->
|
199
|
<!-- <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
|
200
|
<!-- </a>-->
|
201
|
<!-- </span>-->
|
202
|
<!-- </span>-->
|
203
|
<!-- </ng-container>-->
|
204
|
<!-- </ng-container>-->
|
205
|
<!-- </ng-container>-->
|
206
|
<!-- <ng-container *ngFor="let filter of filters " >-->
|
207
|
<!-- <ng-container *ngIf = "filter.countSelectedValues > 0">-->
|
208
|
|
209
|
<!-- <!– <span class="uk-text-bold">{{filter.title}}:</span>–>-->
|
210
|
<!-- <!– uk-margin-small-top uk-margin-small-right–> <!– if no grid on the div above, add it –>-->
|
211
|
<!-- <!– uk-label –>-->
|
212
|
<!-- <span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "-->
|
213
|
<!-- [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
|
214
|
<!-- <!– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span –>-->
|
215
|
<!-- <span class="selectedFilterLabel ">-->
|
216
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
217
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
218
|
<!-- <span class="uk-icon">-->
|
219
|
<!-- <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>-->
|
220
|
<!-- </span>-->
|
221
|
<!-- </span>-->
|
222
|
<!-- <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
|
223
|
<!-- </a>-->
|
224
|
<!-- </span>-->
|
225
|
<!-- </span>-->
|
226
|
<!-- </ng-container>-->
|
227
|
<!-- </ng-container>-->
|
228
|
|
229
|
|
230
|
<!-- </div>-->
|
231
|
|
232
|
<!--<!– <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">–>-->
|
233
|
<!--<!– <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>–>-->
|
234
|
<!--<!– </div>–>-->
|
235
|
|
236
|
<!-- <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">-->
|
237
|
<!-- <span class="uk-text-meta">No filters available</span>-->
|
238
|
<!-- </div>-->
|
239
|
<!-- <ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">-->
|
240
|
<!-- <ng-container *ngFor="let filter of rangeFilters">-->
|
241
|
<!-- <li>-->
|
242
|
<!-- <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
|
243
|
<!-- </li>-->
|
244
|
<!-- </ng-container>-->
|
245
|
<!-- <ng-container *ngFor="let filter of filters ">-->
|
246
|
<!-- <li *ngIf= "filter.values.length >0">-->
|
247
|
<!-- <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>-->
|
248
|
<!-- </li>-->
|
249
|
<!-- </ng-container>-->
|
250
|
<!-- </ul>-->
|
251
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
252
|
<!-- END OF HERE-->
|
253
|
</div>
|
254
|
</div>
|
255
|
</div>
|
256
|
|
257
|
</div>
|
258
|
</div>
|
259
|
<div *ngIf="includeOnlyResultsAndFilter && (resultTypes || quickFilter)"
|
260
|
class="uk-margin-medium-top uk-margin-medium-bottom">
|
261
|
<a *ngIf ="showAdvancedSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
|
262
|
[routerLink]="advancedSearchLink" style="z-index:1;" [queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
263
|
[class]="(disableForms?' uk-disabled uk-link-muted ':'') +' portal-link uk-float-right '">Advanced search
|
264
|
</a>
|
265
|
<quick-selections [resultTypes]="resultTypes"
|
266
|
(typeChange)="queryChanged()"
|
267
|
[isDisabled]="disableForms"
|
268
|
[quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
|
269
|
[properties]="properties">
|
270
|
</quick-selections>
|
271
|
|
272
|
</div>
|
273
|
<div class="uk-grid helper-grid uk-padding-small uk-padding-remove-vertical uk-margin-large-bottom" >
|
274
|
<div *ngIf="showRefine" class="uk-width-1-4@m search-filters uk-visible@m">
|
275
|
<!-- top: #container-1; bottom: #true; -->
|
276
|
<!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
|
277
|
<!-- <span *ngIf="tableViewLink" class="uk-width-expand">-->
|
278
|
<!-- <span *ngIf="tableViewLink">-->
|
279
|
<!-- <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
|
280
|
<!-- <span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="2" y="2" width="3" height="3"></rect><rect x="8" y="2" width="3" height="3"></rect><rect x="14" y="2" width="3" height="3"></rect><rect x="2" y="8" width="3" height="3"></rect><rect x="8" y="8" width="3" height="3"></rect><rect x="14" y="8" width="3" height="3"></rect><rect x="2" y="14" width="3" height="3"></rect><rect x="8" y="14" width="3" height="3"></rect><rect x="14" y="14" width="3" height="3"></rect></svg></span>-->
|
281
|
<!-- </a>-->
|
282
|
<!-- <span uk-tooltip="title: List view" class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="table" ratio="1"><rect x="1" y="3" width="18" height="1"></rect><rect x="1" y="7" width="18" height="1"></rect><rect x="1" y="11" width="18" height="1"></rect><rect x="1" y="15" width="18" height="1"></rect></svg></span>-->
|
283
|
<!-- </span>-->
|
284
|
<!-- </span>-->
|
285
|
<!-- <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
|
286
|
<!-- 'community' && entityType != 'funder') && usedBy == 'search'"-->
|
287
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
288
|
<!-- </search-download>-->
|
289
|
|
290
|
<!-- HERE-->
|
291
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top uk-margin-medium-bottom ">-->
|
292
|
<!-- <div class="uk-grid uk-flex uk-flex-bottom">-->
|
293
|
<!-- <h5 class="uk-text-bold">Filters</h5>-->
|
294
|
<!-- <a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">-->
|
295
|
<!-- Clear All-->
|
296
|
<!-- </a>-->
|
297
|
<!-- </div>-->
|
298
|
<!-- <!– uk-grid uk-grid-small" uk-grid–>-->
|
299
|
<!-- <!– uk-margin-left–>-->
|
300
|
<!-- <div class="uk-grid uk-grid-small uk-text-small" uk-grid>-->
|
301
|
<!-- <ng-container *ngIf="selectedRangeFilters > 0">-->
|
302
|
<!-- <ng-container *ngFor="let filter of rangeFilters " >-->
|
303
|
<!-- <ng-container *ngIf = "filter.selectedFromAndToValues">-->
|
304
|
<!-- <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
|
305
|
<!-- <span class="selectedFilterLabel ">-->
|
306
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
307
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
308
|
<!-- <span class="uk-icon">-->
|
309
|
<!-- <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>-->
|
310
|
<!-- </span>-->
|
311
|
<!-- </span>-->
|
312
|
<!-- <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
|
313
|
<!-- </a>-->
|
314
|
<!-- </span>-->
|
315
|
<!-- </span>-->
|
316
|
<!-- </ng-container>-->
|
317
|
<!-- </ng-container>-->
|
318
|
<!-- </ng-container>-->
|
319
|
<!-- <ng-container *ngFor="let filter of filters " >-->
|
320
|
<!-- <ng-container *ngIf = "filter.countSelectedValues > 0">-->
|
321
|
|
322
|
<!-- <!– <span class="uk-text-bold">{{filter.title}}:</span>–>-->
|
323
|
<!-- <!– uk-margin-small-top uk-margin-small-right–> <!– if no grid on the div above, add it –>-->
|
324
|
<!-- <!– uk-label –>-->
|
325
|
<!-- <span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "-->
|
326
|
<!-- [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
|
327
|
<!-- <!– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span –>-->
|
328
|
<!-- <span class="selectedFilterLabel ">-->
|
329
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
330
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
331
|
<!-- <span class="uk-icon">-->
|
332
|
<!-- <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>-->
|
333
|
<!-- </span>-->
|
334
|
<!-- </span>-->
|
335
|
<!-- <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
|
336
|
<!-- </a>-->
|
337
|
<!-- </span>-->
|
338
|
<!-- </span>-->
|
339
|
<!-- </ng-container>-->
|
340
|
<!-- </ng-container>-->
|
341
|
<!-- </div>-->
|
342
|
|
343
|
<!-- <!– <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">–>-->
|
344
|
<!-- <!– <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>–>-->
|
345
|
<!-- <!– </div>–>-->
|
346
|
<!-- </div>-->
|
347
|
<!-- <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">-->
|
348
|
<!-- <span class="uk-text-meta">No filters available</span>-->
|
349
|
<!-- </div>-->
|
350
|
<!-- <ul *ngIf="!showUnknownFilters"-->
|
351
|
<!-- [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">-->
|
352
|
<!-- <ng-container *ngFor="let filter of rangeFilters">-->
|
353
|
<!-- <li>-->
|
354
|
<!-- <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
|
355
|
<!-- </li>-->
|
356
|
<!-- </ng-container>-->
|
357
|
<!-- <ng-container *ngFor="let filter of filters ">-->
|
358
|
<!-- <li *ngIf= "filter.values.length >0">-->
|
359
|
<!-- <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>-->
|
360
|
<!-- </li>-->
|
361
|
<!-- </ng-container>-->
|
362
|
<!-- </ul>-->
|
363
|
<!--context: { dynamic_content: getDynamicContent(share_research_results_type) }">-->
|
364
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
365
|
<!-- END OF HERE-->
|
366
|
|
367
|
</div>
|
368
|
<div class="uk-width-expand@m uk-with-1-1@s">
|
369
|
<div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"> <a
|
370
|
class="uk-margin-top uk-button uk-button-text"
|
371
|
[href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
|
372
|
target="_blank" >Results in OpenAIRE</a></div>
|
373
|
<div class="uk-align-center uk-margin-remove-bottom">
|
374
|
<div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
|
375
|
class="uk-grid uk-margin-top uk-margin-bottom">
|
376
|
<div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
|
377
|
<search-results-per-page [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
|
378
|
<search-sorting *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
|
379
|
</div>
|
380
|
<!-- uk-flex uk-flex-middle-->
|
381
|
<div class="uk-width-auto@m uk-margin-small-bottom">
|
382
|
<!-- !showUnknownFilters && (searchUtils.totalResults > 0 || !loadPaging)-->
|
383
|
<search-download *ngIf= "( entityType !='community' && entityType != 'funder') && usedBy == 'search'"
|
384
|
[isDisabled]="disableForms"
|
385
|
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
386
|
</search-download>
|
387
|
|
388
|
<!--<span *ngIf="tableViewLink">
|
389
|
<a uk-tooltip="title: Table view" routerLinkActive="router-link-active"
|
390
|
[class]="((disableForms)?'uk-disabled uk-link-muted':'')+' uk-link-text uk-margin-small-left'"
|
391
|
[routerLink]=tableViewLink >
|
392
|
<span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1"><rect x="2" y="2" width="3" height="3"></rect><rect x="8" y="2" width="3" height="3"></rect><rect x="14" y="2" width="3" height="3"></rect><rect x="2" y="8" width="3" height="3"></rect><rect x="8" y="8" width="3" height="3"></rect><rect x="14" y="8" width="3" height="3"></rect><rect x="2" y="14" width="3" height="3"></rect><rect x="8" y="14" width="3" height="3"></rect><rect x="14" y="14" width="3" height="3"></rect></svg></span>
|
393
|
Table view
|
394
|
</a>
|
395
|
<!– <span uk-tooltip="title: List view" class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="table" ratio="1"><rect x="1" y="3" width="18" height="1"></rect><rect x="1" y="7" width="18" height="1"></rect><rect x="1" y="11" width="18" height="1"></rect><rect x="1" y="15" width="18" height="1"></rect></svg></span>–>
|
396
|
</span>-->
|
397
|
</div>
|
398
|
</div>
|
399
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
|
400
|
</div>
|
401
|
|
402
|
<!-- <search-download *ngIf= "( entityType !='community' && entityType != 'funder') && usedBy == 'search'"-->
|
403
|
<!-- class="uk-width-1-1@s uk-hidden@m"-->
|
404
|
<!-- [isDisabled]="disableForms"-->
|
405
|
<!-- [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
406
|
<!-- </search-download>-->
|
407
|
|
408
|
<div *ngIf="(searchUtils.page <= pagingLimit)" class="uk-margin-large-bottom">
|
409
|
<search-result *ngIf="( entityType !='community' && entityType != 'funder') && usedBy == 'search'"
|
410
|
[results]="results"
|
411
|
[status]=searchUtils.status
|
412
|
[type]="entityType"
|
413
|
[showLoading]="true" [properties]=properties [showImpactFactors]="(customFilter &&
|
414
|
customFilter.queryFieldName == 'communityId' && customFilter.valueId == 'elixir-gr')" >
|
415
|
</search-result>
|
416
|
<deposit-result *ngIf="usedBy == 'deposit'"
|
417
|
[results]="results"
|
418
|
[status]="searchUtils.status"
|
419
|
[type]="entityType"
|
420
|
[zenodoInformation]="zenodoInformation"
|
421
|
[properties]=properties>
|
422
|
</deposit-result>
|
423
|
<community-search-result *ngIf="(entityType == 'community' || entityType == 'funder') &&
|
424
|
usedBy == 'search'"
|
425
|
[results]="results"
|
426
|
[status]="searchUtils.status"
|
427
|
[type]="entityType"
|
428
|
[showType]="false"
|
429
|
[showLoading]="true" [properties]=properties>
|
430
|
</community-search-result>
|
431
|
</div>
|
432
|
|
433
|
<div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''" *ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
|
434
|
<p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
|
435
|
</div>
|
436
|
|
437
|
<div class="uk-align-center uk-margin-remove-bottom">
|
438
|
<!-- <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"-->
|
439
|
<!-- class="uk-grid uk-margin-top uk-margin-bottom">-->
|
440
|
<!-- <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>-->
|
441
|
<!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>-->
|
442
|
<!-- </div>-->
|
443
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
|
444
|
</div>
|
445
|
|
446
|
<a *ngIf="properties.showLastIndexInformationLink && lastIndex"
|
447
|
class="last_index_info uk-button-text uk-button"
|
448
|
[href]="properties.lastIndexInformationLink" target="_blank">
|
449
|
Last index information
|
450
|
</a>
|
451
|
</div>
|
452
|
<!-- <div class="uk-visible@m uk-margin-top uk-width-1-5">-->
|
453
|
<!-- <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>-->
|
454
|
<!-- </div>-->
|
455
|
<!-- <helper *ngIf="searchUtils.totalResults > csvLimit" class="uk-margin-top helper-left-right uk-visible@m" position="right"></helper> -->
|
456
|
</div>
|
457
|
|
458
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']"></helper>
|
459
|
</div>
|
460
|
</div>
|
461
|
</div>
|
462
|
</div>
|
463
|
</div>
|