2022-10-18 14:28:04 +02:00
< div class = "uk-width-xlarge@l uk-width-large" >
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..."
2022-10-18 14:28:04 +02:00
[options]="showOptions.selectOptions" class="uk-width-2-5">< / div >
< div class = "uk-width-expand" input type = "text" [ ( value ) ] = " keyword " [ searchable ] = " true " placeholder = "Entities to link" [ hint ] = " ' Search for ' + openaireEntities . PROJECTS + ' . . . ' " > < / div >
2022-04-08 15:55:22 +02:00
< / advanced-search-input >
< / div >
2019-07-23 14:23:12 +02:00
< div * ngIf = "!showResults" >
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 >
< div * ngIf = "showResults" class = "uk-margin-top" >
2022-07-18 17:56:59 +02:00
< div class = "uk-grid" uk-grid >
2022-02-25 13:52:36 +01:00
< div class = "search-filters uk-width-1-1" >
2022-04-05 17:36:08 +02:00
<!-- <div *ngIf="countFilters()>0 && openaireResultsNum > 0" class="uk - grid uk - flex uk - flex - bottom">
2020-05-14 16:38:50 +02:00
< div class = "uk-grid" >
2020-10-13 21:04:50 +02:00
< h6 class = "uk-text-bold" > Filters< / h6 >
2020-05-14 16:38:50 +02:00
< a * ngIf = "countFilters()>1" ( click ) = " clearFilters ( ) "
[class]="((openaireResultsStatus ==
errorCodes.LOADING)?'uk-disabled uk-link-muted':'')+' portal-link '">
Clear All
< / a >
< / div >
< div * ngIf = "countFilters()>0" class = "uk-grid uk-grid-small uk-text-small uk-margin-small-top " uk-grid >
< 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 ] = " ( ( openaireResultsStatus = =
errorCodes.LOADING)?' 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 * 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) " >
2022-04-05 17:36:08 +02:00
< !– if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span – >
2020-05-14 16:38:50 +02:00
< span class = "selectedFilterLabel " >
< a [ class ] = " ( ( openaireResultsStatus = =
errorCodes.LOADING)?' 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 >
2022-04-05 17:36:08 +02:00
< / div > -->
2022-06-28 12:19:08 +02:00
<!-- <ng - container *ngIf="openaireResultsNum > 0"> -->
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"
role="alert">< span class = "loading-gif uk-align-center" > < / span > < / div >
< claim-results [ localStoragePrefix ] = " localStoragePrefix " [ results ] = openaireResults
[selectedResults]=selectedProjects [basketLimit]="basketLimit">< / claim-results >
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 >