Project

General

Profile

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="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;: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'?'':' aaa 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">
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
      <!--          TODO add breadcrumb here-->
114
      <div  *ngIf="showBreadcrumb" class=" uk-margin-large-left">Home > Search</div>
115
      <div class="uk-container uk-container-large">
116
        <div>
117

    
118
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
119
          <div  [class]="(showRefine)? 'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s' :'uk-width-1-1'">
120
            <div  *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m  uk-margin-top">
121

    
122
              <a href="#offcanvas-usage" uk-toggle>
123
                <span class="uk-icon uk-margin-small-right uk-margin-small-left">
124
                  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="settings">
125
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
126
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
127
                    <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
128
                    <rect x="1" y="3" width="3" height="1"></rect>
129
                    <rect x="10" y="3" width="8" height="1"></rect>
130
                    <rect x="1" y="9" width="8" height="1"></rect>
131
                    <rect x="15" y="9" width="3" height="1"></rect>
132
                    <rect x="1" y="15" width="3" height="1"></rect>
133
                    <rect x="10" y="15" width="8" height="1"></rect>
134
                  </svg>
135
                </span>
136
                <span>Filters <span *ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters+selectedFilters)}})</span></span>
137
<!--                <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
138
<!--                  <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
139
<!--                  <rect x="6" y="14" width="12" height="1"></rect>-->
140
<!--                  <rect x="2" y="4" width="2" height="1"></rect>-->
141
<!--                  <rect x="2" y="9" width="2" height="1"></rect>-->
142
<!--                  <rect x="2" y="14" width="2" height="1"></rect>-->
143
<!--                </svg>-->
144
              </a>
145

    
146
              <div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
147
                <div class="uk-offcanvas-bar offcanvas-white">
148
                  <button class="uk-offcanvas-close" type="button" uk-close></button>
149
                  <div   class="uk-width-1-1">
