Project

General

Profile

1
<ng-template #filters_column>
2
<!--             let-dynamic_content="dynamic_content">-->
3
<div  *ngIf="selectedRangeFilters+selectedFilters + selectedTypesNum  > 0"
4
      class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">
5
  <div  class="uk-grid uk-flex uk-flex-bottom">
6
    <h5 class="uk-text-bold">Filters</h5>
7
    <a  *ngIf="(selectedRangeFilters+selectedFilters + selectedTypesNum)>1" (click)="clearFilters()"
8
        [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">
9
      Clear All
10
    </a>
11
  </div>
12
  <div class="uk-grid uk-grid-small uk-text-small" uk-grid>
13
    <ng-container *ngIf="selectedTypesNum > 0 && resultTypes">
14
      <ng-container *ngFor="let type of resultTypeOptions; let i = index;  let end = last; ">
15
        <ng-container *ngIf = "resultTypes[type.id] == true">
16
         <span [title]="'Remove '+ type.name" (click)="removeResultType(type.id) " >
17
            <span class="selectedFilterLabel ">
18
              <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">
19
                <span class=" clickable" aria-hidden="true">
20
                  <span class="uk-icon">
21
                    <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>
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) " >
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" 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>
40
                                </span>
41
                              </span>
42
                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
43
                            </a>
44
                          </span>
45
                        </span>
46
        </ng-container>
47
      </ng-container>
48
    </ng-container>
49
    <ng-container *ngFor="let filter of filters " >
50
      <ng-container *ngIf = "filter.countSelectedValues > 0">
51
        <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "
