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="selectedTypesNum > 0 && resultTypes">
12
      <ng-container *ngFor="let type of resultTypeOptions; let i = index;  let end = last; ">
13
        <ng-container *ngIf="resultTypes[type.id] == true">
14
         <span class="uk-grid-margin" [title]="'Remove '+ type.name" (click)="removeResultType(type.id) ">
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"
20
                         ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6" d="M16,16 L4,4"></path><path
21
                      fill="none" stroke="#000" stroke-width="1.6" d="M16,4 L4,16"></path></svg>
22
                  </span>
23
                </span>
24
                <span class="uk-margin-small-left">{{type.name}}</span>
25
              </a>
26
            </span>
27
          </span>
28
        </ng-container>
29
      </ng-container>
30
    </ng-container>
31
    <ng-container *ngIf="selectedRangeFilters > 0">
32
      <ng-container *ngFor="let filter of rangeFilters ">
33
        <ng-container *ngIf="filter.selectedFromAndToValues">
34
                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click)="removeRangeFilter(filter) "  class="uk-grid-margin" >
35
                          <span class="selectedFilterLabel ">
36
                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">
37
                              <span class=" clickable" aria-hidden="true">
38
                                <span class="uk-icon">
39
                                  <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
40
                                       icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6"
41
                                                                      d="M16,16 L4,4"></path><path fill="none"
42
                                                                                                   stroke="#000"
43
                                                                                                   stroke-width="1.6"
44
                                                                                                   d="M16,4 L4,16"></path></svg>
45
                                </span>
46
                              </span>
47
                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
48
                            </a>
49
                          </span>
50
                        </span>
51
        </ng-container>
52
      </ng-container>
53
    </ng-container>
54
    <ng-container *ngFor="let filter of filters ">
55
      <ng-container *ngIf="filter.countSelectedValues > 0">
56
        <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "
57
              [title]="'Remove '+value.name" (click)="removeFilter(value, filter) "  class="uk-grid-margin" >
58
                        <!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
59
                        <span class="selectedFilterLabel ">
60
                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">
61
                            <span class=" clickable" aria-hidden="true">
62
                              <span class="uk-icon">
63
                                <svg width="16" height="16" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
64
                                     icon="close" ratio="0.8"><path fill="none" stroke="#000" stroke-width="1.6"
65
                                                                    d="M16,16 L4,4"></path><path fill="none"
66
                                                                                                 stroke="#000"
67
                                                                                                 stroke-width="1.6"
68
                                                                                                 d="M16,4 L4,16"></path></svg>
69
                              </span>
70
                            </span>
71
                            <span class="uk-margin-small-left"
