2024-05-28 11:09:21 +02:00
|
|
|
<div class="uk-width-expand" [ngClass]="centerAlign ? 'uk-align-center':''">
|
2022-04-08 15:55:22 +02:00
|
|
|
<advanced-search-input (searchEmitter)="search(page,size)">
|
|
|
|
<div input type="select" [(value)]="showOptions.show" placeholder="Type" hint="Select..."
|
2024-05-28 11:09:21 +02:00
|
|
|
[options]="showOptions.selectOptions" class="uk-width-medium@xl uk-width-auto"></div>
|
2024-05-22 13:48:13 +02:00
|
|
|
<div *ngIf="funderOptions && funderOptions.length > 0" input type="select" [(value)]="selectedFunder" placeholder="Funder" hint="Select Funder..."
|
|
|
|
[options]="funderOptions" class="uk-width-expand" (valueChange)="funderChanged($event)"></div>
|
2024-05-28 11:09:21 +02:00
|
|
|
<div class="uk-width-expand" input type="text" [(value)]="keyword" [searchable]="true" placeholder="Projects to link"
|
|
|
|
[hint]="'Search for ' + openaireEntities.PROJECTS + '...'" tooltip="true" [disabled]="isNoProjectFunder"></div>
|
2022-04-08 15:55:22 +02:00
|
|
|
</advanced-search-input>
|
|
|
|
</div>
|
2024-05-22 13:48:13 +02:00
|
|
|
<div *ngIf=" openaireResultsStatus != errorCodes.LOADING && !isNoProjectFunder && this.selectedFunder && openaireResults.length == 0">
|
2022-05-16 16:25:35 +02:00
|
|
|
<div class="uk-text-center uk-text-large uk-text-meta uk-margin-large-top">No {{openaireEntities.PROJECT.toLowerCase()}} results yet... <br>Start
|
2022-04-08 15:55:22 +02:00
|
|
|
searching for {{openaireEntities.PROJECTS.toLowerCase()}} to add them in the Basket
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-22 13:48:13 +02:00
|
|
|
<div *ngIf=" openaireResultsStatus != errorCodes.LOADING && this.funderOptions.length > 1 && !this.selectedFunder">
|
2024-05-28 11:09:21 +02:00
|
|
|
<div class="uk-text-center uk-text-large uk-text-meta uk-margin-large-top">Select funder or search for projects to proceed
|
2024-05-22 13:48:13 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-margin-top">
|
2022-07-18 17:56:59 +02:00
|
|
|
<div class="uk-grid" uk-grid>
|
2024-05-22 13:48:13 +02:00
|
|
|
<div *ngIf="!isNoProjectFunder && openaireResultsStatus != errorCodes.LOADING && openaireResultsNum > 1 " class="search-filters uk-width-1-1">
|
2022-07-18 17:56:59 +02:00
|
|
|
<div class="uk-grid uk-grid-small" uk-grid>
|
2022-02-25 13:52:36 +01:00
|
|
|
<ng-container *ngFor="let filter of rangeFilters">
|
2022-07-18 17:56:59 +02:00
|
|
|
<div>
|
|
|
|
<dropdown-filter [name]="filter.selectedFromAndToValues?filter.selectedFromAndToValues:filter.title"
|
|
|
|
dropdownMinWidth="450">
|
|
|
|
<div class="uk-padding-small">
|
|
|
|
<range-filter [isDisabled]="openaireResultsStatus == errorCodes.LOADING"
|
|
|
|
[filter]="filter" (onFilterChange)="dateFilterChanged(filter)"
|
|
|
|
[showQuickButtons]="false"
|
2022-03-16 17:54:22 +01:00
|
|
|
></range-filter>
|
|
|
|
</div>
|
2022-07-18 17:56:59 +02:00
|
|
|
</dropdown-filter>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
2022-02-25 13:52:36 +01:00
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngFor="let filter of filters ">
|
2022-07-18 17:56:59 +02:00
|
|
|
<div>
|
|
|
|
<dropdown-filter [count]="filter.countSelectedValues" [name]="filter.title"
|
|
|
|
dropdownMinWidth="450">
|
|
|
|
<div class="uk-padding-small">
|
|
|
|
<search-filter [isDisabled]="openaireResultsStatus == errorCodes.LOADING"
|
|
|
|
[filter]="filter" [filterValuesNum]="0" [showResultCount]=true
|
|
|
|
(onFilterChange)="filterChanged($event)" [actionRoute]="false"></search-filter>
|
2022-03-16 17:54:22 +01:00
|
|
|
</div>
|
2022-07-18 17:56:59 +02:00
|
|
|
</dropdown-filter>
|
2022-02-25 13:52:36 +01:00
|
|
|
</div>
|
|
|
|
</ng-container>
|
2022-07-18 17:56:59 +02:00
|
|
|
</div>
|
2022-06-28 12:19:08 +02:00
|
|
|
<!-- </ng-container>-->
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
<div class="uk-width-expand@m uk-width-1-1@s uk-first-column">
|
2022-06-28 12:19:08 +02:00
|
|
|
<div *ngIf="openaireResultsStatus == errorCodes.NONE" class="uk-alert uk-alert-primary"
|
|
|
|
role="alert">No Results found
|
|
|
|
</div>
|
|
|
|
<div *ngIf="openaireResultsStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning"
|
|
|
|
role="alert">An Error Occured
|
|
|
|
</div>
|
|
|
|
<div *ngIf="openaireResultsStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger"
|
|
|
|
role="alert">Service not available
|
|
|
|
</div>
|
2022-03-02 17:08:37 +01:00
|
|
|
<div *ngIf="openaireResultsStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1"
|
2024-05-22 13:48:13 +02:00
|
|
|
role="alert">
|
|
|
|
<loading></loading>
|
|
|
|
</div>
|
2022-03-02 17:08:37 +01:00
|
|
|
<claim-results [localStoragePrefix]="localStoragePrefix" [results]=openaireResults
|
|
|
|
[selectedResults]=selectedProjects [basketLimit]="basketLimit"></claim-results>
|
2024-05-28 11:09:21 +02:00
|
|
|
<div *ngIf="isNoProjectFunder && openaireResultsStatus != errorCodes.LOADING " class="uk-alert uk-alert-default">No projects for funder <span class=" uk-text-bold">{{selectedFunder.name}}</span>. </div>
|
2022-04-08 15:55:22 +02:00
|
|
|
<div *ngIf="openaireResultsNum != null && openaireResultsNum > 0 && openaireResultsStatus != errorCodes.LOADING " class="uk-flex uk-flex-center ">
|
|
|
|
<paging-no-load [currentPage]="openaireResultsPage"
|
2020-05-14 16:38:50 +02:00
|
|
|
[totalResults]="openaireResultsNum" [term]="keyword"
|
|
|
|
[size]="size" (pageChange)="openaireResultsPageChange($event)"></paging-no-load>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|