2020-07-13 11:15:00 +02:00
|
|
|
<ng-template #selected_filters_pills>
|
|
|
|
<div class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
2020-07-13 17:23:20 +02:00
|
|
|
<ng-container *ngIf="customFilterEnabled && customFilter && refineFields.indexOf(customFilter.queryFieldName) ==
|
|
|
|
-1 ">
|
|
|
|
<span>
|
|
|
|
<span class="selectedFilterLabel uk-disabled ">
|
|
|
|
<span class="">{{customFilter.valueName}}</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</ng-container>
|
2020-07-13 11:15:00 +02:00
|
|
|
<ng-container *ngIf="selectedTypesNum > 0 && resultTypes">
|
|
|
|
<ng-container *ngFor="let type of resultTypeOptions; let i = index; let end = last; ">
|
|
|
|
<ng-container *ngIf="resultTypes[type.id] == true">
|
|
|
|
<span [title]="'Remove '+ type.name" (click)="removeResultType(type.id) ">
|
|
|
|
<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">{{type.name}}</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<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>
|
|
|
|
</ng-template>
|
2020-03-24 16:40:51 +01:00
|
|
|
<ng-template #filters_column>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- let-dynamic_content="dynamic_content">-->
|
|
|
|
<div *ngIf="selectedRangeFilters+selectedFilters + selectedTypesNum > 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 + selectedTypesNum)>1" (click)="clearFilters()"
|
|
|
|
[class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
|
|
Clear All
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-07-13 11:15:00 +02:00
|
|
|
<ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
|
|
|
|
<!--<div class="uk-grid uk-grid-small uk-text-small" uk-grid>
|
2020-06-05 14:56:28 +02:00
|
|
|
<ng-container *ngIf="selectedTypesNum > 0 && resultTypes">
|
|
|
|
<ng-container *ngFor="let type of resultTypeOptions; let i = index; let end = last; ">
|
|
|
|
<ng-container *ngIf="resultTypes[type.id] == true">
|
|
|
|
<span [title]="'Remove '+ type.name" (click)="removeResultType(type.id) ">
|
2020-06-01 11:02:16 +02:00
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
<span class="uk-icon">
|
2020-06-05 14:56:28 +02:00
|
|
|
<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>
|
2020-06-01 11:02:16 +02:00
|
|
|
</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
<span class="uk-margin-small-left">{{type.name}}</span>
|
2020-06-01 11:02:16 +02:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
</ng-container>
|
2020-06-01 11:02:16 +02:00
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
<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) ">
|
2020-03-24 16:40:51 +01:00
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
<span class="uk-icon">
|
2020-06-05 14:56:28 +02:00
|
|
|
<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>
|
2020-03-24 16:40:51 +01:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="uk-margin-small-left">{{filter.selectedFromAndToValues}}</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
</ng-container>
|
2020-03-24 16:40:51 +01:00
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
<ng-container *ngFor="let filter of filters ">
|
|
|
|
<ng-container *ngIf="filter.countSelectedValues > 0">
|
2020-03-24 16:40:51 +01:00
|
|
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
2020-06-05 14:56:28 +02:00
|
|
|
[title]="'Remove '+value.name" (click)="removeFilter(value, filter) ">
|
2020-07-13 11:15:00 +02:00
|
|
|
<!– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span –>
|
2020-03-24 16:40:51 +01:00
|
|
|
<span class="selectedFilterLabel ">
|
|
|
|
<a [class]="((disableForms)?' uk-disabled':' ')+' uk-link-text '">
|
|
|
|
<span class=" clickable" aria-hidden="true">
|
|
|
|
<span class="uk-icon">
|
2020-06-05 14:56:28 +02:00
|
|
|
<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>
|
2020-03-24 16:40:51 +01:00
|
|
|
</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
<span class="uk-margin-small-left"
|
|
|
|
[innerHtml]="(value.name.length > 34)?value.name.substring(0,34)+'...':value.name"></span>
|
2020-03-24 16:40:51 +01:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
</ng-container>
|
2020-03-24 16:40:51 +01:00
|
|
|
</ng-container>
|
2020-07-13 11:15:00 +02:00
|
|
|
</div>-->
|
2020-03-24 16:40:51 +01:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<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' : '')">
|
2020-06-29 13:10:32 +02:00
|
|
|
<ng-container *ngIf="filters.length > 0 && filters[0].values.length >0 && filters[0].filterId ==
|
|
|
|
'resultbestaccessright'">
|
|
|
|
<li>
|
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
|
|
|
|
[isDisabled]="disableForms" [filter]="filters[0]" [showResultCount]=showResultCount
|
|
|
|
(onFilterChange)="filterChanged($event)"></search-filter>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
<li *ngIf="resultTypes && (filters.length > 0)">
|
|
|
|
<quick-selections [resultTypes]="resultTypes" (typeChange)="queryChanged()"
|
2020-06-05 14:56:28 +02:00
|
|
|
[isDisabled]="disableForms"
|
|
|
|
[quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
|
|
|
|
[properties]="properties" [vertical]="true" [delayTime]="0">
|
|
|
|
</quick-selections>
|
2020-06-29 13:10:32 +02:00
|
|
|
</li>
|
2020-06-05 14:56:28 +02:00
|
|
|
<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 ">
|
2020-06-29 13:10:32 +02:00
|
|
|
<li *ngIf="filter.values.length >0 && filter.filterId != 'resultbestaccessright'">
|
2020-06-05 14:56:28 +02:00
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
|
|
|
|
[isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount
|
|
|
|
(onFilterChange)="filterChanged($event)"></search-filter>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
2020-03-24 16:40:51 +01:00
|
|
|
</ng-template>
|
|
|
|
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
|
2020-03-12 18:03:35 +01:00
|
|
|
' image-front-topbar uk-section-default uk-position-relative ' :
|
|
|
|
(' uk-section uk-padding-remove-bottom uk-padding-remove-top ' + (usedBy
|
|
|
|
== 'deposit' ? ' uk-padding-remove-top ' : ' '))"
|
2020-06-05 14:56:28 +02:00
|
|
|
uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}"
|
|
|
|
tm-header-transparent="light">
|
|
|
|
<div style="box-sizing: border-box; "
|
|
|
|
[class]="' uk-background-norepeat uk-background-bottom-center uk-padding-remove-bottom uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
|
2020-07-10 10:37:17 +02:00
|
|
|
+ (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') && !dashboard ?
|
|
|
|
' searchFormMinHeight uk-padding-remove-bottom uk-section' : '')
|
2020-03-12 18:03:35 +01:00
|
|
|
+(simpleView?'':' advancedSearchFormBackground ')">
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<div
|
|
|
|
[class]="(usedBy!='deposit' && (!customFilter || customFilter.queryFieldName != 'communityId'))?'uk-position-cover':''"></div>
|
2020-01-31 16:12:51 +01:00
|
|
|
<div class="uk-width-1-1">
|
2020-05-07 12:26:38 +02:00
|
|
|
<breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"
|
2020-06-05 14:56:28 +02:00
|
|
|
addClass=" uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top"
|
|
|
|
[breadcrumbs]="breadcrumbs"></breadcrumbs>
|
|
|
|
<div class="uk-position-relative">
|
|
|
|
<div [class]="'uk-container '+(customFilter && customFilter.queryFieldName ==
|
2020-05-07 12:26:38 +02:00
|
|
|
'communityId'?' uk-margin-large-bottom ':'uk-margin-large-top')+
|
2020-06-05 14:56:28 +02:00
|
|
|
(entityType === 'community' ||entityType === 'stakeholder'?' uk-position-relative':'')" id="searchForm">
|
|
|
|
<advanced-search-form
|
|
|
|
[entityType]="entityType"
|
|
|
|
[fieldIds]="fieldIds"
|
|
|
|
[fieldIdsMap]="fieldIdsMap"
|
|
|
|
[selectedFields]="selectedFields"
|
|
|
|
(queryChange)="queryChanged()"
|
|
|
|
[isDisabled]="disableForms"
|
|
|
|
[simpleSearchLink]="simpleSearchLink"
|
|
|
|
[advancedSearchLink]="advancedSearchLink"
|
|
|
|
[advancedSearchLinkParameters]
|
|
|
|
="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
|
|
|
[pageTitle]=pageTitle [simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText"
|
|
|
|
[resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
|
|
|
|
[showAdvancedSearchLink]="showAdvancedSearchLink" [customFilter]="customFilter"
|
|
|
|
>
|
|
|
|
</advanced-search-form>
|
2020-06-29 15:15:52 +02:00
|
|
|
<div *ngIf="entityType === 'community' || entityType === 'stakeholder' " class="uk-position-center-right uk-visible@m">
|
2020-06-05 14:56:28 +02:00
|
|
|
<img src="assets/common-assets/common/search.png" class="uk-align-center" width="141" height="171">
|
|
|
|
</div>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<schema2jsonld *ngIf="!includeOnlyResultsAndFilter && url" [URL]="url" type="search" [name]=pageTitle
|
2020-02-19 16:35:48 +01:00
|
|
|
[searchAction]=false></schema2jsonld>
|
2020-01-31 16:12:51 +01:00
|
|
|
|
|
|
|
|
2020-05-07 19:20:33 +02:00
|
|
|
<div id="tm-main" class=" tm-middle">
|
2020-02-04 14:27:42 +01:00
|
|
|
<div uk-grid>
|
2020-01-31 16:12:51 +01:00
|
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <breadcrumbs *ngIf="showBreadcrumb && entityType!='community'"-->
|
|
|
|
<!-- addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>-->
|
2020-04-23 09:33:23 +02:00
|
|
|
<div class="uk-container uk-container-large">
|
2020-01-31 16:12:51 +01:00
|
|
|
<div>
|
2020-04-28 10:03:40 +02:00
|
|
|
<breadcrumbs *ngIf="showBreadcrumb && entityType=='community'"
|
|
|
|
addClass=" " [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
2020-06-05 14:56:28 +02:00
|
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
|
|
|
[texts]="pageContents['top']"></helper>
|
2020-07-13 17:23:20 +02:00
|
|
|
<div [class]="(showRefine && !this.properties.isDashboard)?
|
|
|
|
'uk-width-4-5@m uk-width-4-5@l uk-width-1-1@s'
|
|
|
|
:'uk-width-1-1'">
|
2020-06-05 14:56:28 +02:00
|
|
|
<div *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m uk-margin-top">
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-02-24 14:33:34 +01:00
|
|
|
<a href="#offcanvas-usage" uk-toggle>
|
|
|
|
<span class="uk-icon uk-margin-small-right uk-margin-small-left">
|
2020-06-05 14:56:28 +02:00
|
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
|
|
|
|
data-svg="settings">
|
2020-02-24 14:33:34 +01:00
|
|
|
<ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15"></ellipse>
|
|
|
|
<ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15"></ellipse>
|
|
|
|
<circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15"></circle>
|
|
|
|
<rect x="1" y="3" width="3" height="1"></rect>
|
|
|
|
<rect x="10" y="3" width="8" height="1"></rect>
|
|
|
|
<rect x="1" y="9" width="8" height="1"></rect>
|
|
|
|
<rect x="15" y="9" width="3" height="1"></rect>
|
|
|
|
<rect x="1" y="15" width="3" height="1"></rect>
|
|
|
|
<rect x="10" y="15" width="8" height="1"></rect>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
<span>Filters <span
|
|
|
|
*ngIf="(selectedRangeFilters+selectedFilters) > 0">({{(selectedRangeFilters + selectedFilters)}}
|
|
|
|
)</span></span>
|
|
|
|
<!-- <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="1">-->
|
|
|
|
<!-- <rect x="6" y="4" width="12" height="1"></rect><rect x="6" y="9" width="12" height="1"></rect>-->
|
|
|
|
<!-- <rect x="6" y="14" width="12" height="1"></rect>-->
|
|
|
|
<!-- <rect x="2" y="4" width="2" height="1"></rect>-->
|
|
|
|
<!-- <rect x="2" y="9" width="2" height="1"></rect>-->
|
|
|
|
<!-- <rect x="2" y="14" width="2" height="1"></rect>-->
|
|
|
|
<!-- </svg>-->
|
2020-02-24 14:33:34 +01:00
|
|
|
</a>
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-03-24 16:40:51 +01:00
|
|
|
<div #offcanvas_element id="offcanvas-usage" uk-offcanvas overlay style="z-index:10000;">
|
2020-02-26 16:01:16 +01:00
|
|
|
<div class="uk-offcanvas-bar offcanvas-white">
|
2020-01-31 16:12:51 +01:00
|
|
|
<button class="uk-offcanvas-close" type="button" uk-close></button>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-width-1-1">
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <span *ngIf="tableViewLink " class="uk-width-expand">-->
|
|
|
|
<!-- <span *ngIf="tableViewLink">-->
|
|
|
|
<!-- <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
|
|
|
|
<!-- <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>-->
|
|
|
|
<!-- </a>-->
|
|
|
|
<!-- <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>-->
|
|
|
|
<!-- </span>-->
|
|
|
|
<!-- </span>-->
|
|
|
|
<!-- <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
|
|
|
|
<!-- 'community' && entityType != 'stakeholder') && usedBy == 'search'"-->
|
|
|
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
|
|
|
<!-- </search-download>-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- 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>-->
|
2020-02-17 15:19:14 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <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">-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <!– <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>-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- </div>-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!--<!– <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>–>-->
|
2020-03-24 16:40:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <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>-->
|
2020-03-24 16:40:51 +01:00
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- END OF HERE-->
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-01 11:02:16 +02:00
|
|
|
<div *ngIf="includeOnlyResultsAndFilter "
|
2020-04-23 09:33:23 +02:00
|
|
|
class="uk-margin-medium-top uk-margin-medium-bottom">
|
2020-06-05 14:56:28 +02:00
|
|
|
<a *ngIf="showAdvancedSearchLink && advancedSearchLink" routerLinkActive="router-link-active"
|
|
|
|
[routerLink]="advancedSearchLink" style="z-index:1;"
|
|
|
|
[queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
|
|
|
[class]="(disableForms?' uk-disabled uk-link-muted ':'') +' portal-link uk-float-right '">Advanced
|
|
|
|
search
|
2020-04-22 15:00:13 +02:00
|
|
|
</a>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <quick-selections [resultTypes]="resultTypes"
|
|
|
|
(typeChange)="queryChanged()"
|
|
|
|
[isDisabled]="disableForms"
|
|
|
|
[quickFilter]="quickFilter" [QFselected]="(quickFilter)?quickFilter.selected:null"
|
|
|
|
[properties]="properties">
|
|
|
|
</quick-selections>-->
|
2020-04-22 15:00:13 +02:00
|
|
|
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-grid helper-grid uk-padding-small uk-padding-remove-vertical uk-margin-large-bottom">
|
2020-07-13 11:15:00 +02:00
|
|
|
<div *ngIf="showRefine && !properties.isDashboard" class="uk-width-1-4@m search-filters uk-visible@m">
|
2020-01-31 16:12:51 +01:00
|
|
|
<!-- top: #container-1; bottom: #true; -->
|
|
|
|
<!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <span *ngIf="tableViewLink" class="uk-width-expand">-->
|
|
|
|
<!-- <span *ngIf="tableViewLink">-->
|
|
|
|
<!-- <a uk-tooltip="title: Table view" routerLinkActive="router-link-active" [class]="(disableForms)?'uk-disabled uk-link-muted':''" [routerLink]=tableViewLink >-->
|
|
|
|
<!-- <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>-->
|
|
|
|
<!-- </a>-->
|
|
|
|
<!-- <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>-->
|
|
|
|
<!-- </span>-->
|
|
|
|
<!-- </span>-->
|
|
|
|
<!-- <search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=-->
|
|
|
|
<!-- 'community' && entityType != 'stakeholder') && usedBy == 'search'"-->
|
|
|
|
<!-- class="uk-width-1-2" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
|
|
|
<!-- </search-download>-->
|
2020-02-17 15:19:14 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- 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>-->
|
|
|
|
<!-- <!– 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">-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <!– <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>-->
|
2020-03-24 16:40:51 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <!– <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>-->
|
2020-03-24 16:40:51 +01:00
|
|
|
<!--context: { dynamic_content: getDynamicContent(share_research_results_type) }">-->
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- END OF HERE-->
|
2020-03-24 16:40:51 +01:00
|
|
|
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
<div class="uk-width-expand@m uk-with-1-1@s">
|
2020-07-13 11:15:00 +02:00
|
|
|
<div *ngIf="properties.isDashboard && selectedRangeFilters+selectedFilters + selectedTypesNum > 0"
|
|
|
|
class="uk-width-1-1 uk-margin-top uk-margin-medium-bottom ">
|
|
|
|
<div class="uk-flex uk-flex-bottom">
|
|
|
|
<span class="uk-margin-small-right">Filters: </span>
|
|
|
|
<ng-container *ngTemplateOutlet="selected_filters_pills; context: {}"></ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"><a
|
|
|
|
class="uk-margin-top uk-button uk-button-text"
|
|
|
|
[href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
|
|
|
|
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-top uk-margin-bottom">
|
2020-02-24 14:33:34 +01:00
|
|
|
<div class="uk-width-expand@m uk-grid uk-grid-medium uk-margin-small-bottom">
|
2020-06-05 14:56:28 +02:00
|
|
|
<search-results-per-page [(size)]="searchUtils.size"
|
|
|
|
(sizeChange)="sizeChanged($event)"></search-results-per-page>
|
|
|
|
<search-sorting *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy"
|
|
|
|
(sortByChange)="sortByChanged($event)"></search-sorting>
|
2020-02-24 14:33:34 +01:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- uk-flex uk-flex-middle-->
|
2020-03-24 16:40:51 +01:00
|
|
|
<div class="uk-width-auto@m uk-margin-small-bottom">
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- !showUnknownFilters && (searchUtils.totalResults > 0 || !loadPaging)-->
|
|
|
|
<search-download
|
|
|
|
*ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
|
|
|
|
[isDisabled]="disableForms"
|
|
|
|
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
2020-02-24 14:33:34 +01:00
|
|
|
</search-download>
|
2020-03-12 18:03:35 +01:00
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!--<span *ngIf="tableViewLink">
|
|
|
|
<a uk-tooltip="title: Table view" routerLinkActive="router-link-active"
|
|
|
|
[class]="((disableForms)?'uk-disabled uk-link-muted':'')+' uk-link-text uk-margin-small-left'"
|
|
|
|
[routerLink]=tableViewLink >
|
|
|
|
<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>
|
|
|
|
Table view
|
|
|
|
</a>
|
|
|
|
<!– <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>–>
|
|
|
|
</span>-->
|
2020-02-24 14:33:34 +01:00
|
|
|
</div>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
|
|
|
|
[(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
|
|
|
|
[(parameterNames)]="parameterNames"
|
|
|
|
[(parameterValues)]="parameterValues"></search-paging>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <search-download *ngIf= "( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"-->
|
|
|
|
<!-- class="uk-width-1-1@s uk-hidden@m"-->
|
|
|
|
<!-- [isDisabled]="disableForms"-->
|
|
|
|
<!-- [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">-->
|
|
|
|
<!-- </search-download>-->
|
2020-01-31 16:12:51 +01:00
|
|
|
|
2020-02-24 14:33:34 +01:00
|
|
|
<div *ngIf="(searchUtils.page <= pagingLimit)" class="uk-margin-large-bottom">
|
2020-06-05 14:56:28 +02:00
|
|
|
<search-result *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
|
|
|
|
[results]="results"
|
|
|
|
[status]=searchUtils.status
|
|
|
|
[type]="entityType"
|
|
|
|
[showLoading]="true" [properties]=properties [showImpactFactors]="(customFilter &&
|
|
|
|
customFilter.queryFieldName == 'communityId' && customFilter.valueId == 'elixir-gr')">
|
|
|
|
</search-result>
|
|
|
|
<deposit-result *ngIf="usedBy == 'deposit'"
|
2020-04-28 10:03:40 +02:00
|
|
|
[results]="results"
|
2020-06-05 14:56:28 +02:00
|
|
|
[status]="searchUtils.status"
|
2020-01-31 16:12:51 +01:00
|
|
|
[type]="entityType"
|
2020-06-05 14:56:28 +02:00
|
|
|
[zenodoInformation]="zenodoInformation"
|
|
|
|
[properties]=properties>
|
2020-03-12 18:03:35 +01:00
|
|
|
</deposit-result>
|
2020-06-05 14:56:28 +02:00
|
|
|
<portal-search-result
|
|
|
|
*ngIf="(entityType == 'community' || entityType == 'stakeholder') && usedBy == 'search'"
|
|
|
|
[results]="results"
|
|
|
|
[status]="searchUtils.status"
|
|
|
|
[type]="entityType"
|
|
|
|
[showType]="false"
|
|
|
|
[showLoading]="true" [properties]=properties>
|
|
|
|
</portal-search-result>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''"
|
|
|
|
*ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
|
|
|
|
<p class="uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<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-top uk-margin-bottom">-->
|
|
|
|
<!-- <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"></search-results-per-page>-->
|
|
|
|
<!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
|
|
|
|
[(searchUtils)]="searchUtils" [(results)]="results" [(baseUrl)]="searchUtils.baseUrl"
|
|
|
|
[(parameterNames)]="parameterNames"
|
|
|
|
[(parameterValues)]="parameterValues"></search-paging>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
|
2020-07-10 10:37:17 +02:00
|
|
|
<a *ngIf="properties.showLastIndexInformationLink && lastIndex && searchUtils.status !== errorCodes.LOADING"
|
2020-05-11 13:05:02 +02:00
|
|
|
class="last_index_info uk-button-text uk-button"
|
2020-06-05 14:56:28 +02:00
|
|
|
[href]="properties.lastIndexInformationLink" target="_blank">
|
|
|
|
Last index information
|
2020-01-31 16:12:51 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<!-- <div class="uk-visible@m uk-margin-top uk-width-1-5">-->
|
|
|
|
<!-- <search-download [type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults" ></search-download>-->
|
|
|
|
<!-- </div>-->
|
2020-01-31 16:12:51 +01:00
|
|
|
<!-- <helper *ngIf="searchUtils.totalResults > csvLimit" class="uk-margin-top helper-left-right uk-visible@m" position="right"></helper> -->
|
|
|
|
</div>
|
|
|
|
|
2020-06-05 14:56:28 +02:00
|
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
|
|
[texts]="pageContents['bottom']"></helper>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-13 11:15:00 +02:00
|
|
|
<div *ngIf="properties.isDashboard" id="style_switcher" class="filters_switcher"
|
|
|
|
[class.switcher_active]="filterToggle">
|
|
|
|
<div id="style_switcher_toggle" (click)="filterToggle= !filterToggle">
|
|
|
|
<i class=" uk-text-muted">
|
2020-07-13 17:23:20 +02:00
|
|
|
<svg style="margin-top: 8px;" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"
|
2020-07-13 11:15:00 +02:00
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="white" width="24px" height="24px">
|
|
|
|
<g>
|
|
|
|
<path d="M0,0h24 M24,24H0" fill="none"/>
|
|
|
|
<path
|
|
|
|
d="M4.25,5.61C6.57,8.59,10,13,10,13v5c0,1.1,0.9,2,2,2h0c1.1,0,2-0.9,2-2v-5c0,0,3.43-4.41,5.75-7.39 C20.26,4.95,19.79,4,18.95,4H5.04C4.21,4,3.74,4.95,4.25,5.61z"/>
|
|
|
|
<path d="M0,0h24v24H0V0z" fill="none"/>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</i>
|
|
|
|
</div>
|
|
|
|
<div class="uk-padding-small uk-padding-remove-top">
|
|
|
|
<div class="uk-text-right" ><a (click)="filterToggle=!filterToggle"> <i
|
|
|
|
class=" material-icons md-icon"></i>
|
|
|
|
</a></div>
|
|
|
|
<div class="uk-padding-small uk-padding-remove-top uk-overflow-auto" style="height:calc(100vh - 100px);">
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|