Project

General

Profile

1
<ng-template #selected_filters_pills>
2
  <div class="uk-grid uk-grid-small uk-text-small" uk-grid>
3
    <ng-container *ngIf="customFilterEnabled && customFilter && refineFields.indexOf(customFilter.queryFieldName) ==
4
    -1 ">
5
     <span class="uk-grid-margin">
6
        <span class="selectedFilterLabel uk-disabled ">
7
            <span class="">{{customFilter.valueName}}</span>
8
        </span>
9
      </span>
10
    </ng-container>
11
    <ng-container *ngIf=" resultTypes && resultTypes.countSelectedValues > 0">
12
      <ng-container *ngFor="let type of resultTypes.values; let i = index;  let end = last; ">
13
        <ng-container *ngIf="type.selected">
14
         <span [title]="'Remove '+ type.name" (click)="removeResultType(type.id) "
15
               [class]="((disableForms || disableRefineForms) ? 'uk-disabled' : 'clickable') + ' uk-grid-margin'">
16
            <span class="selectedFilterLabel ">
17
              <a class="uk-link-text">
18
                <span aria-hidden="true">
19
                  <span class="uk-icon">
20
                    <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close"
21
                         ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path
22
                      fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>
23
                  </span>
24
                </span>
25
                <span class="uk-margin-small-left">{{type.name}}</span>
26
              </a>
27
            </span>
28
          </span>
29
        </ng-container>
30
      </ng-container>
31
    </ng-container>
32
    <ng-container *ngIf="selectedRangeFilters > 0">
33
      <ng-container *ngFor="let filter of rangeFilters ">
34
        <ng-container *ngIf="filter.selectedFromAndToValues">
35
                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click)="removeRangeFilter(filter) "
36
                              [class]="((disableForms || disableRefineForms) ? 'uk-disabled' : 'clickable') + ' uk-grid-margin'">
37
                          <span class="selectedFilterLabel ">
38
                            <a class="uk-link-text">
39
                              <span aria-hidden="true">
40
                                <span class="uk-icon">
41
                                  <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
42
                                       icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6"
43
                                                                      d="M16,16 L4,4"></path><path fill="none"
44
                                                                                                   stroke="#000"
45
                                                                                                   stroke-width="1.6"
46
                                                                                                   d="M16,4 L4,16"></path></svg>
47
                                </span>
48
                              </span>
49
                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
50
                            </a>
51
                          </span>
52
                        </span>
53
        </ng-container>
54
      </ng-container>
55
    </ng-container>
56
    <ng-container *ngFor="let filter of filters ">
57
      <ng-container *ngIf="filter.countSelectedValues > 0">
58
        <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "
59
              [title]="'Remove '+value.name" (click)="removeFilter(value, filter) "
60
              [class]="((disableForms || disableRefineForms) ? 'uk-disabled' : 'clickable') + ' uk-grid-margin'">
61
                        <!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
62
                        <span class="selectedFilterLabel ">
63
                          <a class="uk-link-text">
64
                            <span aria-hidden="true">
65
                              <span class="uk-icon">
66
                                <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
67
                                     icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6"
68
                                                                    d="M16,16 L4,4"></path><path fill="none"
69
                                                                                                 stroke="#000"
70
                                                                                                 stroke-width="1.6"
71
                                                                                                 d="M16,4 L4,16"></path></svg>
72
                              </span>
73
                            </span>
74
                            <span class="uk-margin-small-left"
75
                                  [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
76
                          </a>
77
                        </span>
78
                      </span>
79
      </ng-container>
80
    </ng-container>
81
  </div>
82
</ng-template>
83
<ng-template #filters_column>
84
  <div [class.filterLoading]="(disableForms || disableRefineForms)">
85
  <div class="uk-width-1-1 uk-margin-top" >
86
    <div class="uk-grid uk-flex uk-flex-bottom">
87
<!--      *ngIf="(selectedRangeFilters+selectedFilters + selectedTypesNum  > 0)
88
|| (filters.length > 0 && (results.length > 0 || disableForms))"-->
89
      <h6 class="uk-text-bold">
90
        Filters
91
      </h6>
92
      <a *ngIf="(selectedRangeFilters+selectedFilters + selectedTypesNum)>1" (click)="clearFilters()"
93
         [class]="((disableForms || disableRefineForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
94
        Clear All
95
      </a>
96
    </div>
97
    <div *ngIf="selectedRangeFilters+selectedFilters + selectedTypesNum  > 0 || (customFilter && customFilter.selected
98
     == true)"