52
              [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
53
                        <!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
54
                        <span class="selectedFilterLabel ">
55
                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">
56
                            <span class=" clickable" aria-hidden="true">
57
                              <span class="uk-icon">
58
                                <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>
59
                              </span>
60
                            </span>
61
                            <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
62
                          </a>
63
                        </span>
64
                      </span>
65
      </ng-container>
66
    </ng-container>
67
  </div>
68
</div>
69
<div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">
70
  <span class="uk-text-meta">No filters available</span>
71
</div>
72
<ul *ngIf="!showUnknownFilters"
73
    [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">
74
  <quick-selections [resultTypes]="resultTypes" (typeChange)="queryChanged()" [isDisabled]="disableForms"
75
                    [quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
76
                    [properties]="properties" [vertical]="true" [delayTime]="0" >
77
  </quick-selections>
78
  <ng-container *ngFor="let filter of rangeFilters">
79
    <li>
80
      <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>
81
    </li>
82
  </ng-container>
83
  <ng-container *ngFor="let filter of filters ">
84
    <li *ngIf= "filter.values.length >0">
85
      <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>
86
    </li>
87
  </ng-container>
88
</ul>
89
</ng-template>
90

    
91

    
92
<div *ngIf="!includeOnlyResultsAndFilter"  [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
93
    ' image-front-topbar uk-section-default uk-position-relative ' :
94
    (' uk-section uk-padding-remove-bottom  uk-padding-remove-top ' + (usedBy
95
    == 'deposit' ? ' uk-padding-remove-top ' : ' '))"
96
      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">
97
  <div  style="box-sizing: border-box;  "
98
        [class]="' uk-background-norepeat  uk-background-bottom-center   uk-padding-remove-bottom  uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
99
              + (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
100
              ' searchFormMinHeight uk-padding-remove-bottom uk-section ' : '')
101
              +(simpleView?'':' advancedSearchFormBackground ')">
102

    
103
    <div [class]="(usedBy!='deposit' && (!customFilter || customFilter.queryFieldName != 'communityId'))?'uk-position-cover':''" ></div>
104
    <div class="uk-width-1-1">
105
      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"
106
                   addClass=" uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>
107
        <div class="uk-position-relative">
108
           <div   [class]="'uk-container '+(customFilter && customFilter.queryFieldName ==
109
           'communityId'?'  uk-margin-large-bottom ':'uk-margin-large-top')+
110
           (entityType === 'community' ||entityType === 'funder'?' uk-position-relative':'')" id="searchForm">
111
                <advanced-search-form
112
                   [entityType] = "entityType"
113
                   [fieldIds]="fieldIds"
114
                   [fieldIdsMap]="fieldIdsMap"
115
                   [selectedFields]="selectedFields"
116
                   (queryChange)="queryChanged()"
117
                   [isDisabled]="disableForms"
118
                   [simpleSearchLink]="simpleSearchLink"
119
                   [advancedSearchLink]="advancedSearchLink"
120
                   [advancedSearchLinkParameters]
121
                     ="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
122
                   [pageTitle]=pageTitle [simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText"
123
                   [resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
124
                   [showAdvancedSearchLink]="showAdvancedSearchLink" [customFilter]="customFilter"
125
                   >
126
               </advanced-search-form>
127
             <div *ngIf="entityType === 'community' ||entityType === 'funder' " class="uk-position-center-right">
128
               <img src="assets/connect-assets/banner/search.png" class="uk-align-center" width="141" height="171">
129
             </div>
130
           </div>
131
        </div>
132
     </div>
133
  </div>
134
</div>
135
<schema2jsonld *ngIf="!includeOnlyResultsAndFilter && url"  [URL]="url" type="search" [name]=pageTitle
136
               [searchAction]=false></schema2jsonld>
137

    
138

    
139

    
140
<div id="tm-main" class="   tm-middle">
141
  <div uk-grid>
142
    <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-1@l uk-row-first ">
143
<!--      <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"-->
144
<!--                   addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>-->
145
      <div class="uk-container uk-container-large">
146
        <div>
147
          <breadcrumbs *ngIf="showBreadcrumb && entityType=='community'"
148
                       addClass=" " [breadcrumbs]="breadcrumbs"></breadcrumbs>
149
          <helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
150
          <div  [class]="(showRefine)? 'uk-width-4-5@m  uk-width-4-5@l  uk-width-1-1@s' :'uk-width-1-1'">
151
            <div  *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m  uk-margin-top">
152

    
153
              <a href="#offcanvas-usage" uk-toggle>
154
                <span class="uk-icon uk-margin-small-right uk-margin-small-left">
155
                  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="settings">
156
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
157
                    <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
158
                    <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
159
                    <rect x="1" y="3" width="3" height="1"></rect>
160
                    <rect x="10" y="3" width="8" height="1"></rect>
161
                    <rect x="1" y="9" width="8" height="1"></rect>
162
                    <rect x="15" y="9" width="3" height="1"></rect>
163
                    <rect x="1" y="15" width="3" height="1"></rect>
164
                    <rect x="10" y="15" width="8" height="1"></rect>
165
                  </svg>
166
                </span>
167
                <span>Filters <span *ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters+selectedFilters)}})</span></span>
168
<!--                <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
169
<!--                  <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
170
<!--                  <rect x="6" y="14" width="12" height="1"></rect>-->
171
<!--                  <rect x="2" y="4" width="2" height="1"></rect>-->
172
<!--                  <rect x="2" y="9" width="2" height="1"></rect>-->
173
<!--                  <rect x="2" y="14" width="2" height="1"></rect>-->
174
<!--                </svg>-->
175
              </a>
176

    
177
              <div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
178
                <div class="uk-offcanvas-bar offcanvas-white">
179
                  <button class="uk-offcanvas-close" type="button" uk-close></button>
180
                  <div   class="uk-width-1-1">
181

    
182
<!--                    <span *ngIf="tableViewLink " class="uk-width-expand">-->
183
<!--                      <span *ngIf="tableViewLink">-->
184
<!--                        <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
185
<!--                          <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>-->
186
<!--                        </a>-->
187
<!--                        <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>-->
188
<!--                      </span>-->
189
<!--                    </span>-->
190
<!--                    <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
191
<!--                    'community' && entityType != 'funder') && usedBy == 'search'"-->
192
<!--                                     class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
193
<!--                    </search-download>-->
194

    
195
<!--                    HERE-->
196
<!--                    <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-top uk-margin-small-bottom">-->
197
<!--&lt;!&ndash;                      <div class="uk-grid uk-margin-bottom uk-margin-top">&ndash;&gt;-->
198
<!--&lt;!&ndash;                        <span class="uk-text-bold uk-text-large">Filters</span>&ndash;&gt;-->
199
<!--&lt;!&ndash;                        <a  *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">&ndash;&gt;-->
200
<!--&lt;!&ndash;                          Clear All&ndash;&gt;-->
201
<!--&lt;!&ndash;                        </a>&ndash;&gt;-->
202
<!--&lt;!&ndash;                      </div>&ndash;&gt;-->
203
<!--                      <div class="uk-grid uk-flex uk-flex-bottom">-->
204
<!--                        <h5 class="uk-text-bold">Filters</h5>-->
205
<!--                        <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
206
<!--                          Clear All-->
207
<!--                        </a>-->
208
<!--                      </div>-->
209
<!--                    </div>-->
210

    
211
<!--                    <div   *ngIf="selectedRangeFilters > 0 || selectedFilters>0"  class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>-->
212
<!--                      <ng-container *ngIf="selectedRangeFilters > 0">-->
213
<!--                        <ng-container *ngFor="let filter of rangeFilters " >-->
214
<!--                          <ng-container *ngIf = "filter.selectedFromAndToValues">-->
215
<!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
216
<!--                          <span class="selectedFilterLabel ">-->
217
<!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
218
<!--                              <span class=" clickable" aria-hidden="true">-->
219
<!--                                <span class="uk-icon">-->
220
<!--                                  <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>-->
221
<!--                                </span>-->
222
<!--                              </span>-->
223
<!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
224
<!--                            </a>-->
225
<!--                          </span>-->
226
<!--                        </span>-->
227
<!--                          </ng-container>-->
228
<!--                        </ng-container>-->
229
<!--                      </ng-container>-->
230
<!--                      <ng-container *ngFor="let filter of filters " >-->
231
<!--                        <ng-container *ngIf = "filter.countSelectedValues > 0">-->
232

    
233
<!--                          &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
234
<!--                          &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;-->
235
<!--                          &lt;!&ndash;                        uk-label &ndash;&gt;-->
236
<!--                          <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
237
<!--                                [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
238
<!--                            &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
239
<!--                            <span class="selectedFilterLabel ">-->
240
<!--                              <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
241
<!--                                <span class=" clickable" aria-hidden="true">-->
242
<!--                                  <span class="uk-icon">-->
243
<!--                                    <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>-->
244
<!--                                  </span>-->
245
<!--                                </span>-->
246
<!--                                <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
247
<!--                              </a>-->
248
<!--                            </span>-->
249
<!--                          </span>-->
250
<!--                        </ng-container>-->
251
<!--                      </ng-container>-->
252

    
253

    
254
<!--                    </div>-->
255

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

    
260
<!--                    <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">-->
261
<!--                      <span class="uk-text-meta">No filters available</span>-->
262
<!--                    </div>-->
263
<!--                    <ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">-->
264
<!--                      <ng-container *ngFor="let filter of rangeFilters">-->
265
<!--                        <li>-->
266
<!--                          <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
267
<!--                        </li>-->
268
<!--                      </ng-container>-->
269
<!--                      <ng-container *ngFor="let filter of filters ">-->
270
<!--                        <li *ngIf= "filter.values.length >0">-->
271
<!--                          <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
272
<!--                        </li>-->
273
<!--                      </ng-container>-->
274
<!--                    </ul>-->
275
                    <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
276
<!--                    END OF HERE-->
277
                  </div>
278
                </div>
279
              </div>
280

    
281
            </div>
282
          </div>
283
          <div *ngIf="includeOnlyResultsAndFilter  "
284
               class="uk-margin-medium-top uk-margin-medium-bottom">
285
            <a *ngIf ="showAdvancedSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
286
               [routerLink]="advancedSearchLink" style="z-index:1;" [queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
287
               [class]="(disableForms?'  uk-disabled uk-link-muted  ':'') +' portal-link   uk-float-right '">Advanced search
288
            </a>
289
          <!--  <quick-selections  [resultTypes]="resultTypes"
290
                              (typeChange)="queryChanged()"
291
                              [isDisabled]="disableForms"
292
                              [quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
293
                              [properties]="properties">
294
            </quick-selections>-->
295

    
296
          </div>
297
          <div class="uk-grid helper-grid uk-padding-small uk-padding-remove-vertical uk-margin-large-bottom" >
298
            <div *ngIf="showRefine" class="uk-width-1-4@m search-filters uk-visible@m">
299
              <!-- top: #container-1; bottom: #true; -->
300
              <!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
301
<!--              <span *ngIf="tableViewLink" class="uk-width-expand">-->
302
<!--                  <span *ngIf="tableViewLink">-->
303
<!--                    <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
304
<!--                      <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>-->
305
<!--                    </a>-->
306
<!--                    <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>-->
307
<!--                  </span>-->
308
<!--                </span>-->
309
<!--              <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
310
<!--                'community' && entityType != 'funder') && usedBy == 'search'"-->
311
<!--                               class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
312
<!--              </search-download>-->
313

    
314
<!--              HERE-->
315
<!--              <div  *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top  uk-margin-medium-bottom ">-->
316
<!--                <div  class="uk-grid uk-flex uk-flex-bottom">-->
317
<!--                  <h5 class="uk-text-bold">Filters</h5>-->
318
<!--                  <a  *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+'  portal-link ' + 'uk-width-1-2'">-->
319
<!--                    Clear All-->
320
<!--                  </a>-->
321
<!--                </div>-->
322
<!--                &lt;!&ndash;                uk-grid uk-grid-small" uk-grid&ndash;&gt;-->
323
<!--                &lt;!&ndash;                uk-margin-left&ndash;&gt;-->
324
<!--                <div class="uk-grid uk-grid-small uk-text-small" uk-grid>-->
325
<!--                  <ng-container *ngIf="selectedRangeFilters > 0">-->
326
<!--                    <ng-container *ngFor="let filter of rangeFilters " >-->
327
<!--                      <ng-container *ngIf = "filter.selectedFromAndToValues">-->
328
<!--                        <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
329
<!--                          <span class="selectedFilterLabel ">-->
330
<!--                            <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
331
<!--                              <span class=" clickable" aria-hidden="true">-->
332
<!--                                <span class="uk-icon">-->
333
<!--                                  <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>-->
334
<!--                                </span>-->
335
<!--                              </span>-->
336
<!--                              <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
337
<!--                            </a>-->
338
<!--                          </span>-->
339
<!--                        </span>-->
340
<!--                      </ng-container>-->
341
<!--                    </ng-container>-->
342
<!--                  </ng-container>-->
343
<!--                  <ng-container *ngFor="let filter of filters " >-->
344
<!--                    <ng-container *ngIf = "filter.countSelectedValues > 0">-->
345

    
346
<!--                      &lt;!&ndash;                       <span class="uk-text-bold">{{filter.title}}:</span>&ndash;&gt;-->
347
<!--                      &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;-->
348
<!--                      &lt;!&ndash;                        uk-label &ndash;&gt;-->
349
<!--                      <span *ngFor="let value of getSelectedValues(filter); let i = index;  let end = last; "-->
350
<!--                            [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
351
<!--                        &lt;!&ndash; if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span &ndash;&gt;-->
352
<!--                        <span class="selectedFilterLabel ">-->
353
<!--                          <a [class]="((disableForms)?'  uk-disabled':'  ')+' uk-link-text '">-->
354
<!--                            <span class=" clickable" aria-hidden="true">-->
355
<!--                              <span class="uk-icon">-->
356
<!--                                <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>-->
357
<!--                              </span>-->
358
<!--                            </span>-->
359
<!--                            <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
360
<!--                          </a>-->
361
<!--                        </span>-->
362
<!--                      </span>-->
363
<!--                    </ng-container>-->
364
<!--                  </ng-container>-->
365
<!--                </div>-->
366

    
367
<!--                &lt;!&ndash;                <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">&ndash;&gt;-->
368
<!--                &lt;!&ndash;                  <a  *ngIf= "showUnknownFilters" class = "  portal-link" (click) = "clearFilters() " >Try new Query</a>&ndash;&gt;-->
369
<!--                &lt;!&ndash;                </div>&ndash;&gt;-->
370
<!--              </div>-->
371
<!--              <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">-->
372
<!--                <span class="uk-text-meta">No filters available</span>-->
373
<!--              </div>-->
374
<!--              <ul *ngIf="!showUnknownFilters"-->
375
<!--                  [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">-->
376
<!--                <ng-container *ngFor="let filter of rangeFilters">-->
377
<!--                  <li>-->
378
<!--                    <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
379
<!--                  </li>-->
380
<!--                </ng-container>-->
381
<!--                <ng-container *ngFor="let filter of filters ">-->
382
<!--                  <li *ngIf= "filter.values.length >0">-->
383
<!--                    <search-filter  [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter"  [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)"  ></search-filter>-->
384
<!--                  </li>-->
385
<!--                </ng-container>-->
386
<!--              </ul>-->
387
              <!--context: {  dynamic_content: getDynamicContent(share_research_results_type) }">-->
388
              <ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
389
<!--              END OF HERE-->
390

    
391
            </div>
392
            <div class="uk-width-expand@m uk-with-1-1@s">
393
              <div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"> <a
394
                class="uk-margin-top   uk-button uk-button-text"
395
                                            [href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
396
              target="_blank" >Results in OpenAIRE</a></div>
397
              <div  class="uk-align-center uk-margin-remove-bottom">
398
                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
399
                      class="uk-grid uk-margin-top uk-margin-bottom">
400
                  <div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
401
                    <search-results-per-page [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
402
                    <search-sorting *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
403
                  </div>
404
<!--                  uk-flex uk-flex-middle-->
405
                  <div class="uk-width-auto@m uk-margin-small-bottom">
406
<!--                    !showUnknownFilters && (searchUtils.totalResults > 0 || !loadPaging)-->
407
                    <search-download *ngIf= "( entityType !='community' && entityType != 'funder') && usedBy == 'search'"
408
                                     [isDisabled]="disableForms"
409
                                     [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
410
                    </search-download>
411

    
412
                  <!--<span *ngIf="tableViewLink">
413
                    <a uk-tooltip="title: Table view" routerLinkActive="router-link-active"
414
                       [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' uk-link-text uk-margin-small-left'"
415
                       [routerLink]=tableViewLink >
416
                      <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>
417
                      Table view
418
                    </a>
419
&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;
420
                  </span>-->
421
                  </div>
422
                </div>
423
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"  [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl"  [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"   ></search-paging>
424
              </div>
425

    
426
<!--              <search-download *ngIf= "( entityType !='community' && entityType != 'funder') && usedBy == 'search'"-->
427
<!--                               class="uk-width-1-1@s uk-hidden@m"-->
428
<!--                               [isDisabled]="disableForms"-->
429
<!--                               [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
430
<!--              </search-download>-->
431

    
432
              <div *ngIf="(searchUtils.page <= pagingLimit)" class="uk-margin-large-bottom">
433
                <search-result  *ngIf="( entityType !='community' && entityType != 'funder') && usedBy == 'search'"
434
                                [results]="results"
435
                                [status]=searchUtils.status
436
                                [type]="entityType"
437
                                [showLoading]="true" [properties]=properties [showImpactFactors]="(customFilter &&
438
                                customFilter.queryFieldName == 'communityId' && customFilter.valueId == 'elixir-gr')" >
439
                </search-result>
440
                <deposit-result   *ngIf="usedBy == 'deposit'"
441
                                  [results]="results"
442
                                  [status]="searchUtils.status"
443
                                  [type]="entityType"
444
                                  [zenodoInformation]="zenodoInformation"
445
                                  [properties]=properties>
446
                </deposit-result>
447
                <community-search-result *ngIf="(entityType == 'community' || entityType == 'funder')   &&
448
                usedBy == 'search'"
449
                                         [results]="results"
450
                                         [status]="searchUtils.status"
451
                                         [type]="entityType"
452
                                         [showType]="false"
453
                                         [showLoading]="true" [properties]=properties>
454
                </community-search-result>
455
              </div>
456

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

    
461
              <div  class="uk-align-center uk-margin-remove-bottom">
462
<!--                <div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"-->
463
<!--                      class="uk-grid uk-margin-top uk-margin-bottom">-->
464
<!--                  <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>-->
465
<!--                  <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>-->
466
<!--                </div>-->
467
                <search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"  [(results)] = "results" [(baseUrl)] = "searchUtils.baseUrl"  [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"   ></search-paging>
468
              </div>
469

    
470
              <a *ngIf="properties.showLastIndexInformationLink && lastIndex"
471
                 class="last_index_info uk-button-text uk-button"
472
                  [href]="properties.lastIndexInformationLink" target="_blank">
473
                  Last index information
474
              </a>
475
            </div>
476
<!--            <div class="uk-visible@m uk-margin-top uk-width-1-5">-->
477
<!--              <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>-->
478
<!--            </div>-->
479
            <!-- <helper *ngIf="searchUtils.totalResults > csvLimit" class="uk-margin-top helper-left-right uk-visible@m" position="right"></helper> -->
480
          </div>
481

    
482
          <helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']"></helper>
483
        </div>
484
      </div>
485
    </div>
486
  </div>
487
</div>
(19-19/55)