|
|
|
@ -1,3 +1,69 @@
|
|
|
|
|
<ng-template #filters_column>
|
|
|
|
|
<!-- let-dynamic_content="dynamic_content">-->
|
|
|
|
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top uk-margin-medium-bottom ">
|
|
|
|
|
<div class="uk-grid uk-flex uk-flex-bottom">
|
|
|
|
|
<h5 class="uk-text-bold">Filters</h5>
|
|
|
|
|
<a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
|
|
|
Clear All
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
|
|
|
|
<ng-container *ngIf="selectedRangeFilters > 0">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters " >
|
|
|
|
|
<ng-container *ngIf = "filter.selectedFromAndToValues">
|
|
|
|
|
<span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters " >
|
|
|
|
|
<ng-container *ngIf = "filter.countSelectedValues > 0">
|
|
|
|
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
|
|
|
|
[title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
|
|
|
|
|
<!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">
|
|
|
|
|
<span class="uk-text-meta">No filters available</span>
|
|
|
|
|
</div>
|
|
|
|
|
<ul *ngIf="!showUnknownFilters"
|
|
|
|
|
[class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters">
|
|
|
|
|
<li>
|
|
|
|
|
<range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters ">
|
|
|
|
|
<li *ngIf= "filter.values.length >0">
|
|
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ul>
|
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
|
|
|
|
|
' image-front-topbar uk-section-default uk-position-relative ' :
|
|
|
|
@ -74,10 +140,10 @@
|
|
|
|
|
<!-- </svg>-->
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
|
|
|
|
|
<div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
|
|
|
|
|
<div class="uk-offcanvas-bar offcanvas-white">
|
|
|
|
|
<button class="uk-offcanvas-close" type="button" uk-close></button>
|
|
|
|
|
<div class="uk-width-1-1 uk-margin-small-bottom uk-margin-top">
|
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
|
|
|
|
|
|
<!-- <span *ngIf="tableViewLink " class="uk-width-expand">-->
|
|
|
|
|
<!-- <span *ngIf="tableViewLink">-->
|
|
|
|
@ -92,86 +158,89 @@
|
|
|
|
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
|
|
|
|
<!-- </search-download>-->
|
|
|
|
|
|
|
|
|
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-small-bottom">
|
|
|
|
|
<!-- <div class="uk-grid uk-margin-bottom uk-margin-top">-->
|
|
|
|
|
<!-- <span class="uk-text-bold uk-text-large">Filters</span>-->
|
|
|
|
|
<!-- <a *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">-->
|
|
|
|
|
<!-- HERE-->
|
|
|
|
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-margin-top uk-margin-small-bottom">-->
|
|
|
|
|
<!--<!– <div class="uk-grid uk-margin-bottom uk-margin-top">–>-->
|
|
|
|
|
<!--<!– <span class="uk-text-bold uk-text-large">Filters</span>–>-->
|
|
|
|
|
<!--<!– <a *ngIf="selectedFilters>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">–>-->
|
|
|
|
|
<!--<!– Clear All–>-->
|
|
|
|
|
<!--<!– </a>–>-->
|
|
|
|
|
<!--<!– </div>–>-->
|
|
|
|
|
<!-- <div class="uk-grid uk-flex uk-flex-bottom">-->
|
|
|
|
|
<!-- <h5 class="uk-text-bold">Filters</h5>-->
|
|
|
|
|
<!-- <a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">-->
|
|
|
|
|
<!-- Clear All-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<div class="uk-grid uk-flex uk-flex-bottom uk-margin-top">
|
|
|
|
|
<h5 class="uk-text-bold">Filters</h5>
|
|
|
|
|
<a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
|
|
|
Clear All
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters>0" class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>
|
|
|
|
|
<ng-container *ngIf="selectedRangeFilters > 0">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters " >
|
|
|
|
|
<ng-container *ngIf = "filter.selectedFromAndToValues">
|
|
|
|
|
<span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters " >
|
|
|
|
|
<ng-container *ngIf = "filter.countSelectedValues > 0">
|
|
|
|
|
|
|
|
|
|
<!-- <span class="uk-text-bold">{{filter.title}}:</span>-->
|
|
|
|
|
<!-- uk-margin-small-top uk-margin-small-right--> <!-- if no grid on the div above, add it -->
|
|
|
|
|
<!-- uk-label -->
|
|
|
|
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
|
|
|
|
[title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
|
|
|
|
|
<!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">-->
|
|
|
|
|
<!-- <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters>0" class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>-->
|
|
|
|
|
<!-- <ng-container *ngIf="selectedRangeFilters > 0">-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of rangeFilters " >-->
|
|
|
|
|
<!-- <ng-container *ngIf = "filter.selectedFromAndToValues">-->
|
|
|
|
|
<!-- <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
|
|
|
|
|
<!-- <span class="selectedFilterLabel ">-->
|
|
|
|
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
|
|
|
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
|
|
|
|
<!-- <span class="uk-icon">-->
|
|
|
|
|
<!-- <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>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of filters " >-->
|
|
|
|
|
<!-- <ng-container *ngIf = "filter.countSelectedValues > 0">-->
|
|
|
|
|
|
|
|
|
|
<!-- <!– <span class="uk-text-bold">{{filter.title}}:</span>–>-->
|
|
|
|
|
<!-- <!– uk-margin-small-top uk-margin-small-right–> <!– if no grid on the div above, add it –>-->
|
|
|
|
|
<!-- <!– uk-label –>-->
|
|
|
|
|
<!-- <span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "-->
|
|
|
|
|
<!-- [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
|
|
|
|
|
<!-- <!– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span –>-->
|
|
|
|
|
<!-- <span class="selectedFilterLabel ">-->
|
|
|
|
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
|
|
|
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
|
|
|
|
<!-- <span class="uk-icon">-->
|
|
|
|
|
<!-- <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>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<!--<!– <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">–>-->
|
|
|
|
|
<!--<!– <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>–>-->
|
|
|
|
|
<!--<!– </div>–>-->
|
|
|
|
|
|
|
|
|
|
<!-- <div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">-->
|
|
|
|
|
<!-- <span class="uk-text-meta">No filters available</span>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of rangeFilters">-->
|
|
|
|
|
<!-- <li>-->
|
|
|
|
|
<!-- <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of filters ">-->
|
|
|
|
|
<!-- <li *ngIf= "filter.values.length >0">-->
|
|
|
|
|
<!-- <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
|
|
|
|
<!-- END OF HERE-->
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
|
|
|
|
|
<span class="uk-text-meta">No filters available</span>
|
|
|
|
|
</div>
|
|
|
|
|
<ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters">
|
|
|
|
|
<li>
|
|
|
|
|
<range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters ">
|
|
|
|
|
<li *ngIf= "filter.values.length >0">
|
|
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -193,88 +262,96 @@
|
|
|
|
|
<!-- 'community' && entityType != 'funder') && usedBy == 'search'"-->
|
|
|
|
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
|
|
|
|
<!-- </search-download>-->
|
|
|
|
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top uk-margin-small-bottom ">
|
|
|
|
|
<div class="uk-grid uk-flex uk-flex-bottom uk-margin-small-top">
|
|
|
|
|
<h5 class="uk-text-bold">Filters</h5>
|
|
|
|
|
<a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
|
|
|
Clear All
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- uk-grid uk-grid-small" uk-grid-->
|
|
|
|
|
<!-- uk-margin-left-->
|
|
|
|
|
<div *ngIf="selectedRangeFilters > 0 || selectedFilters>0" class="uk-margin-medium-bottom uk-grid uk-grid-small uk-text-small" uk-grid>
|
|
|
|
|
<ng-container *ngIf="selectedRangeFilters > 0">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters " >
|
|
|
|
|
<ng-container *ngIf = "filter.selectedFromAndToValues">
|
|
|
|
|
<span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters " >
|
|
|
|
|
<ng-container *ngIf = "filter.countSelectedValues > 0">
|
|
|
|
|
|
|
|
|
|
<!-- <span class="uk-text-bold">{{filter.title}}:</span>-->
|
|
|
|
|
<!-- uk-margin-small-top uk-margin-small-right--> <!-- if no grid on the div above, add it -->
|
|
|
|
|
<!-- uk-label -->
|
|
|
|
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
|
|
|
|
[title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >
|
|
|
|
|
<!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
|
|
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
|
<span class="uk-icon">
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">-->
|
|
|
|
|
<!-- <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>-->
|
|
|
|
|
<!-- HERE-->
|
|
|
|
|
<!-- <div *ngIf="selectedRangeFilters > 0 || selectedFilters > 0" class="uk-width-1-1 uk-margin-top uk-margin-medium-bottom ">-->
|
|
|
|
|
<!-- <div class="uk-grid uk-flex uk-flex-bottom">-->
|
|
|
|
|
<!-- <h5 class="uk-text-bold">Filters</h5>-->
|
|
|
|
|
<!-- <a *ngIf="(selectedRangeFilters+selectedFilters)>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">-->
|
|
|
|
|
<!-- Clear All-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">
|
|
|
|
|
<span class="uk-text-meta">No filters available</span>
|
|
|
|
|
</div>
|
|
|
|
|
<ul *ngIf="!showUnknownFilters" class="uk-list uk-list-divider">
|
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters">
|
|
|
|
|
<li>
|
|
|
|
|
<range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngFor="let filter of filters ">
|
|
|
|
|
<li *ngIf= "filter.values.length >0">
|
|
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
|
|
|
|
</li>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</ul>
|
|
|
|
|
<!-- <!– uk-grid uk-grid-small" uk-grid–>-->
|
|
|
|
|
<!-- <!– uk-margin-left–>-->
|
|
|
|
|
<!-- <div class="uk-grid uk-grid-small uk-text-small" uk-grid>-->
|
|
|
|
|
<!-- <ng-container *ngIf="selectedRangeFilters > 0">-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of rangeFilters " >-->
|
|
|
|
|
<!-- <ng-container *ngIf = "filter.selectedFromAndToValues">-->
|
|
|
|
|
<!-- <span [title]="'Remove '+ filter.selectedFromAndToValues" (click) = "removeRangeFilter(filter) " >-->
|
|
|
|
|
<!-- <span class="selectedFilterLabel ">-->
|
|
|
|
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
|
|
|
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
|
|
|
|
<!-- <span class="uk-icon">-->
|
|
|
|
|
<!-- <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>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of filters " >-->
|
|
|
|
|
<!-- <ng-container *ngIf = "filter.countSelectedValues > 0">-->
|
|
|
|
|
|
|
|
|
|
<!-- <!– <span class="uk-text-bold">{{filter.title}}:</span>–>-->
|
|
|
|
|
<!-- <!– uk-margin-small-top uk-margin-small-right–> <!– if no grid on the div above, add it –>-->
|
|
|
|
|
<!-- <!– uk-label –>-->
|
|
|
|
|
<!-- <span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "-->
|
|
|
|
|
<!-- [title]="'Remove '+value.name" (click) = "removeFilter(value, filter) " >-->
|
|
|
|
|
<!-- <!– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span –>-->
|
|
|
|
|
<!-- <span class="selectedFilterLabel ">-->
|
|
|
|
|
<!-- <a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">-->
|
|
|
|
|
<!-- <span class=" clickable" aria-hidden="true">-->
|
|
|
|
|
<!-- <span class="uk-icon">-->
|
|
|
|
|
<!-- <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>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <span class="uk-margin-small-left" [innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>-->
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<!-- <!– <div class="uk-margin-small-bottom uk-margin-small-top uk-grid">–>-->
|
|
|
|
|
<!-- <!– <a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>–>-->
|
|
|
|
|
<!-- <!– </div>–>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <div *ngIf="filters.length === 0 && results.length > 0" class="uk-margin-top">-->
|
|
|
|
|
<!-- <span class="uk-text-meta">No filters available</span>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <ul *ngIf="!showUnknownFilters"-->
|
|
|
|
|
<!-- [class]="'uk-list uk-list-divider' + (selectedRangeFilters == 0 && selectedFilters == 0 ? ' uk-margin-small-top' : '')">-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of rangeFilters">-->
|
|
|
|
|
<!-- <li>-->
|
|
|
|
|
<!-- <range-filter [isDisabled]="disableForms" [filter]="filter" (onFilterChange)="filterChanged($event)"></range-filter>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- <ng-container *ngFor="let filter of filters ">-->
|
|
|
|
|
<!-- <li *ngIf= "filter.values.length >0">-->
|
|
|
|
|
<!-- <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!--context: { dynamic_content: getDynamicContent(share_research_results_type) }">-->
|
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
|
|
|
|
<!-- END OF HERE-->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-width-expand@m uk-with-1-1@s">
|
|
|
|
|
<div *ngIf="openaireLink"> <a class="uk-margin-top uk-button uk-button-text" [href]=openaireLink target="_blank" >Results in OpenAIRE</a></div>
|
|
|
|
|
<div class="uk-align-center uk-margin-remove-bottom">
|
|
|
|
|
<div *ngIf="(results && searchUtils.totalResults > 0) || (!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING)"
|
|
|
|
|
class="uk-grid uk-margin-small-top uk-margin-bottom">
|
|
|
|
|
class="uk-grid uk-margin-top uk-margin-bottom">
|
|
|
|
|
<div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
|
|
|
|
|
<search-results-per-page [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>
|
|
|
|
|
<search-sorting *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="uk-flex uk-flex-middle uk-width-auto@m uk-margin-small-bottom">
|
|
|
|
|
<!-- uk-flex uk-flex-middle-->
|
|
|
|
|
<div class="uk-width-auto@m uk-margin-small-bottom">
|
|
|
|
|
<search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0
|
|
|
|
|
&& ( entityType !='community' && entityType != 'funder') && usedBy == 'search'"
|
|
|
|
|
[loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils"
|
|
|
|
|