99
         class="uk-margin-small-top  uk-margin-medium-bottom">
100
      <ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
101
    </div>
102
  </div>
103
  <div *ngIf="searchUtils.refineStatus == errorCodes.LOADING && existingFiltersWithValues === 0"
104
       class="'uk-animation-fade uk-margin-top  uk-width-1-1" role="alert">
105
    <span class="loading-gif  uk-align-center" ></span>
106
  </div>
107
  <div *ngIf="searchUtils.refineStatus != errorCodes.LOADING && existingFiltersWithValues === 0 && results.length > 0" class="uk-margin-top">
108
    <span class="uk-text-meta">No filters available</span>
109
  </div>
110
  <ul *ngIf="!showUnknownFilters"
111
      [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">
112
    <!--    searchUtils.refineStatus == errorCodes.DONE &&-->
113
    <ng-container *ngIf="filters.length > 0 && filters[0].values.length >0 && filters[0].filterId == 'resultbestaccessright'">
114
      <li>
115
        <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
116
                       [isDisabled]="disableForms || disableRefineForms"
117
                       [filter]="filters[0]" [showResultCount]=showResultCount
118
                       (onFilterChange)="filterChanged($event)" [quickFilter]="quickFilter"
119
                       [actionRoute]="true"></search-filter>
120
      </li>
121
    </ng-container>
122
    <li *ngIf="resultTypes && (filters.length > 0)">
123
      <quick-selections [resultTypes]="resultTypes" (typeChange)="queryChanged($event)"
124
                        [isDisabled]="disableForms || disableRefineForms" [vertical]="true"
125
                        [properties]="properties" [actionRoute]="true">
126
      </quick-selections>
127
    </li>
128
    <ng-container *ngFor="let filter of rangeFilters">
129
      <li>
130
        <range-filter [isDisabled]="disableForms || disableRefineForms" [filter]="filter"
131
                      (onFilterChange)="filterChanged($event)" [actionRoute]="true"></range-filter>
132
      </li>
133
    </ng-container>
134
    <ng-container *ngFor="let filter of filters ">
135
      <li *ngIf="filter.values && filter.values.length > 0 && filter.filterId != 'resultbestaccessright'">
136
        <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
137
                       [isDisabled]="disableForms || disableRefineForms"
138
                       [filter]="filter" [showResultCount]=showResultCount
139
                       (onFilterChange)="filterChanged($event)" [actionRoute]="true"></search-filter>
140
      </li>
141
    </ng-container>
142
  </ul>
143
  </div>
144
</ng-template>
145
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
146
     (stickyForm?'':' uk-position-relative ') :
147
    (+ (stickyForm?'':' uk-section') +' uk-padding-remove-bottom  uk-padding-remove-top ' + (usedBy
148

    
149
    == 'deposit' ? ' uk-padding-remove-top ' : ' '))"
150
     [attr.uk-sticky]="(stickyForm?'{animation:false;offset:100;top:90;cls-active:uk-active uk-sticky-below;cls-inactive:uk-sticky '+(usedBy !=
151
     'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
152
    '  uk-position-relative ' :(' uk-section '  ))+'}':null)">
153
  <div style="box-sizing: border-box;  "
154
       [class]="' uk-background-norepeat  uk-background-bottom-center   uk-padding-remove-bottom  uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
155
              + (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') && !dashboard ?
156
              ' image-front-topbar searchFormMinHeight uk-padding-remove-bottom uk-section' : '')
157
              +(simpleView?'':' advancedSearchFormBackground ')">
158

    
159
    <div
160
        [class]="(usedBy!='deposit' && (!customFilter || customFilter.queryFieldName != 'communityId'))?'uk-position-cover':''"></div>
161
    <div class="uk-width-1-1">
162
      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"
163
                   addClass=" uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top"
164
                   [breadcrumbs]="breadcrumbs"></breadcrumbs>
165
      <div class="uk-position-relative">
166
        <div [class]="'uk-container '+(customFilter && customFilter.queryFieldName ==