150

    
151
<!--                    <span *ngIf="tableViewLink " class="uk-width-expand">-->
152
<!--                      <span *ngIf="tableViewLink">-->
153
<!--                        <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
154
<!--                          <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>-->
155
<!--                        </a>-->
156
<!--                        <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>-->
157
<!--                      </span>-->
158
<!--                    </span>-->
159
<!--                    <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
160
<!--                    'community' && entityType != 'funder') && usedBy == 'search'"-->
161
<!--                                     class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
162
<!--                    </search-download>-->
163

    
164
<!--                    HERE-->
165
<!--                    <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-top uk-margin-small-bottom">-->
166
<!--&lt;!&ndash;                      <div class="uk-grid uk-margin-bottom uk-margin-top">&ndash;&gt;-->
167
<!--&lt;!&ndash;                        <span class="uk-text-bold uk-text-large">Filters</span>&ndash;&gt;-->
168
<!--&lt;!&ndash;                        <a  *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">&ndash;&gt;-->
169
<!--&lt;!&ndash;                          Clear All&ndash;&gt;-->
170
<!--&lt;!&ndash;                        </a>&ndash;&gt;-->
171
<!--&lt;!&ndash;                      </div>&ndash;&gt;-->
172
<!--                      <div class="uk-grid uk-flex uk-flex-bottom">-->
173
<!--                        <h5 class="uk-text-bold">Filters</h5>-->
174
<!--                        <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
175
<!--                          Clear All-->
176
<!--                        </a>-->
177
<!--                      </div>-->
178
<!--                    </div>-->
179

    
180
<!--                    <div   *ngIf="selectedRangeFilters > 0 || selectedFilters>0"  class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>-->
181
<!--                      <ng-container *ngIf="selectedRangeFilters > 0">-->
182
<!--                        <ng-container *ngFor="let filter of rangeFilters " >-->
183
<!--                          <ng-container *ngIf = "filter.selectedFromAndToValues">-->
184
<!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
185
<!--                          <span class="selectedFilterLabel ">-->
186
<!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
187
<!--                              <span class=" clickable" aria-hidden="true">-->
188
<!--                                <span class="uk-icon">-->
189
<!--                                  <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>-->
190
<!--                                </span>-->
191
<!--                              </span>-->
192
<!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
193
<!--                            </a>-->
194
<!--                          </span>-->
195
<!--                        </span>-->
196
<!--                          </ng-container>-->
197
<!--                        </ng-container>-->
198
<!--                      </ng-container>-->
199
<!--                      <ng-container *ngFor="let filter of filters " >-->
200
<!--                        <ng-container *ngIf = "filter.countSelectedValues > 0">-->
201

    
202
<!--                          &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
203
<!--                          &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;-->
204
<!--                          &lt;!&ndash;                        uk-label &ndash;&gt;-->
205
<!--                          <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
206
<!--                                [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
207
<!--                            &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
208
<!--                            <span class="selectedFilterLabel ">-->
209
<!--                              <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
210
<!--                                <span class=" clickable" aria-hidden="true">-->
211
<!--                                  <span class="uk-icon">-->
212
<!--                                    <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>-->
213
<!--                                  </span>-->
214
<!--                                </span>-->
215
<!--                                <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
216
<!--                              </a>-->
217
<!--                            </span>-->
218
<!--                          </span>-->
219
<!--                        </ng-container>-->
220
<!--                      </ng-container>-->
221

    
222

    
223
<!--                    </div>-->
224

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

    
229
<!--                    <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">-->
230
<!--                      <span class="uk-text-meta">No filters available</span>-->
231
<!--                    </div>-->
232
<!--                    <ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">-->
233
<!--                      <ng-container *ngFor="let filter of rangeFilters">-->
234
<!--                        <li>-->
235
<!--                          <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
236
<!--                        </li>-->
237
<!--                      </ng-container>-->
238
<!--                      <ng-container *ngFor="let filter of filters ">-->
239
<!--                        <li *ngIf= "filter.values.length >0">-->
240
<!--                          <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
241
<!--                        </li>-->
242
<!--                      </ng-container>-->
243
<!--                    </ul>-->
244
                    <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
245
<!--                    END OF HERE-->
246
                  </div>
247
                </div>
248
              </div>
249

    
250
            </div>
251
          </div>
252
          <div *ngIf="includeOnlyResultsAndFilter && (resultTypes || quickFilter)"
253
               class="uk-margin-medium-top uk-margin-medium-bottom">
254
            <a *ngIf ="showAdvancedSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
255
               [routerLink]="advancedSearchLink" style="z-index:1;" [queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
256
               [class]="(disableForms?'  uk-disabled uk-link-muted  ':'') +' portal-link   uk-float-right '">Advanced search
257
            </a>
258
            <quick-selections  [resultTypes]="resultTypes"
259
                              (typeChange)="queryChanged()"
260
                              [isDisabled]="disableForms"
261
                              [quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
262
                              [properties]="properties">
263
            </quick-selections>
264

    
265
          </div>
266
          <div class="uk-grid helper-grid uk-padding-small uk-padding-remove-vertical uk-margin-large-bottom" >
267
            <div *ngIf="showRefine" class="uk-width-1-4@m search-filters uk-visible@m">
268
              <!-- top: #container-1; bottom: #true; -->
269
              <!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
270
<!--              <span *ngIf="tableViewLink" class="uk-width-expand">-->
271
<!--                  <span *ngIf="tableViewLink">-->
272
<!--                    <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
273
<!--                      <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>-->
274
<!--                    </a>-->
275
<!--                    <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>-->
276
<!--                  </span>-->
277
<!--                </span>-->
278
<!--              <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
279
<!--                'community' && entityType != 'funder') && usedBy == 'search'"-->
280
<!--                               class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
281
<!--              </search-download>-->
282

    
283
<!--              HERE-->
284
<!--              <div  *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">-->
285
<!--                <div  class="uk-grid uk-flex uk-flex-bottom">-->
286
<!--                  <h5 class="uk-text-bold">Filters</h5>-->
287
<!--                  <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
288
<!--                    Clear All-->
289
<!--                  </a>-->
290
<!--                </div>-->
291
<!--                &lt;!&ndash;                uk-grid uk-grid-small" uk-grid&ndash;&gt;-->
292
<!--                &lt;!&ndash;                uk-margin-left&ndash;&gt;-->
293
<!--                <div class="uk-grid uk-grid-small uk-text-small" uk-grid>-->
294
<!--                  <ng-container *ngIf="selectedRangeFilters > 0">-->
295
<!--                    <ng-container *ngFor="let filter of rangeFilters " >-->
296
<!--                      <ng-container *ngIf = "filter.selectedFromAndToValues">-->
297
<!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
298
<!--                          <span class="selectedFilterLabel ">-->
299
<!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
300
<!--                              <span class=" clickable" aria-hidden="true">-->
301
<!--                                <span class="uk-icon">-->
302
<!--                                  <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>-->
303
<!--                                </span>-->
304
<!--                              </span>-->
305
<!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
306
<!--                            </a>-->
307
<!--                          </span>-->
308
<!--                        </span>-->
309
<!--                      </ng-container>-->
310
<!--                    </ng-container>-->
311
<!--                  </ng-container>-->
312
<!--                  <ng-container *ngFor="let filter of filters " >-->
313
<!--                    <ng-container *ngIf = "filter.countSelectedValues > 0">-->
314

    
315
<!--                      &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
316
<!--                      &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;-->
317
<!--                      &lt;!&ndash;                        uk-label &ndash;&gt;-->
318
<!--                      <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
319
<!--                            [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
320
<!--                        &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
321
<!--                        <span class="selectedFilterLabel ">-->
322
<!--                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
323
<!--                            <span class=" clickable" aria-hidden="true">-->
324
<!--                              <span class="uk-icon">-->
325
<!--                                <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>-->
326
<!--                              </span>-->
327
<!--                            </span>-->
328
<!--                            <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
329
<!--                          </a>-->
330
<!--                        </span>-->
331
<!--                      </span>-->
332
<!--                    </ng-container>-->
333
<!--                  </ng-container>-->
334
<!--                </div>-->
335

    
336
<!--                &lt;!&ndash;                <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">&ndash;&gt;-->
337
<!--                &lt;!&ndash;                  <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>&ndash;&gt;-->
338
<!--                &lt;!&ndash;                </div>&ndash;&gt;-->
339
<!--              </div>-->
340
<!--              <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">-->
341
<!--                <span class="uk-text-meta">No filters available</span>-->
342
<!--              </div>-->
343
<!--              <ul *ngIf="!showUnknownFilters"-->
344
<!--                  [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">-->
345
<!--                <ng-container *ngFor="let filter of rangeFilters">-->
346
<!--                  <li>-->
347
<!--                    <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
348
<!--                  </li>-->
349
<!--                </ng-container>-->
350
<!--                <ng-container *ngFor="let filter of filters ">-->
351
<!--                  <li *ngIf= "filter.values.length >0">-->
352
<!--                    <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
353
<!--                  </li>-->
354
<!--                </ng-container>-->
355
<!--              </ul>-->
356
              <!--context: {  dynamic_content: getDynamicContent(share_research_results_type) }">-->
357
              <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
358
<!--              END OF HERE-->
359

    
360
            </div>
361
            <div class="uk-width-expand@m uk-with-1-1@s">
362
              <div *ngIf="openaireLink"> <a 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
&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;
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>
(19-19/55)