72
                                  [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
73
                          </a>
74
                        </span>
75
                      </span>
76
      </ng-container>
77
    </ng-container>
78
  </div>
79
</ng-template>
80
<ng-template #filters_column>
81
  <div class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">
82
    <div class="uk-grid uk-flex uk-flex-bottom">
83
      <h5 class="uk-text-bold">Filters</h5>
84
      <a *ngIf="(selectedRangeFilters+selectedFilters + selectedTypesNum)>1" (click)="clearFilters()"
85
         [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
86
        Clear All
87
      </a>
88
    </div>
89
    <div *ngIf="selectedRangeFilters+selectedFilters + selectedTypesNum  > 0" class="uk-margin-small-top">
90
      <ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
91
    </div>
92
  </div>
93
  <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">
94
    <span class="uk-text-meta">No filters available</span>
95
  </div>
96
  <ul *ngIf="!showUnknownFilters"
97
      [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">
98
    <ng-container *ngIf="filters.length > 0 && filters[0].values.length >0 && filters[0].filterId ==
99
    'resultbestaccessright'">
100
      <li>
101
        <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
102
                       [isDisabled]="disableForms" [filter]="filters[0]" [showResultCount]=showResultCount
103
                       (onFilterChange)="filterChanged($event)"></search-filter>
104
      </li>
105
    </ng-container>
106
    <li *ngIf="resultTypes && (filters.length > 0)">
107
    <quick-selections  [resultTypes]="resultTypes" (typeChange)="queryChanged()"
108
                      [isDisabled]="disableForms"
109
                      [quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
110
                      [properties]="properties" [vertical]="true" [delayTime]="0">
111
    </quick-selections>
112
    </li>
113
    <ng-container *ngFor="let filter of rangeFilters">
114
      <li>
115
        <range-filter [isDisabled]="disableForms" [filter]="filter"
116
                      (onFilterChange)="filterChanged($event)"></range-filter>
117
      </li>
118
    </ng-container>
119
    <ng-container *ngFor="let filter of filters ">
120
      <li *ngIf="filter.values.length >0 && filter.filterId != 'resultbestaccessright'">
121
        <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
122
                       [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount
123
                       (onFilterChange)="filterChanged($event)"></search-filter>
124
      </li>
125
    </ng-container>
126
  </ul>
127
</ng-template>
128

    
129

    
130
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
131
    ' image-front-topbar uk-section-default uk-position-relative ' :
132
    (' uk-section uk-padding-remove-bottom  uk-padding-remove-top ' + (usedBy
133
    == 'deposit' ? ' uk-padding-remove-top ' : ' '))"
134
     uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}"
135
     tm-header-transparent="light">
136
  <div style="box-sizing: border-box;  "
137
       [class]="' uk-background-norepeat  uk-background-bottom-center   uk-padding-remove-bottom  uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
138
              + (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') && !dashboard ?
139
              ' searchFormMinHeight uk-padding-remove-bottom uk-section' : '')
140
              +(simpleView?'':' advancedSearchFormBackground ')">
141

    
142
    <div
143
        [class]="(usedBy!='deposit' && (!customFilter || customFilter.queryFieldName != 'communityId'))?'uk-position-cover':''"></div>
144
    <div class="uk-width-1-1">
145
      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"
146
                   addClass=" uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top"
147
                   [breadcrumbs]="breadcrumbs"></breadcrumbs>
148
      <div class="uk-position-relative">
149
        <div [class]="'uk-container '+(customFilter && customFilter.queryFieldName ==
150
           'communityId'?'  uk-margin-large-bottom ':'uk-margin-large-top')+
151
           (entityType === 'community' ||entityType === 'stakeholder'?' uk-position-relative':'')" id="searchForm">
152
          <advanced-search-form
153
              [entityType]="entityType"
154
              [fieldIds]="fieldIds"
155
              [fieldIdsMap]="fieldIdsMap"
156
              [selectedFields]="selectedFields"
157
              (queryChange)="queryChanged()"
158
              [isDisabled]="disableForms"
159
              [simpleSearchLink]="simpleSearchLink"
160
              [advancedSearchLink]="advancedSearchLink"
161
              [advancedSearchLinkParameters]
162
                  ="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
163
              [pageTitle]=pageTitle [simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText"
164
              [resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
165
              [showAdvancedSearchLink]="showAdvancedSearchLink" [customFilter]="customFilter"
166
          >
167
          </advanced-search-form>
168
          <div *ngIf="entityType === 'community' || entityType === 'stakeholder' " class="uk-position-center-right uk-visible@m">
169
            <img src="assets/common-assets/common/search.png" class="uk-align-center" width="141" height="171">
170
          </div>
171
        </div>
172
      </div>
173
    </div>
174
  </div>
175
</div>
176
<schema2jsonld *ngIf="!includeOnlyResultsAndFilter && url" [URL]="url" type="search" [name]=pageTitle
177
               [searchAction]=false></schema2jsonld>
178

    
179

    
180
<div id="tm-main" class="   tm-middle">
181
  <div uk-grid>
182
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
183
      <!--      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"-->
184
      <!--                   addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>-->
185
      <div class="uk-container uk-container-large">
186
        <div>
187
          <breadcrumbs *ngIf="showBreadcrumb && entityType=='community'"
188
                       addClass=" " [breadcrumbs]="breadcrumbs"></breadcrumbs>
189
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
190
                  [texts]="pageContents['top']"></helper>
191
          <div [class]="(showRefine && !this.properties.isDashboard)?
192
          'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s'
193
          :'uk-width-1-1'">
194
            <div *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m  uk-margin-top">
195

    
196
              <a href="#offcanvas-usage" uk-toggle>
197
                <span class="uk-icon uk-margin-small-right uk-margin-small-left">
198
                  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
199
                       data-svg="settings">
200
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
201
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
202
                    <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
203
                    <rect x="1" y="3" width="3" height="1"></rect>
204
                    <rect x="10" y="3" width="8" height="1"></rect>
205
                    <rect x="1" y="9" width="8" height="1"></rect>
206
                    <rect x="15" y="9" width="3" height="1"></rect>
207
                    <rect x="1" y="15" width="3" height="1"></rect>
208
                    <rect x="10" y="15" width="8" height="1"></rect>
209
                  </svg>
210
                </span>
211
                <span>Filters <span
212
                    *ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters + selectedFilters)}}
213
                  )</span></span>
214
                <!--                <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
215
                <!--                  <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
216
                <!--                  <rect x="6" y="14" width="12" height="1"></rect>-->
217
                <!--                  <rect x="2" y="4" width="2" height="1"></rect>-->
218
                <!--                  <rect x="2" y="9" width="2" height="1"></rect>-->
219
                <!--                  <rect x="2" y="14" width="2" height="1"></rect>-->
220
                <!--                </svg>-->
221
              </a>
222

    
223
              <div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
224
                <div class="uk-offcanvas-bar offcanvas-white">
225
                  <button class="uk-offcanvas-close" type="button" uk-close></button>
226
                  <div class="uk-width-1-1">
227

    
228
                    <!--                    <span *ngIf="tableViewLink " class="uk-width-expand">-->
229
                    <!--                      <span *ngIf="tableViewLink">-->
230
                    <!--                        <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
231
                    <!--                          <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>-->
232
                    <!--                        </a>-->
233
                    <!--                        <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>-->
234
                    <!--                      </span>-->
235
                    <!--                    </span>-->
236
                    <!--                    <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
237
                    <!--                    'community' && entityType != 'stakeholder') && usedBy == 'search'"-->