167
           'communityId'?'  uk-margin-large-bottom ':'uk-margin-top')+
168
           (entityType === 'community' ||entityType === 'stakeholder'?' uk-position-relative':'')" id="searchForm">
169
          <advanced-search-form
170
            [entityType]="entityType"
171
            [fieldIds]="fieldIds"
172
            [fieldIdsMap]="fieldIdsMap"
173
            [selectedFields]="selectedFields"
174
            (queryChange)="queryChanged()"
175
            [isDisabled]="disableForms || disableRefineForms"
176
            [simpleSearchLink]="simpleSearchLink"
177
            [advancedSearchLink]="advancedSearchLink"
178
            [advancedSearchLinkParameters]
179
                  ="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
180
            [pageTitle]=pageTitle [simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText"
181
            [resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
182
            [showSwitchSearchLink]="showSwitchSearchLink" [customFilter]="customFilter"
183
          >
184
          </advanced-search-form>
185
          <div *ngIf="entityType === 'community' || entityType === 'stakeholder' " class="uk-position-center-right uk-visible@m">
186
            <img src="assets/common-assets/common/search.png" class="uk-align-center" width="141" height="171">
187
          </div>
188
        </div>
189
      </div>
190
    </div>
191
  </div>
192
</div>
193
<schema2jsonld *ngIf="!includeOnlyResultsAndFilter && url" [URL]="url" type="search" [name]=pageTitle
194
               [searchAction]=false [description]="metaDescription" ></schema2jsonld>
195

    
196

    
197
<div id="tm-main" class="   tm-middle" [class.uk-margin-top]="stickyForm">
198
  <div uk-grid>
199
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
200
      <!--      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"-->
201
      <!--                   addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>-->
202
      <div class="uk-container uk-container-large">
203
        <div>
204
          <breadcrumbs *ngIf="showBreadcrumb && entityType=='community'"
205
                       addClass=" " [breadcrumbs]="breadcrumbs"></breadcrumbs>
206
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
207
                  [texts]="pageContents['top']"></helper>
208
          <div [class]="(showRefine && !properties.isDashboard)? 'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s' :'uk-width-1-1'">
209
            <div *ngIf="showRefine && !dashboard" class="uk-offcanvas-content uk-hidden@m  uk-margin-top">
210

    
211
              <a href="#offcanvas-usage" uk-toggle>
212
                <span class="uk-icon uk-margin-small-right uk-margin-small-left">
213
                  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
214
                       data-svg="settings">
215
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
216
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
217
                    <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
218
                    <rect x="1" y="3" width="3" height="1"></rect>
219
                    <rect x="10" y="3" width="8" height="1"></rect>
220
                    <rect x="1" y="9" width="8" height="1"></rect>
221
                    <rect x="15" y="9" width="3" height="1"></rect>
222
                    <rect x="1" y="15" width="3" height="1"></rect>
223
                    <rect x="10" y="15" width="8" height="1"></rect>
224
                  </svg>
225
                </span>
226
                <span>Filters <span
227
                    *ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters + selectedFilters)}}
228
                  )</span></span>
229
                <!--                <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
230
                <!--                  <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
231
                <!--                  <rect x="6" y="14" width="12" height="1"></rect>-->
232
                <!--                  <rect x="2" y="4" width="2" height="1"></rect>-->
233
                <!--                  <rect x="2" y="9" width="2" height="1"></rect>-->
234
                <!--                  <rect x="2" y="14" width="2" height="1"></rect>-->
235
                <!--                </svg>-->
236
              </a>
237

    
238
              <div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
239
                <div class="uk-offcanvas-bar offcanvas-white">
240
                  <button class="uk-offcanvas-close" type="button" uk-close></button>
241
                  <div class="uk-width-1-1">
242
                    <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
243
                  </div>
244
                </div>
245
              </div>
246

    
247
            </div>
248
          </div>
249
          <div *ngIf="includeOnlyResultsAndFilter  "
250
               class="uk-margin-medium-top uk-margin-medium-bottom">
251
            <a *ngIf="showSwitchSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
252
               [routerLink]="advancedSearchLink" style="z-index:1;"
