2019-07-23 14:23:12 +02:00
|
|
|
<form class=" uk-margin-top uk-animation ">
|
2019-07-24 17:46:49 +02:00
|
|
|
<div class="uk-margin-small-bottom">Start searching for projects and add them to the basket to link them to your sources
|
2019-07-23 14:23:12 +02:00
|
|
|
<!-- <helper div="link-project-form" tooltip=true></helper> -->
|
|
|
|
</div>
|
|
|
|
|
2020-05-14 16:38:50 +02:00
|
|
|
<!-- <input class=" uk-input uk-width-large" [(ngModel)]="keyword" name="keyword" placeholder="Search for projects..."/>-->
|
|
|
|
<div class="uk-inline">
|
|
|
|
<a *ngIf="keyword.length > 0" class="uk-form-icon uk-form-icon-flip"
|
|
|
|
(click)="keyword = ''"
|
|
|
|
uk-icon="icon: close"></a>
|
|
|
|
<input type="text" class="uk-input uk-width-xlarge@l uk-width-large@m uk-width-medium"
|
|
|
|
placeholder="Search for projects..." aria-describedby="sizing-addon2"
|
|
|
|
[(ngModel)]="keyword" name="keyword">
|
|
|
|
</div>
|
2020-05-11 11:37:00 +02:00
|
|
|
<span class="input-group-btn space">
|
2019-07-23 14:23:12 +02:00
|
|
|
<button (click)="search(page,size)" type="submit" class=" uk-button portal-button">Search</button>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
<div *ngIf="!showResults">
|
|
|
|
<div class="uk-text-center uk-text-large uk-text-muted uk-margin-large-top">No project results yet... <br>Start
|
|
|
|
searching for projects to add them in the Basket
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="showResults" class="uk-margin-top">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="uk-grid">
|
|
|
|
<div class="search-filters uk-width-medium">
|
|
|
|
<!-- <div class="uk-width-1-1 uk-margin-small-bottom ">
|
|
|
|
|
|
|
|
<div *ngIf="countFilters()>0" class="uk-margin-small-bottom">
|
|
|
|
|
|
|
|
<span *ngIf = "searchUtils.keyword.length > 0"><span class="uk-text-bold">Keywords:</span>
|
|
|
|
<a (click) = "clearKeywords() " title="Remove keywords" [class]="((disableForms)?' uk-disabled':' ')+' portal-color '"><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></a>
|
|
|
|
<span [innerHtml]="searchUtils.keyword"></span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<div *ngFor="let filter of filters " >
|
|
|
|
<span *ngIf = "filter.countSelectedValues > 0"> <span class="uk-text-bold">{{filter.title}}:</span>
|
|
|
|
<span *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; " >
|
|
|
|
<a [title]="'Remove '+value.name"(click) = "removeFilter(value, filter) " [class]="((disableForms)?' uk-disabled':' ')+' portal-color '"><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></a>
|
|
|
|
<span [innerHtml]="(value.name.length > 25)?value.name.substring(0,25)+'...':value.name" [title]="value.name"></span><span *ngIf="!end" class=" ">, </span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="uk-margin-small-bottom uk-margin-small-top uk-grid">
|
|
|
|
<a *ngIf="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
|
|
Clear All
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div> -->
|
2020-05-14 16:38:50 +02:00
|
|
|
<div *ngIf="countFilters()>0" class="uk-grid uk-flex uk-flex-bottom">
|
|
|
|
<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) " >
|
|
|
|
<!-- if no grid on the div above, remove it and move class 'selectedFilterLabel' on top span -->
|
|
|
|
<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>
|
|
|
|
</div>
|
2019-07-23 14:23:12 +02:00
|
|
|
|
2020-05-14 16:38:50 +02:00
|
|
|
<!--<ul class="uk-list">
|
2019-07-23 14:23:12 +02:00
|
|
|
<li class="uk-open">
|
2020-10-13 21:04:50 +02:00
|
|
|
<h6 class="uk-margin-bottom-remove ">Active between
|
|
|
|
</h6>
|
2019-07-23 14:23:12 +02:00
|
|
|
<div aria-expanded="false">
|
|
|
|
<div class="searchFilterBoxValues ">
|
|
|
|
<form class="uk-inline">
|
|
|
|
|
|
|
|
<input class=" uk-input uk-width-2-5" [(ngModel)]="startYear" name="keyword"
|
2020-05-14 16:38:50 +02:00
|
|
|
placeholder="Year (e.g 1990)"/>
|
2019-07-23 14:23:12 +02:00
|
|
|
<input class=" uk-input uk-width-2-5" [(ngModel)]="endYear" name="keyword"
|
2020-05-14 16:38:50 +02:00
|
|
|
placeholder="Year (e.g 1990)"/>
|
2019-07-23 14:23:12 +02:00
|
|
|
<button type="submit" (click)="yearChanged()" style="cursor: pointer;" class="uk-icon"><svg width="20"
|
|
|
|
height="20"
|
|
|
|
viewBox="0 0 20 20"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
icon="chevron-right"
|
|
|
|
ratio="1"><polyline
|
|
|
|
fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg></button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
2020-05-14 16:38:50 +02:00
|
|
|
</ul>-->
|
|
|
|
<ng-container *ngFor="let filter of rangeFilters">
|
|
|
|
<li>
|
|
|
|
<range-filter [isDisabled]="openaireResultsStatus ==
|
|
|
|
errorCodes.LOADING" [filter]="filter" (onFilterChange)="dateFilterChanged(filter)"
|
|
|
|
[showQuickButtons]="false"
|
|
|
|
></range-filter>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2019-07-23 14:23:12 +02:00
|
|
|
<search-filter *ngFor="let filter of filters " [isDisabled]="false" [filter]="filter" [showResultCount]=true
|
2020-10-20 11:11:15 +02:00
|
|
|
(onFilterChange)="filterChanged($event)" [actionRoute]="false"></search-filter>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
<div class="uk-width-expand@m uk-width-1-1@s uk-first-column">
|
2020-05-14 16:38:50 +02:00
|
|
|
<!-- <div *ngIf="openaireResultsNum != null && openaireResultsNum > 0" class="uk-clearfix portal-hr ">
|
2019-07-23 14:23:12 +02:00
|
|
|
<div class="uk-grid">
|
|
|
|
<div *ngIf="openaireResultsNum>0" class="uk-width-1-2">
|
|
|
|
<span class="portal-color">{{openaireResultsNum|number}}</span> projects, page <span
|
|
|
|
class="portal-color">{{openaireResultsPage | number}}</span> of <span
|
|
|
|
class="portal-color">{{totalPages(openaireResultsNum)|number}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-1-2 uk-padding-remove">
|
|
|
|
<paging-no-load class="uk-float-right" [currentPage]="openaireResultsPage"
|
|
|
|
[totalResults]="openaireResultsNum" [term]="keyword" [size]="size"
|
|
|
|
(pageChange)="openaireResultsPageChange($event)"></paging-no-load>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-14 16:38:50 +02:00
|
|
|
</div>-->
|
|
|
|
<div *ngIf="openaireResultsNum != null && openaireResultsNum > 0" class="uk-clearfix ">
|
|
|
|
<div class= "paging-hr searchPaging uk-margin-small-bottom"
|
|
|
|
*ngIf="(openaireResultsNum > 0) || (openaireResultsStatus == errorCodes.LOADING)">
|
|
|
|
<div class="uk-panel uk-margin-small-top uk-grid uk-flex uk-flex-middle">
|
|
|
|
<div class="uk-width-1-1@s uk-width-1-2@m uk-text-uppercase"
|
|
|
|
*ngIf="openaireResultsNum > 0">
|
|
|
|
{{openaireResultsNum|number}}
|
|
|
|
<span class="uk-text-muted uk-text-uppercase"> projects, page </span>
|
|
|
|
{{openaireResultsPage | number}}
|
|
|
|
<span class="uk-text-muted uk-text-uppercase"> of </span>
|
|
|
|
{{(totalPages(openaireResultsNum)|number)}}
|
|
|
|
</div>
|
|
|
|
<div class="float-children-right-at-medium margin-small-top-at-small uk-width-expand uk-padding-remove-left">
|
|
|
|
<paging-no-load class="uk-float-right" [currentPage]="openaireResultsPage"
|
|
|
|
[totalResults]="openaireResultsNum" [term]="keyword"
|
|
|
|
[size]="size" (pageChange)="openaireResultsPageChange($event)"></paging-no-load>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
<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
|
2019-07-24 14:46:29 +02:00
|
|
|
[selectedResults]=selectedProjects [basketLimit]="basketLimit"></claim-results>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|