238
                    <!--                                     class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
239
                    <!--                    </search-download>-->
240

    
241
                    <!--                    HERE-->
242
                    <!--                    <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-top uk-margin-small-bottom">-->
243
                    <!--&lt;!&ndash;                      <div class="uk-grid uk-margin-bottom uk-margin-top">&ndash;&gt;-->
244
                    <!--&lt;!&ndash;                        <span class="uk-text-bold uk-text-large">Filters</span>&ndash;&gt;-->
245
                    <!--&lt;!&ndash;                        <a  *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">&ndash;&gt;-->
246
                    <!--&lt;!&ndash;                          Clear All&ndash;&gt;-->
247
                    <!--&lt;!&ndash;                        </a>&ndash;&gt;-->
248
                    <!--&lt;!&ndash;                      </div>&ndash;&gt;-->
249
                    <!--                      <div class="uk-grid uk-flex uk-flex-bottom">-->
250
                    <!--                        <h5 class="uk-text-bold">Filters</h5>-->
251
                    <!--                        <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
252
                    <!--                          Clear All-->
253
                    <!--                        </a>-->
254
                    <!--                      </div>-->
255
                    <!--                    </div>-->
256

    
257
                    <!--                    <div   *ngIf="selectedRangeFilters > 0 || selectedFilters>0"  class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>-->
258
                    <!--                      <ng-container *ngIf="selectedRangeFilters > 0">-->
259
                    <!--                        <ng-container *ngFor="let filter of rangeFilters " >-->
260
                    <!--                          <ng-container *ngIf = "filter.selectedFromAndToValues">-->
261
                    <!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
262
                    <!--                          <span class="selectedFilterLabel ">-->
263
                    <!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
264
                    <!--                              <span class=" clickable" aria-hidden="true">-->
265
                    <!--                                <span class="uk-icon">-->
266
                    <!--                                  <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>-->
267
                    <!--                                </span>-->
268
                    <!--                              </span>-->
269
                    <!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
270
                    <!--                            </a>-->
271
                    <!--                          </span>-->
272
                    <!--                        </span>-->
273
                    <!--                          </ng-container>-->
274
                    <!--                        </ng-container>-->
275
                    <!--                      </ng-container>-->
276
                    <!--                      <ng-container *ngFor="let filter of filters " >-->
277
                    <!--                        <ng-container *ngIf = "filter.countSelectedValues > 0">-->
278

    
279
                    <!--                          &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
280
                    <!--                          &lt;!&ndash;                      uk-margin-small-top uk-margin-small-right&ndash;&gt; &lt;!&ndash; if no grid on the div above, add it &ndash;&gt;-->
281
                    <!--                          &lt;!&ndash;                        uk-label &ndash;&gt;-->
282
                    <!--                          <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