253
               [queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
254
               [class]="((disableForms || disableRefineForms)?'  uk-disabled uk-link-muted  ':'') +' portal-link   uk-float-right '">Advanced
255
              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="searchUtils.status == errorCodes.LOADING && filters.length == 0;-->
267
<!--                        else elseGridBlock"-->
268
<!--                 class="'uk-animation-fade uk-margin-top  uk-width-1-1" role="alert">-->
269
<!--              <span class="loading-gif  uk-align-center" ></span>-->
270
<!--            </div>-->
271
<!--            <div>-->
272
<!--              <ng-template #elseGridBlock>-->
273
                <div *ngIf="showRefine && !properties.isDashboard
274
                            && (results.length > 0
275
                              || (searchUtils.refineStatus == errorCodes.LOADING && searchUtils.status != errorCodes.LOADING)
276
                              || (!hideFilters &&
277
                                (existingFiltersWithValues > 0 || (selectedRangeFilters + selectedFilters + selectedTypesNum) > 0)
278
                              )
279
                            )"
280
                     class="uk-width-1-4@m search-filters uk-visible@m">
281
                  <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
282
                </div>
283
                <div class="uk-width-expand@m uk-with-1-1@s">
284
                  <div *ngIf="properties.isDashboard"
285
                    class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">
286
                    <div class="uk-flex uk-flex-bottom">
287
                      <span class="uk-margin-small-right">Filters: </span>
288
                      <ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
289
                    </div>
290
                  </div>
291
                  <div *ngIf="customFilter && !customFilter.isHiddenFilter &&
292
                  customFilter.selected == false && customFilter.promptToAddFilter"
293
                       class="uk-alert uk-animation-slide-top-small">
294
                    Do you want to see results only for {{customFilter.valueName}}? <a
295
                    (click)="addCustomFilter();">Click here</a>.
296
                  </div>
297
                  <div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"><a
298
                        class="uk-margin-top   uk-button uk-button-text"
299
                        [href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
300
                        target="_blank">Results in OpenAIRE</a></div>
301
                    <div class="uk-align-center uk-margin-remove-bottom">
302
                      <div
303
                        *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
304
                        class="uk-grid uk-margin-top uk-margin-bottom">
305
                        <div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
306
                          <search-results-per-page [size]="searchUtils.size"
307
                                                   (sizeChange)="sizeChanged($event)"
308
                                                   [isDisabled]="disableForms || disableRefineForms">
309
                          </search-results-per-page>
310
                          <search-sorting *ngIf="sort"
311
                                          [entityType]="entityType" [sortBy]="searchUtils.sortBy"
312
                                          (sortByChange)="sortByChanged($event)"
313
                                          [isDisabled]="disableForms || disableRefineForms">
314
                          </search-sorting>
315
                        </div>
316
                  <!--                  uk-flex uk-flex-middle-->
317
                        <div class="uk-width-auto@m uk-margin-small-bottom">
318
                      <!--                    !showUnknownFilters && (searchUtils.totalResults > 0 || !loadPaging)-->
319
                          <search-download
320
                              *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
321
                              [isDisabled]="disableForms || disableRefineForms"
322
                              [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
323
                          </search-download>
324

    
325
                      <!--<span *ngIf="tableViewLink">
326
                        <a uk-tooltip="title: Table view" routerLinkActive="router-link-active"
327
                           [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' uk-link-text uk-margin-small-left'"
328
                           [routerLink]=tableViewLink >
329
                          <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>
330
                          Table view
331
                        </a>
332
    &lt;!&ndash;                    <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>&ndash;&gt;
333
                      </span>-->
334
                        </div>
335
                      </div>
336
                      <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
337
                                     [(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
338
                                     [(parameterNames)]="parameterNames" [(parameterValues)]="parameterValues"
339
                                     [isDisabled]="disableForms || disableRefineForms">
340
                      </search-paging>
341
                    </div>
342

    
343
                <!--              <search-download *ngIf= "( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"-->
344
                <!--                               class="uk-width-1-1@s uk-hidden@m"-->
345
                <!--                               [isDisabled]="disableForms"-->
346
                <!--                               [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
347
                <!--              </search-download>-->
348
                    <div *ngIf="(searchUtils.page <= pagingLimit) || (searchUtils.totalResults <= searchUtils.size*pagingLimit)" class="uk-margin-large-bottom">
349
                      <search-result *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
350
                                     [results]="results"
351
                                     [status]=searchUtils.status
352
                                     [type]="entityType"
353
                                     [showLoading]="true" [properties]=properties [showImpactFactors]="(customFilter &&
354
                                      customFilter.queryFieldName == 'communityId' && customFilter.valueId == 'elixir-gr')">
355
                      </search-result>
356
                      <deposit-result *ngIf="usedBy == 'deposit'"
357
                                      [results]="results"
358
                                      [status]="searchUtils.status"
359
                                      [type]="entityType"
360
                                      [zenodoInformation]="zenodoInformation"
361
                                      [properties]=properties>
362
                      </deposit-result>
363
                      <portal-search-result
364
                          *ngIf="(entityType == 'community' || entityType == 'stakeholder') && usedBy == 'search'"
365
                          [results]="results"
366
                          [status]="searchUtils.status"
367
                          [type]="entityType"
368
                          [showType]="false"
369
                          [showLoading]="true" [properties]=properties>
370
                      </portal-search-result>
371
                    </div>
372

    
373
                    <div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''"
374
                         *ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
375
                      <p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
376
                    </div>
377

    
378
                    <div class="uk-align-center uk-margin-remove-bottom">
379
                      <!--                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"-->
380
                      <!--                      class="uk-grid uk-margin-top uk-margin-bottom">-->
381
                      <!--                  <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>-->
382
                      <!--                  <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>-->
383
                      <!--                </div>-->
384
                      <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
385
                                     [(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
386
                                     [(parameterNames)]="parameterNames" [(parameterValues)]="parameterValues"
387
                                     [isDisabled]="disableForms || disableRefineForms">
388
                      </search-paging>
389
                    </div>
390

    
391
                    <a *ngIf="properties.showLastIndexInformationLink && lastIndex && searchUtils.status !== errorCodes.LOADING"
392
                       class="last_index_info uk-button-text uk-button"
393
                       [href]="properties.lastIndexInformationLink" target="_blank">
394
                      Last index information
395
                    </a>
396
                  </div>
397
<!--              </ng-template>-->
398
            <!--            <div class="uk-visible@m uk-margin-top uk-width-1-5">-->
399
            <!--              <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>-->
400
            <!--            </div>-->
401
            <!-- <helper *ngIf="searchUtils.totalResults > csvLimit" class="uk-margin-top helper-left-right uk-visible@m" position="right"></helper> -->
402
<!--            </div>-->
403

    
404
            <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
405
                  [texts]="pageContents['bottom']"></helper>
406
        </div>
407
      </div>
408
    </div>
409
  </div>
410
</div>
411
<div *ngIf="properties.isDashboard" id="filters_switcher_toggle" href="#style_switcher" uk-toggle=""   >
412
  <i class="  uk-text-muted">
413
    <svg style="margin-top: 8px;" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"
414
         viewBox="0 0 20 20"
415
         fill="white" width="24px" height="16px">
416
      <g>
417
        <path d="M0,0h24 M24,24H0" fill="none"/>
418
        <path
419
          d="M4.25,5.61C6.57,8.59,10,13,10,13v5c0,1.1,0.9,2,2,2h0c1.1,0,2-0.9,2-2v-5c0,0,3.43-4.41,5.75-7.39 C20.26,4.95,19.79,4,18.95,4H5.04C4.21,4,3.74,4.95,4.25,5.61z"/>
420
        <path d="M0,0h24v24H0V0z" fill="none"/>
421
      </g>
422
    </svg>
423
  </i>
424
</div>
425
<div *ngIf="properties.isDashboard" id="style_switcher"  class=" uk-offcanvas filters_switcher"
426
     uk-offcanvas="flip:true" mode="slide" overlay="" style="z-index:982;" >
427

    
428
  <div class="uk-offcanvas-bar offcanvas-white">
429
    <div class="uk-float-right" >
430
      <button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""></button>
431

    
432
    </div>
433
    <div class="uk-padding uk-padding-remove-top uk-overflow-auto" style="height:calc(100vh - 100px);">
434
      <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
435
    </div>
436
  </div>
437
</div>
438
</div>
439
<modal-alert #removeCustomFilter (alertOutput)="closeCustomFilterModal()"></modal-alert>
(13-13/47)