2020-07-13 11:15:00 +02:00
|
|
|
<ng-template #selected_filters_pills>
|
2022-05-06 10:34:24 +02:00
|
|
|
<h1>
|
2022-07-17 15:01:39 +02:00
|
|
|
<div class="uk-slider filters-slider" uk-slider="finite: true">
|
2022-05-06 11:57:57 +02:00
|
|
|
<div [class.uk-invisible]="list.children.length === 0" class="uk-position-relative">
|
2022-07-17 15:01:39 +02:00
|
|
|
<div class="uk-slider-container">
|
2022-12-07 15:56:16 +01:00
|
|
|
<ul #list class="uk-slider-items uk-grid uk-grid-small uk-margin-small-right uk-flex-nowrap" style="padding-bottom: 1px">
|
2023-11-13 10:18:00 +01:00
|
|
|
<ng-container *ngFor="let customFilter of customFilters">
|
|
|
|
<ng-container *ngIf="customFilter.isHiddenFilter">
|
2022-04-21 15:28:09 +02:00
|
|
|
<li class="uk-flex uk-flex-middle">
|
2022-04-19 17:03:09 +02:00
|
|
|
<span class="uk-label uk-label-secondary uk-text-truncate">
|
|
|
|
{{customFilter.valueName}}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2023-11-13 10:18:00 +01:00
|
|
|
</ng-container>
|
2022-04-19 17:03:09 +02:00
|
|
|
<ng-container *ngIf="resultTypes && resultTypes.countSelectedValues > 0">
|
|
|
|
<ng-container *ngFor="let type of resultTypes.values; let i = index;">
|
|
|
|
<ng-container *ngIf="type.selected">
|
2022-04-20 10:01:18 +02:00
|
|
|
<li class="">
|
2022-04-19 17:03:09 +02:00
|
|
|
<span class="uk-label uk-label-primary uk-flex uk-flex-middle">
|
|
|
|
<span class="uk-margin-small-right uk-width-expand uk-text-truncate">{{type.name}}</span>
|
|
|
|
<button [class.uk-disabled]="disabled" (click)="removeResultType(type.id)" class="uk-close uk-icon" [disabled]="disabled">
|
|
|
|
<icon name="close" flex="true" ratio="0.7"></icon>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="selectedRangeFilters > 0">
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters ">
|
|
|
|
<ng-container *ngIf="filter.selectedFromAndToValues">
|
2022-04-20 10:01:18 +02:00
|
|
|
<li class="">
|
2022-04-19 17:03:09 +02:00
|
|
|
<span class="uk-label uk-label-primary uk-flex uk-flex-middle">
|
|
|
|
<span class="uk-margin-small-right uk-width-expand uk-text-truncate">{{filter.selectedFromAndToValues}}</span>
|
|
|
|
<button [class.uk-disabled]="disabled" (click)="removeRangeFilter(filter)" class="uk-close uk-icon" [disabled]="disabled">
|
|
|
|
<icon name="close" flex="true" ratio="0.7"></icon>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngFor="let filter of filters ">
|
|
|
|
<ng-container *ngIf="filter.countSelectedValues > 0">
|
|
|
|
<ng-container *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; ">
|
2023-11-13 10:18:00 +01:00
|
|
|
<li *ngIf="!customFilters || (customFilters[0].isHiddenFilter && customFilters[0].valueId != value.id)"
|
2022-04-20 10:01:18 +02:00
|
|
|
class="">
|
2022-04-19 17:03:09 +02:00
|
|
|
<span class="uk-label uk-label-primary uk-flex uk-flex-middle">
|
2022-05-30 11:44:39 +02:00
|
|
|
<span
|
|
|
|
class="uk-margin-small-right uk-width-expand uk-text-truncate">
|
|
|
|
<span *ngIf="filter.type && filter.type == 'boolean' else noboolean">{{filter.title}}:
|
|
|
|
{{value.name=='true'?'Yes':'No'}}
|
|
|
|
</span>
|
|
|
|
<ng-template #noboolean>
|
|
|
|
{{value.name}}
|
|
|
|
</ng-template></span>
|
2022-04-19 17:03:09 +02:00
|
|
|
<button [class.uk-disabled]="disabled" (click)="removeFilter(value, filter)" class="uk-close uk-icon" [disabled]="disabled">
|
|
|
|
<icon name="close" flex="true" ratio="0.7"></icon>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-07-17 15:01:39 +02:00
|
|
|
<a class="uk-position-center-left uk-blur-background" uk-slider-item="previous"><span uk-icon="chevron-left"></span></a>
|
|
|
|
<a class="uk-position-center-right uk-blur-background" uk-slider-item="next"><span uk-icon="chevron-right"></span></a>
|
2022-04-19 17:03:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-14 13:19:57 +02:00
|
|
|
</h1>
|
2020-07-13 11:15:00 +02:00
|
|
|
</ng-template>
|
2023-05-12 17:52:13 +02:00
|
|
|
|
|
|
|
<ng-template #search_filter let-filter="filter">
|
|
|
|
<search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"
|
|
|
|
[isDisabled]="disabled"
|
|
|
|
[filter]="filter" [showResultCount]=showResultCount
|
|
|
|
(onFilterChange)="filterChanged($event)"
|
|
|
|
[actionRoute]="true"></search-filter>
|
|
|
|
</ng-template>
|
|
|
|
|
2020-03-24 16:40:51 +01:00
|
|
|
<ng-template #filters_column>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div [class.filterLoading]="disabled">
|
|
|
|
<div class="uk-flex uk-flex-middle">
|
|
|
|
<h4 class="uk-margin-right uk-margin-remove-bottom">Filters</h4>
|
|
|
|
<a *ngIf="(selectedRangeFilters + selectedFilters + selectedTypesNum)>0"
|
2022-04-05 14:26:26 +02:00
|
|
|
(click)="clearFilters()" class="uk-text-small"
|
|
|
|
[class.uk-disabled]="disabled" [class.uk-link-muted]="disabled">
|
2020-06-05 14:56:28 +02:00
|
|
|
Clear All
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="searchUtils.refineStatus == errorCodes.LOADING && existingFiltersWithValues === 0"
|
2022-04-05 14:26:26 +02:00
|
|
|
class="uk-margin-top" role="alert">
|
2022-01-20 10:19:44 +01:00
|
|
|
<loading></loading>
|
2020-07-14 00:22:23 +02:00
|
|
|
</div>
|
2022-04-15 23:49:35 +02:00
|
|
|
<div *ngIf="searchUtils.refineStatus != errorCodes.LOADING && searchUtils.refineStatus != errorCodes.DONE && results.length > 0"
|
2022-03-02 22:48:21 +01:00
|
|
|
class="uk-margin-top uk-text-meta">
|
2022-01-20 10:19:44 +01:00
|
|
|
<span *ngIf="searchUtils.refineStatus == errorCodes.NONE">No filters available</span>
|
|
|
|
<span *ngIf="searchUtils.refineStatus != errorCodes.NONE" class="uk-text-warning">Filters temporarily unavailable. Please try again later.</span>
|
|
|
|
</div>
|
2022-02-14 17:02:00 +01:00
|
|
|
<ul *ngIf="!showUnknownFilters" class="uk-list uk-list-xlarge">
|
2023-05-12 17:52:13 +02:00
|
|
|
<li *ngIf="filters.length > 0 && getFilterById('resultbestaccessright') && getFilterById('resultbestaccessright').values.length >0">
|
|
|
|
<ng-container *ngTemplateOutlet="search_filter; context: {filter: getFilterById('resultbestaccessright')}"></ng-container>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="resultTypes && (filters.length > 0)">
|
|
|
|
<quick-selections [resultTypes]="resultTypes" (typeChange)="queryChanged($event)"
|
|
|
|
[isDisabled]="disabled" [vertical]="true"
|
|
|
|
[actionRoute]="true">
|
|
|
|
</quick-selections>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="filters.length > 0 && getFilterById('instancetypename') && getFilterById('instancetypename').values.length >0">
|
|
|
|
<ng-container *ngTemplateOutlet="search_filter; context: {filter: getFilterById('instancetypename')}"></ng-container>
|
2020-06-29 13:10:32 +02:00
|
|
|
</li>
|
2023-05-12 17:52:13 +02:00
|
|
|
<ng-container *ngIf="entityType == 'result'">
|
|
|
|
<li *ngFor="let filter of rangeFilters">
|
|
|
|
<range-filter [isDisabled]="disabled" [filter]="filter"
|
|
|
|
(onFilterChange)="filterChanged($event)" [actionRoute]="true"></range-filter>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-01-20 10:19:44 +01:00
|
|
|
<ng-container *ngFor="let filter of filters ">
|
2023-05-12 17:52:13 +02:00
|
|
|
<li *ngIf="filter.values && filter.values.length > 0
|
|
|
|
&& filter.filterId != 'resultbestaccessright' && filter.filterId != 'instancetypename' && filter.filterId != 'projectoamandatepublications'">
|
|
|
|
<!-- <search-filter [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline"-->
|
|
|
|
<!-- [isDisabled]="disabled"-->
|
|
|
|
<!-- [filter]="filter" [showResultCount]=showResultCount-->
|
|
|
|
<!-- (onFilterChange)="filterChanged($event)" [actionRoute]="true"></search-filter>-->
|
|
|
|
<ng-container *ngTemplateOutlet="search_filter; context: {filter: filter}"></ng-container>
|
2022-01-20 10:19:44 +01:00
|
|
|
</li>
|
|
|
|
</ng-container>
|
2023-05-12 17:52:13 +02:00
|
|
|
<ng-container *ngIf="entityType == 'project'">
|
|
|
|
<li *ngFor="let filter of rangeFilters">
|
|
|
|
<range-filter [isDisabled]="disabled" [filter]="filter"
|
|
|
|
(onFilterChange)="filterChanged($event)" [actionRoute]="true"></range-filter>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
<li *ngIf="filters.length > 0 && getFilterById('projectoamandatepublications') && getFilterById('projectoamandatepublications').values.length >0">
|
|
|
|
<ng-container *ngTemplateOutlet="search_filter; context: {filter: getFilterById('projectoamandatepublications')}"></ng-container>
|
2023-04-26 11:28:37 +02:00
|
|
|
</li>
|
2022-01-20 10:19:44 +01:00
|
|
|
</ul>
|
2020-10-20 11:11:15 +02:00
|
|
|
</div>
|
2020-03-24 16:40:51 +01:00
|
|
|
</ng-template>
|
2022-12-07 15:56:16 +01:00
|
|
|
<ng-template #sorting let-mobile="mobile">
|
|
|
|
<div *ngIf="searchUtils.totalResults > 10 || sort || searchUtils.totalResults > searchUtils.size ||
|
|
|
|
(!loadPaging && oldTotalResults > searchUtils.size && searchUtils.status == errorCodes.LOADING)"
|
|
|
|
class="uk-grid uk-flex-middle uk-child-width-1-1 uk-child-width-1-2@m" uk-grid>
|
|
|
|
<div>
|
|
|
|
<div class="uk-grid uk-flex-middle uk-grid-column-collapse" uk-grid>
|
|
|
|
<div *ngIf="searchUtils.totalResults > 10 && !mobile" class="uk-width-small uk-margin-right">
|
|
|
|
<div input type="select" placeholder="Results per page" inputClass="flat x-small"
|
|
|
|
[options]="pageOptions" [(value)]="searchUtils.size" [disabled]="disabled"
|
|
|
|
(valueChange)="sizeChanged($event)"></div>
|
|
|
|
</div>
|
|
|
|
<search-sorting *ngIf="sort && searchUtils.totalResults > 0"
|
|
|
|
[entityType]="entityType" [sortBy]="searchUtils.sortBy"
|
|
|
|
(sortByChange)="sortByChanged($event)"
|
|
|
|
[isDisabled]="disabled">
|
|
|
|
</search-sorting>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<search-paging *ngIf="!mobile" [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
|
|
|
|
[searchUtils]="searchUtils" [results]="results" [baseUrl]="searchUtils.baseUrl"
|
|
|
|
[parameterNames]="parameterNames" [parameterValues]="parameterValues"
|
|
|
|
[isDisabled]="disabled">
|
|
|
|
</search-paging>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
<ng-template #main let-mobile="mobile">
|
2023-05-19 13:37:23 +02:00
|
|
|
<div *ngIf="mobile && showRefine && (searchUtils.refineStatus != errorCodes.LOADING || existingFiltersWithValues !== 0)"
|
|
|
|
class="filters-toggle-button">
|
2023-05-08 16:10:51 +02:00
|
|
|
<button href="#mobile-filters" uk-toggle="target: #mobile-filters"
|
|
|
|
class="uk-icon-button uk-button-secondary uk-flex uk-flex-middle"
|
2023-05-19 13:37:23 +02:00
|
|
|
(click)="showOffCanvas = true; detectChanges()"
|
|
|
|
[disabled]="disabled"
|
|
|
|
[class.uk-disabled]="disabled">
|
2023-05-08 16:10:51 +02:00
|
|
|
<icon name="filters" [flex]="true" ratio="1.2" visuallyHidden="filters"></icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2022-12-07 15:56:16 +01:00
|
|
|
<!-- TODO - Clean up -->
|
2023-11-13 10:18:00 +01:00
|
|
|
<div *ngIf="!includeOnlyResultsAndFilter" [class]="usedBy != 'deposit' && usedBy != 'orcid' && (!customFilters || customFilters[0].queryFieldName != 'communityId') ?
|
2022-04-05 14:26:26 +02:00
|
|
|
(stickyForm?'':' ') :
|
2021-02-10 10:26:47 +01:00
|
|
|
(+ (stickyForm?'':' uk-section') +' uk-padding-remove-bottom uk-padding-remove-top ' +
|
|
|
|
((usedBy == 'deposit' || usedBy == 'orcid') ? ' uk-padding-remove-top ' : ' '))"
|
2023-08-23 09:40:05 +02:00
|
|
|
[attr.uk-sticky]="((stickyForm || (simpleView && mobile))?'{offset:100;start:90;cls-active:uk-active uk-sticky-below;cls-inactive:uk-sticky '+
|
2023-11-13 10:18:00 +01:00
|
|
|
(usedBy != 'deposit' && usedBy != 'orcid' && (!customFilters || customFilters[0].queryFieldName != 'communityId') ?
|
2020-10-23 20:04:56 +02:00
|
|
|
' uk-position-relative ' :(' uk-section ' ))+'}':null)">
|
2022-12-07 15:56:16 +01:00
|
|
|
<div class="uk-background-norepeat uk-background-bottom-center" [ngClass]="searchForm.class">
|
|
|
|
<div class="uk-width-1-1">
|
|
|
|
<div *ngIf="showBreadcrumb && !mobile" class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom" [class.uk-light]="searchForm.dark">
|
|
|
|
<div class="uk-margin-top">
|
|
|
|
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div class="uk-position-relative">
|
|
|
|
<div class="uk-container uk-section uk-section-small uk-margin-bottom" id="searchForm">
|
|
|
|
<div class="uk-grid uk-flex uk-flex-middle uk-flex-center" uk-grid>
|
|
|
|
<div [class]="'uk-width-1-1'+(simpleView?' uk-width-auto@m' : '')"><div id="searchImage"></div></div>
|
|
|
|
<advanced-search-form class="uk-width-expand uk-padding-remove-vertical"
|
|
|
|
[entityType]="entityType"
|
|
|
|
[fieldIds]="fieldIds"
|
|
|
|
[fieldIdsMap]="fieldIdsMap"
|
|
|
|
[selectedFields]="selectedFields"
|
|
|
|
(queryChange)="queryChanged($event)"
|
|
|
|
[isDisabled]="disabled"
|
|
|
|
[dark]="searchForm.dark"
|
|
|
|
[simpleSearchLink]="simpleSearchLink"
|
|
|
|
[advancedSearchLink]="advancedSearchLink"
|
|
|
|
[advancedSearchLinkParameters]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
|
|
|
[simpleView]="simpleView" [formPlaceholderText]="formPlaceholderText" [isMobile]="mobile"
|
|
|
|
[resultTypes]="resultTypes" [quickFilter]="quickFilter" [entitiesSelection]="entitiesSelection"
|
2023-11-13 10:18:00 +01:00
|
|
|
[showSwitchSearchLink]="showSwitchSearchLink" [customFilter]="customFilters[0]"
|
2022-12-07 15:56:16 +01:00
|
|
|
>
|
|
|
|
</advanced-search-form>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
</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>
|
2022-12-07 15:56:16 +01:00
|
|
|
<schema2jsonld *ngIf="url" [URL]="url" type="search" [name]=pageTitleWithFilters
|
|
|
|
[searchAction]=false [description]="metaDescription"></schema2jsonld>
|
|
|
|
<div id="tm-main" [class.uk-margin-medium-top]="!includeOnlyResultsAndFilter && properties.adminToolsPortalType != 'eosc'" [class.uk-margin-top]="stickyForm">
|
|
|
|
<ng-template #loading>
|
|
|
|
<loading class="uk-height-medium uk-display-block uk-margin-xlarge-top"></loading>
|
|
|
|
</ng-template>
|
|
|
|
<ng-template [ngIf]="searchUtils.refineStatus != errorCodes.LOADING || existingFiltersWithValues !== 0" [ngIfElse]="loading">
|
|
|
|
<div class="uk-container uk-container-large">
|
2022-11-28 13:37:37 +01:00
|
|
|
<div [class.uk-margin-top]="properties.adminToolsPortalType == 'eosc'" >
|
2020-06-05 14:56:28 +02:00
|
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
|
|
|
[texts]="pageContents['top']"></helper>
|
2023-05-12 17:52:13 +02:00
|
|
|
<!-- <div *ngIf="resultTypes" class="uk-flex uk-flex-center uk-padding-small uk-padding-remove-vertical uk-background-muted uk-border-rounded">-->
|
|
|
|
<!-- <quick-selections class="uk-margin-bottom uk-margin-top" [resultTypes]="resultTypes" (typeChange)="queryChanged($event)"-->
|
|
|
|
<!-- [isDisabled]="disabled" [actionRoute]="true">-->
|
|
|
|
<!-- </quick-selections>-->
|
|
|
|
<!-- </div>-->
|
2022-03-02 22:48:21 +01:00
|
|
|
<div [class]="showRefine? 'uk-width-4-5@m uk-width-4-5@l uk-width-1-1@s' :'uk-width-1-1'">
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="showRefine && mobile">
|
|
|
|
<div #mobileFilters id="mobile-filters" uk-offcanvas="overlay: true">
|
|
|
|
<div class="uk-offcanvas-bar uk-padding-remove-horizontal">
|
2023-05-19 13:37:23 +02:00
|
|
|
<a class="uk-offcanvas-close uk-icon uk-close" (click)="showOffCanvas=false; detectChanges()">
|
2022-06-17 01:57:56 +02:00
|
|
|
<icon name="close" ratio="1.5" visuallyHidden="close filters"></icon>
|
2022-01-20 10:19:44 +01:00
|
|
|
</a>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="showOffCanvas" class="uk-padding-small uk-padding-remove-vertical">
|
|
|
|
<div class="uk-margin-medium-top">
|
|
|
|
<ng-container *ngTemplateOutlet="sorting; context: {mobile: mobile}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div class="uk-margin-medium-top">
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
|
|
|
</div>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-15 23:49:35 +02:00
|
|
|
<div *ngIf="includeOnlyResultsAndFilter && showSwitchSearchLink && advancedSearchLink" class="uk-margin-medium-top uk-margin-medium-bottom">
|
|
|
|
<a routerLinkActive="router-link-active"
|
2022-12-07 15:56:16 +01:00
|
|
|
[routerLink]="advancedSearchLink" style="z-index:1;"
|
|
|
|
[queryParams]="this.routerHelper.createQueryParams(this.parameterNames, this.parameterValues)"
|
|
|
|
[class]="((disabled)?' uk-disabled uk-link-muted ':'') +'uk-link uk-float-right '">Advanced
|
2020-06-05 14:56:28 +02:00
|
|
|
search
|
2020-04-22 15:00:13 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-container" [class.uk-container-large]="!mobile" [class.uk-container-expand]="mobile" [class.uk-padding-remove-horizontal]="mobile">
|
|
|
|
<div class="uk-grid uk-margin-large-bottom" [class.uk-margin-top]="!mobile" uk-grid>
|
|
|
|
<div *ngIf="!mobile && showRefine && (results.length > 0 || (searchUtils.refineStatus == errorCodes.LOADING && searchUtils.status != errorCodes.LOADING) || (!hideFilters &&
|
|
|
|
(existingFiltersWithValues > 0 || (selectedRangeFilters + selectedFilters + selectedTypesNum) > 0))) "
|
|
|
|
class="uk-width-1-4@m search-filters">
|
|
|
|
<ng-container *ngTemplateOutlet="filters_column; context: {}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-expand@m uk-with-1-1@s">
|
|
|
|
<div [class.uk-padding-small]="mobile" class="uk-padding-remove-vertical">
|
2022-01-21 09:20:46 +01:00
|
|
|
<!-- Related results for Custom Filter Alert -->
|
|
|
|
<div *ngIf="openaireLink && (searchUtils.totalResults > 0 || !loadPaging )"
|
2022-12-07 15:56:16 +01:00
|
|
|
class="uk-alert uk-margin-small-top ">
|
2023-11-13 10:18:00 +01:00
|
|
|
<ng-container *ngFor="let customFilter of customFilters">
|
|
|
|
<span *ngIf="customFilter.showFilterMessage">The following results are related to <span class="uk-text-primary uk-text-bold"
|
2022-01-21 09:20:46 +01:00
|
|
|
>{{customFilter.valueName}}</span>.</span>
|
2023-11-13 10:18:00 +01:00
|
|
|
</ng-container>
|
2022-03-02 22:48:21 +01:00
|
|
|
Are you interested to view more results? Visit
|
2022-01-21 09:20:46 +01:00
|
|
|
<a
|
|
|
|
class="uk-margin-top uk-link"
|
|
|
|
[href]="openaireLink+this.routerHelper.createQueryParamsString(this.parameterNames, this.parameterValues)"
|
|
|
|
target="_blank"> OpenAIRE - Explore</a>.
|
|
|
|
</div>
|
2023-02-22 15:43:51 +01:00
|
|
|
<div class="uk-flex uk-flex-middle uk-flex-wrap uk-child-width-1-1 uk-child-width-auto@m" [class.uk-flex-between]="!mobile"
|
|
|
|
[class.uk-margin-top]="mobile">
|
2022-04-15 10:08:12 +02:00
|
|
|
<!-- Total results, number of pages -->
|
2023-12-07 10:36:44 +01:00
|
|
|
<div class="uk-width-expand@m uk-margin-remove-bottom uk-text-truncate uk-margin-medium-right" [class.uk-h6]="!mobile" [class.uk-text-center]="mobile">
|
2022-04-15 10:08:12 +02:00
|
|
|
<ng-container *ngIf="results && searchUtils.totalResults > 0">
|
|
|
|
<span>{{searchUtils.totalResults|number}}</span>
|
2023-04-10 10:51:18 +02:00
|
|
|
<span class="uk-text-meta uk-text-capitalize"> {{type}}</span>
|
|
|
|
<ng-container *ngIf="searchTerm && simpleView">
|
|
|
|
<span class="uk-text-meta"> for </span>
|
|
|
|
<span class="uk-text-bold">{{searchTerm}}</span>
|
|
|
|
</ng-container>
|
2023-05-02 11:11:25 +02:00
|
|
|
<ng-container *ngIf="!simpleView && advancedSearchTerms > 0">
|
2023-04-10 10:51:18 +02:00
|
|
|
<span class="uk-text-bold"> ({{advancedSearchTerms}} rule{{advancedSearchTerms == 1 ? '' : 's'}} applied)</span>
|
2023-05-02 11:11:25 +02:00
|
|
|
</ng-container>
|
2022-04-15 10:08:12 +02:00
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!loadPaging && oldTotalResults > 0 && searchUtils.status == errorCodes.LOADING">
|
|
|
|
<span>{{oldTotalResults|number}}</span>
|
2022-04-16 00:10:34 +02:00
|
|
|
<span class="uk-text-meta uk-text-capitalize"> {{type}}, page </span>
|
2022-04-15 10:08:12 +02:00
|
|
|
<span>{{searchUtils.page | number}}</span>
|
2022-04-16 00:10:34 +02:00
|
|
|
<span class="uk-text-meta"> of {{(totalPages(oldTotalResults)|number)}}</span>
|
2022-04-15 10:08:12 +02:00
|
|
|
</ng-container>
|
2023-02-17 18:40:05 +01:00
|
|
|
</div>
|
2022-04-15 10:08:12 +02:00
|
|
|
<!-- Download results -->
|
2023-02-17 18:40:05 +01:00
|
|
|
<div *ngIf="showDownload && (searchUtils.status !== errorCodes.LOADING || !loadPaging)"
|
2023-02-22 15:43:51 +01:00
|
|
|
class="uk-margin-small-bottom uk-flex uk-margin-small-top" [class.uk-flex-center]="mobile" [class.uk-margin-medium-top]="mobile">
|
2022-04-15 10:08:12 +02:00
|
|
|
<search-download
|
|
|
|
*ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
|
|
|
|
[isDisabled]="disabled"
|
2023-07-12 14:05:25 +02:00
|
|
|
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
2022-04-15 10:08:12 +02:00
|
|
|
</search-download>
|
2023-12-07 10:36:44 +01:00
|
|
|
<ng-container *ngIf="properties.zenodoDumpUrl && entityType == 'result'">
|
|
|
|
<button [href]="properties.zenodoDumpUrl" target="_blank" class=" uk-margin-left uk-button uk-button-link uk-flex uk-flex-middle uk-text-capitalize">
|
|
|
|
<img src="assets/common-assets/common/zenodoDump.png" width="20px"><span class="uk-margin-xsmall-left">Data dump</span></button>
|
|
|
|
</ng-container>
|
2022-04-15 10:08:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="(searchUtils.status !== errorCodes.LOADING || !loadPaging) && !mobile" class="uk-margin-top">
|
2022-01-21 09:20:46 +01:00
|
|
|
<ng-container *ngTemplateOutlet="selected_filters_pills;"></ng-container>
|
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="!mobile" class="uk-margin-medium-topuk-margin-medium-top">
|
|
|
|
<ng-container *ngTemplateOutlet="sorting; context: {mobile: mobile}"></ng-container>
|
2022-01-21 09:20:46 +01:00
|
|
|
</div>
|
|
|
|
<div [class]="searchUtils.page > pagingLimit ? 'search-results' : ''"
|
|
|
|
*ngIf="(searchUtils.page >= pagingLimit) && (searchUtils.totalResults > searchUtils.size*pagingLimit)">
|
2022-04-15 23:49:35 +02:00
|
|
|
<p class="uk-alert uk-alert-warning" uk-alert>For more results please try a new, more specific query</p>
|
2022-01-21 09:20:46 +01:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="(searchUtils.page <= pagingLimit) || (searchUtils.totalResults <= searchUtils.size*pagingLimit)" class="uk-margin">
|
|
|
|
<search-result *ngIf="( entityType !='community' && entityType != 'stakeholder') && usedBy == 'search'"
|
|
|
|
[results]="results"
|
|
|
|
[status]=searchUtils.status
|
|
|
|
[type]="entityType"
|
|
|
|
[showLoading]="true" [properties]=properties>
|
|
|
|
</search-result>
|
|
|
|
<deposit-result *ngIf="usedBy == 'deposit'"
|
|
|
|
[results]="results"
|
|
|
|
[status]="searchUtils.status"
|
|
|
|
[type]="entityType"
|
|
|
|
[zenodoInformation]="zenodoInformation"
|
2023-11-08 21:40:04 +01:00
|
|
|
[properties]=properties
|
|
|
|
[isMobile]="mobile">
|
2022-12-07 15:56:16 +01:00
|
|
|
</deposit-result>
|
|
|
|
<orcid-result *ngIf="usedBy == 'orcid'"
|
|
|
|
[results]="results"
|
|
|
|
[status]="searchUtils.status"
|
|
|
|
[type]="entityType"
|
|
|
|
[properties]=properties>
|
|
|
|
</orcid-result>
|
|
|
|
<portal-search-result
|
|
|
|
*ngIf="(entityType == 'community' || entityType == 'stakeholder') && usedBy == 'search'"
|
|
|
|
[results]="results"
|
|
|
|
[status]="searchUtils.status"
|
|
|
|
[type]="entityType"
|
|
|
|
[showType]="entityType == 'stakeholder'" [isMobile]="mobile"
|
|
|
|
[showLoading]="true" [properties]=properties>
|
|
|
|
</portal-search-result>
|
|
|
|
</div>
|
|
|
|
<div [class.uk-padding-small]="mobile" class="uk-padding-remove-vertical">
|
2022-01-21 09:20:46 +01:00
|
|
|
<div class="uk-margin-medium-top">
|
|
|
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults"
|
2022-12-07 15:56:16 +01:00
|
|
|
[searchUtils]="searchUtils" [results]="results" [baseUrl]="searchUtils.baseUrl"
|
|
|
|
[parameterNames]="parameterNames" [parameterValues]="parameterValues"
|
|
|
|
[isDisabled]="disabled" [isMobile]="mobile">
|
2022-01-21 09:20:46 +01:00
|
|
|
</search-paging>
|
|
|
|
</div>
|
2023-03-28 18:27:02 +02:00
|
|
|
<div *ngIf="showIndexInfo && searchUtils.status !== errorCodes.LOADING" class="uk-margin-large-top uk-flex uk-flex-between uk-flex-wrap uk-text-small">
|
2022-01-21 09:20:46 +01:00
|
|
|
<!-- Last Index Info-->
|
2023-03-28 18:27:02 +02:00
|
|
|
<a href="https://graph.openaire.eu" target="_blank" class="uk-width-1-1 uk-width-auto@m">
|
|
|
|
<img src="assets/common-assets/openaire-badge-1.png" alt="Powered by OpenAIRE graph" style="height: 17px;">
|
|
|
|
</a>
|
|
|
|
<div class="uk-width-1-1 uk-width-auto@m">
|
2022-12-07 15:56:16 +01:00
|
|
|
<span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-meta">
|
|
|
|
<a *ngIf="properties.showLastIndexInformationLink" class="uk-link" [href]="properties.lastIndexInformationLink" target="_blank">Last update</a>
|
|
|
|
<span *ngIf="!(properties.showLastIndexInformationLink)">Last update</span>
|
|
|
|
of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
|
|
|
|
</span>
|
2022-01-21 09:20:46 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-02 22:48:21 +01:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
|
|
|
[texts]="pageContents['bottom']"></helper>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
</ng-template>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
<div *ngIf="!isMobile" class="uk-visible@m">
|
|
|
|
<ng-container *ngTemplateOutlet="main; context: {mobile: false}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="isMobile || isServer" class="uk-hidden@m">
|
|
|
|
<ng-container *ngTemplateOutlet="main; context: {mobile: true}"></ng-container>
|
2020-01-31 16:12:51 +01:00
|
|
|
</div>
|