283
                    <!--                                [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
284
                    <!--                            &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
285
                    <!--                            <span class="selectedFilterLabel ">-->
286
                    <!--                              <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
287
                    <!--                                <span class=" clickable" aria-hidden="true">-->
288
                    <!--                                  <span class="uk-icon">-->
289
                    <!--                                    <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>-->
290
                    <!--                                  </span>-->
291
                    <!--                                </span>-->
292
                    <!--                                <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
293
                    <!--                              </a>-->
294
                    <!--                            </span>-->
295
                    <!--                          </span>-->
296
                    <!--                        </ng-container>-->
297
                    <!--                      </ng-container>-->
298

    
299

    
300
                    <!--                    </div>-->
301

    
302
                    <!--&lt;!&ndash;                    <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">&ndash;&gt;-->
303
                    <!--&lt;!&ndash;                      <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>&ndash;&gt;-->
304
                    <!--&lt;!&ndash;                    </div>&ndash;&gt;-->
305

    
306
                    <!--                    <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">-->
307
                    <!--                      <span class="uk-text-meta">No filters available</span>-->
308
                    <!--                    </div>-->
309
                    <!--                    <ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">-->
310
                    <!--                      <ng-container *ngFor="let filter of rangeFilters">-->
311
                    <!--                        <li>-->
312
                    <!--                          <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
313
                    <!--                        </li>-->
314
                    <!--                      </ng-container>-->
315
                    <!--                      <ng-container *ngFor="let filter of filters ">-->
316
                    <!--                        <li *ngIf= "filter.values.length >0">-->
317
                    <!--                          <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
318
                    <!--                        </li>-->
319
                    <!--                      </ng-container>-->
320
                    <!--                    </ul>-->
321
                    <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
322
                    <!--                    END OF HERE-->
323
                  </div>
324
                </div>
325
              </div>
326

    
327
            </div>
328
          </div>
329
          <div *ngIf="includeOnlyResultsAndFilter  "
330
               class="uk-margin-medium-top uk-margin-medium-bottom">
331
            <a *ngIf="showAdvancedSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
332
               [routerLink]="advancedSearchLink" style="z-index:1;"
333
               [queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
334
               [class]="(disableForms?'  uk-disabled uk-link-muted  ':'') +' portal-link   uk-float-right '">Advanced
335
              search
336
            </a>
337
            <!--  <quick-selections  [resultTypes]="resultTypes"
338
                                (typeChange)="queryChanged()"
339
                                [isDisabled]="disableForms"
340
                                [quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
341
                                [properties]="properties">
342
              </quick-selections>-->
343

    
344
          </div>
345
          <div class="uk-grid helper-grid uk-padding-small uk-padding-remove-vertical uk-margin-large-bottom">
346
            <div *ngIf="showRefine && !properties.isDashboard" class="uk-width-1-4@m search-filters uk-visible@m">
347
              <!-- top: #container-1; bottom: #true; -->
348
              <!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
349
              <!--              <span *ngIf="tableViewLink" class="uk-width-expand">-->
350
              <!--                  <span *ngIf="tableViewLink">-->
351
              <!--                    <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
352
              <!--                      <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>-->
353
              <!--                    </a>-->
354
              <!--                    <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>-->
355
              <!--                  </span>-->
356
              <!--                </span>-->
357
              <!--              <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
358
              <!--                'community' && entityType != 'stakeholder') && usedBy == 'search'"-->
359
              <!--                               class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
360
              <!--              </search-download>-->
361

    
362
              <!--              HERE-->
363
              <!--              <div  *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">-->
364
              <!--                <div  class="uk-grid uk-flex uk-flex-bottom">-->
365
              <!--                  <h5 class="uk-text-bold">Filters</h5>-->
366
              <!--                  <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
367
              <!--                    Clear All-->
368
              <!--                  </a>-->
369
              <!--                </div>-->
370
              <!--                &lt;!&ndash;                uk-grid uk-grid-small" uk-grid&ndash;&gt;-->
371
              <!--                &lt;!&ndash;                uk-margin-left&ndash;&gt;-->
372
              <!--                <div class="uk-grid uk-grid-small uk-text-small" uk-grid>-->
373
              <!--                  <ng-container *ngIf="selectedRangeFilters > 0">-->
374
              <!--                    <ng-container *ngFor="let filter of rangeFilters " >-->
375
              <!--                      <ng-container *ngIf = "filter.selectedFromAndToValues">-->
376
              <!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
377
              <!--                          <span class="selectedFilterLabel ">-->
378
              <!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
379
              <!--                              <span class=" clickable" aria-hidden="true">-->
380
              <!--                                <span class="uk-icon">-->
381
              <!--                                  <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>-->
382
              <!--                                </span>-->
383
              <!--                              </span>-->
384
              <!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
385
              <!--                            </a>-->
386
              <!--                          </span>-->
387
              <!--                        </span>-->
388
              <!--                      </ng-container>-->
389
              <!--                    </ng-container>-->
390
              <!--                  </ng-container>-->
391
              <!--                  <ng-container *ngFor="let filter of filters " >-->
392
              <!--                    <ng-container *ngIf = "filter.countSelectedValues > 0">-->
393

    
394
              <!--                      &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
395
              <!--                      &lt;!&ndash;                      uk-margin-small-top uk-margin-small-right&ndash;&gt; &lt;!&ndash; if no grid on the div above, add it &ndash;&gt;-->
396
              <!--                      &lt;!&ndash;                        uk-label &ndash;&gt;-->
397
              <!--                      <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
398
              <!--                            [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
399
              <!--                        &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
400
              <!--                        <span class="selectedFilterLabel ">-->
401
              <!--                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
402
              <!--                            <span class=" clickable" aria-hidden="true">-->
403
              <!--                              <span class="uk-icon">-->
404
              <!--                                <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>-->
405
              <!--                              </span>-->
406
              <!--                            </span>-->
407
              <!--                            <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
408
              <!--                          </a>-->
409
              <!--                        </span>-->
410
              <!--                      </span>-->
411
              <!--                    </ng-container>-->
412
              <!--                  </ng-container>-->
413
              <!--                </div>-->
414

    
415
              <!--                &lt;!&ndash;                <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">&ndash;&gt;-->
416
              <!--                &lt;!&ndash;                  <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>&ndash;&gt;-->
417
              <!--                &lt;!&ndash;                </div>&ndash;&gt;-->
418
              <!--              </div>-->
419
              <!--              <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">-->
420
              <!--                <span class="uk-text-meta">No filters available</span>-->
421
              <!--              </div>-->
422
              <!--              <ul *ngIf="!showUnknownFilters"-->
423
              <!--                  [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">-->
424
              <!--                <ng-container *ngFor="let filter of rangeFilters">-->
425
              <!--                  <li>-->
426
              <!--                    <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
427
              <!--                  </li>-->
428
              <!--                </ng-container>-->
429
              <!--                <ng-container *ngFor="let filter of filters ">-->
430
              <!--                  <li *ngIf= "filter.values.length >0">-->
431
              <!--                    <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
432
              <!--                  </li>-->
433
              <!--                </ng-container>-->
434
              <!--              </ul>-->
435
              <!--context: {  dynamic_content: getDynamicContent(share_research_results_type) }">-->
436
              <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
437
              <!--              END OF HERE-->
438

    
439
            </div>
440
            <div class="uk-width-expand@m uk-with-1-1@s">
441
              <div *ngIf="properties.isDashboard && selectedRangeFilters+selectedFilters + selectedTypesNum  > 0"
442
                class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">
443
                <div class="uk-flex uk-flex-bottom">
444
                  <span class="uk-margin-small-right">Filters: </span>
445
                  <ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
446
                </div>
447
              </div>
448
              <div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"><a
449
                  class="uk-margin-top   uk-button uk-button-text"
450
                  [href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
451
                  target="_blank">Results in OpenAIRE</a></div>
452
              <div class="uk-align-center uk-margin-remove-bottom">
453
                <div
454
                    *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
455
                    class="uk-grid uk-margin-top uk-margin-bottom">
456
                  <div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
457
                    <search-results-per-page [(size)]="searchUtils.size"
458
                                             (sizeChange)="sizeChanged($event)"></search-results-per-page>
459
                    <search-sorting *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy"
460
                                    (sortByChange)="sortByChanged($event)"></search-sorting>
461
                  </div>
462
                  <!--                  uk-flex uk-flex-middle-->
463
                  <div class="uk-width-auto@m uk-margin-small-bottom">
464
                    <!--                    !showUnknownFilters && (searchUtils.totalResults > 0 || !loadPaging)-->
465
                    <search-download
466
                        *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
467
                        [isDisabled]="disableForms"
468
                        [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
469
                    </search-download>
470

    
471
                    <!--<span *ngIf="tableViewLink">
472
                      <a uk-tooltip="title: Table view" routerLinkActive="router-link-active"
473
                         [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' uk-link-text uk-margin-small-left'"
474
                         [routerLink]=tableViewLink >
475
                        <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>
476
                        Table view
477
                      </a>
478
  &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;
479
                    </span>-->
480
                  </div>
481
                </div>
482
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
483
                               [(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
484
                               [(parameterNames)]="parameterNames"
485
                               [(parameterValues)]="parameterValues"></search-paging>
486
              </div>
487

    
488
              <!--              <search-download *ngIf= "( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"-->
489
              <!--                               class="uk-width-1-1@s uk-hidden@m"-->
490
              <!--                               [isDisabled]="disableForms"-->
491
              <!--                               [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
492
              <!--              </search-download>-->
493

    
494
              <div *ngIf="(searchUtils.page <= pagingLimit)" class="uk-margin-large-bottom">
495
                <search-result *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
496
                               [results]="results"
497
                               [status]=searchUtils.status
498
                               [type]="entityType"
499
                               [showLoading]="true" [properties]=properties [showImpactFactors]="(customFilter &&
500
                                customFilter.queryFieldName == 'communityId' && customFilter.valueId == 'elixir-gr')">
501
                </search-result>
502
                <deposit-result *ngIf="usedBy == 'deposit'"
503
                                [results]="results"
504
                                [status]="searchUtils.status"
505
                                [type]="entityType"
506
                                [zenodoInformation]="zenodoInformation"
507
                                [properties]=properties>
508
                </deposit-result>
509
                <portal-search-result
510
                    *ngIf="(entityType == 'community' || entityType == 'stakeholder') && usedBy == 'search'"
511
                    [results]="results"
512
                    [status]="searchUtils.status"
513
                    [type]="entityType"
514
                    [showType]="false"
515
                    [showLoading]="true" [properties]=properties>
516
                </portal-search-result>
517
              </div>
518

    
519
              <div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''"
520
                   *ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
521
                <p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
522
              </div>
523

    
524
              <div class="uk-align-center uk-margin-remove-bottom">
525
                <!--                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"-->
526
                <!--                      class="uk-grid uk-margin-top uk-margin-bottom">-->
527
                <!--                  <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>-->
528
                <!--                  <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>-->
529
                <!--                </div>-->
530
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
531
                               [(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
532
                               [(parameterNames)]="parameterNames"
533
                               [(parameterValues)]="parameterValues"></search-paging>
534
              </div>
535

    
536
              <a *ngIf="properties.showLastIndexInformationLink && lastIndex && searchUtils.status !== errorCodes.LOADING"
537
                 class="last_index_info uk-button-text uk-button"
538
                 [href]="properties.lastIndexInformationLink" target="_blank">
539
                Last index information
540
              </a>
541
            </div>
542
            <!--            <div class="uk-visible@m uk-margin-top uk-width-1-5">-->
543
            <!--              <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>-->
544
            <!--            </div>-->
545
            <!-- <helper *ngIf="searchUtils.totalResults > csvLimit" class="uk-margin-top helper-left-right uk-visible@m" position="right"></helper> -->
546
          </div>
547

    
548
          <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
549
                  [texts]="pageContents['bottom']"></helper>
550
        </div>
551
      </div>
552
    </div>
553
  </div>
554
</div>
555
<div *ngIf="properties.isDashboard" id="style_switcher" class="filters_switcher"
556
     [class.switcher_active]="filterToggle">
557
  <div id="style_switcher_toggle" (click)="filterToggle= !filterToggle">
558
    <i class="  uk-text-muted">
559
      <svg style="margin-top: 8px;" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"
560
           viewBox="0 0 24 24"
561
           fill="white" width="24px" height="24px">
562
        <g>
563
          <path d="M0,0h24 M24,24H0" fill="none"/>
564
          <path
565
            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"/>
566
          <path d="M0,0h24v24H0V0z" fill="none"/>
567
        </g>
568
      </svg>
569
    </i>
570
  </div>
571
  <div class="uk-padding-small uk-padding-remove-top">
572
    <div class="uk-text-right" ><a (click)="filterToggle=!filterToggle"> <i
573
      class=" material-icons md-icon"></i>
574
    </a></div>
575
    <div class="uk-padding-small uk-padding-remove-top uk-overflow-auto" style="height:calc(100vh - 100px);">
576
      <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
577
    </div>
578
  </div>
579
</div>
(16-16/55)