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