253 lines
22 KiB
HTML
253 lines
22 KiB
HTML
<!--<div *ngIf="searchFormClass == 'communitiesSearchForm'" class="image-front-topbar uk-section-default" uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}" tm-header-transparent="light">-->
|
|
<!-- <div [class]="usedBy == 'deposit' ? 'uk-margin-large-bottom ' : 'searchFormMinHeight uk-padding-remove-bottom' + ' uk-background-norepeat uk-background-bottom-center uk-section uk-flex uk-flex-middle uk-background-fixed '+searchFormClass">-->
|
|
<!-- <div [class]="'uk-container uk-position-relative uk-margin-large-top' + (usedBy == 'deposit' ? ' uk-container-large' : '')">-->
|
|
<!-- <div class="uk-width-1-1">-->
|
|
<!-- <!–link to advanced search –>-->
|
|
<!-- <a *ngIf = "advancedSearchLink && advancedSearchLink.length > 0" routerLinkActive="router-link-active" [class]="((disableForms)?'uk-float-right uk-disabled uk-link-muted uk-light ':'uk-float-right uk-light') +' portal-color uk-margin-small-bottom'" [routerLink]=advancedSearchLink [queryParams]=advancedSearchParameters >-->
|
|
<!-- <span class=" ">Advanced search</span>-->
|
|
<!-- </a>-->
|
|
<!-- <search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)" [placeholderText]="formPlaceholderText"></search-form>-->
|
|
|
|
<!-- </div>-->
|
|
<!-- <div *ngIf="entityType === 'community'" class="uk-position-center-right-out">-->
|
|
<!-- <img src="../../../../assets/banner/search.png" class="uk-align-center" width="141" height="171">-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<!--</div>-->
|
|
|
|
|
|
<div [class]="usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ?
|
|
' image-front-topbar uk-section-default ' : (' uk-section uk-padding-remove-bottom uk-padding-remove-top ' + (usedBy
|
|
== 'deposit' ? ' uk-padding-remove-top ' : ' '))"
|
|
uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}" tm-header-transparent="light">
|
|
<div [class]="' uk-background-norepeat uk-background-bottom-center uk-section uk-flex uk-flex-middle uk-background-fixed '+searchFormClass
|
|
+ (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ? ' searchFormMinHeight uk-padding-remove-bottom ' : ' uk-margin-medium-bottom uk-section-small ')
|
|
+ (usedBy == 'deposit' ? ' uk-padding-remove uk-margin-large-bottom uk-margin-large-top ' : '')">
|
|
<div [class]="' uk-container uk-position-relative '
|
|
+ (usedBy != 'deposit' && (!customFilter || customFilter.queryFieldName != 'communityId') ? ' uk-margin-large-top ' : '')
|
|
+ (usedBy == 'deposit' ? ' uk-container-large' : '')">
|
|
<div>
|
|
<a *ngIf = "advancedSearchLink && advancedSearchLink.length > 0" routerLinkActive="router-link-active"
|
|
[class]="((disableForms)?'uk-float-right uk-disabled uk-link-muted ':'uk-float-right ')
|
|
+' uk-margin-small-bottom'" [routerLink]=advancedSearchLink [queryParams]=advancedSearchParameters >
|
|
<span class=" ">Advanced search</span>
|
|
</a>
|
|
<search-form [isDisabled]="disableForms" [(keyword)]="searchUtils.keyword" (keywordChange)="keywordChanged($event)" [placeholderText]="formPlaceholderText"></search-form>
|
|
</div>
|
|
<div *ngIf="entityType === 'community' ||entityType === 'funder' " class="uk-position-center-right-out">
|
|
<img src="assets/common-assets/common/search.png" class="uk-align-center" width="141" height="171">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<schema2jsonld [URL]="properties.baseLink+baseUrl" type="search" [name]=pageTitle></schema2jsonld>
|
|
|
|
<div id="tm-main" class=" uk-section uk-padding-remove-top tm-middle">
|
|
<div *ngIf="breadcrumbs" class="uk-container uk-margin-small-top">
|
|
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
|
</div>
|
|
<div uk-grid >
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
<div class="">
|
|
<div [class]="'uk-container' + (usedBy == 'deposit' ? ' uk-container-large' : '')">
|
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']"></helper>
|
|
<div [class]="(showRefine)? 'uk-width-4-5@m uk-width-4-5@l uk-width-1-1@s' :'uk-width-1-1'">
|
|
<div *ngIf="showRefine" class="uk-offcanvas-content uk-hidden@m">
|
|
|
|
<a href="#offcanvas-usage" uk-toggle><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></a>
|
|
|
|
<div id="offcanvas-usage" uk-offcanvas>
|
|
<div class="uk-offcanvas-bar">
|
|
<button class="uk-offcanvas-close" type="button" uk-close></button>
|
|
<div class="uk-width-1-1 uk-margin-small-bottom uk-margin-top">
|
|
|
|
<span *ngIf="tableViewLink || mapUrl" 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>
|
|
<search-dataprovider-map *ngIf= "!showUnknownFilters" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [mapUrl]="mapUrl" [mapTooltipType]="mapTooltipType"></search-dataprovider-map>
|
|
</span>
|
|
<search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=
|
|
'community' && entityType != 'funder') && usedBy == 'search'"
|
|
class="uk-width-1-2" [isDisabled]="loadPaging" [type]="csvPath"
|
|
[csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
|
</search-download>
|
|
|
|
<div *ngIf="countFilters()>0" class="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="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
Clear All
|
|
</a>
|
|
</div>
|
|
|
|
<span *ngIf = "searchUtils.keyword.length > 0"><span class="uk-text-bold">Keywords:</span>
|
|
<a (click) = "clearKeywords() " title="Remove keywords" [class]="((disableForms)?' uk-disabled':' ')+' uk-margin-small-right 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= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>
|
|
</div>
|
|
|
|
</div>
|
|
<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>
|
|
<div class="uk-text-large">Filter By:</div>
|
|
<search-filter *ngFor="let filter of filters " [addShowMore]=false [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="uk-grid uk-width-1-1">
|
|
<div *ngIf="showRefine" class="uk-margin-top uk-width-1-4@m search-filters uk-visible@m">
|
|
<!-- top: #container-1; bottom: #true; -->
|
|
<!-- <div id="container-1" style="z-index: -1;" uk-sticky="top: #container-1; offset: 120; "> -->
|
|
<span *ngIf="tableViewLink || mapUrl" 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>
|
|
<search-dataprovider-map *ngIf= "!showUnknownFilters" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [mapUrl]="mapUrl" [mapTooltipType]="mapTooltipType"></search-dataprovider-map>
|
|
</span>
|
|
<search-download *ngIf= "!showUnknownFilters && searchUtils.totalResults > 0 && ( entityType !=
|
|
'community' && entityType != 'funder') && usedBy == 'search'"
|
|
class="uk-width-1-2" [isDisabled]="loadPaging"
|
|
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
|
</search-download>
|
|
|
|
<div class="uk-width-1-1 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="countFilters()>1" (click)="clearFilters()" [class]="((disableForms)?'uk-disabled uk-link-muted':'')+' portal-link ' + 'uk-width-1-2'">
|
|
Clear All
|
|
</a>
|
|
</div>
|
|
|
|
<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>
|
|
<label *ngFor="let value of getSelectedValues(filter); let i = index; let end = last; "
|
|
[title]="'Remove '+value.name" (click) = "removeFilter(value, filter) ">
|
|
<a [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"></span><span *ngIf="!end" class=" ">, </span>
|
|
</label>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<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 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
|
|
<span class="uk-text-meta">No filters available</span>
|
|
</div>
|
|
<search-filter *ngFor="let filter of filters " [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>
|
|
</div>
|
|
<!-- </div> -->
|
|
<div class="uk-width-expand@m uk-width-1-1@s uk-first-column">
|
|
<!-- <div [class]="(showRefine)?'uk-width-expand@m uk-first-column':''" > -->
|
|
<div *ngIf="openaireLink"> <a class="uk-margin-top uk-button uk-button-text" [href]=openaireLink 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">
|
|
<!-- <search-results-per-page class="uk-width-1-2@m uk-width-1-1" [(searchUtils)] = "searchUtils" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-results-per-page> -->
|
|
<!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(searchUtils)] = "searchUtils" [(sortBy)]="sortBy" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-sorting> -->
|
|
<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>
|
|
</div>
|
|
<search-paging *ngIf="searchUtils.totalResults != 1" [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"></search-paging>
|
|
<search-paging *ngIf="searchUtils.totalResults == 1" [type]="entityType" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues"></search-paging>
|
|
</div>
|
|
<div *ngIf="(searchUtils.page <= pagingLimit)" class="">
|
|
<search-result *ngIf="(entityType != 'community' && entityType != 'funder' ) && !tableView && 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"
|
|
[properties]=properties>
|
|
</deposit-result>
|
|
<portal-search-result *ngIf="(entityType == 'community' || entityType == 'stakeholder') && !tableView && usedBy == 'search'"
|
|
[results]="results"
|
|
[status]="searchUtils.status"
|
|
[type]="entityType"
|
|
[showType]="showType"
|
|
[showLoading]="true" [properties]=properties>
|
|
</portal-search-result>
|
|
</div>
|
|
|
|
<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>
|
|
</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">
|
|
<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-results-per-page class="uk-width-1-2@m uk-width-1-1"></search-results-per-page> -->
|
|
<!--[(size)]="searchUtils.size" (sizeChange)="sizeChanged($event)"-->
|
|
<!-- <search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [(searchUtils)] = "searchUtils" [(sortBy)]="sortBy" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-sorting> -->
|
|
<search-sorting class="uk-width-1-2@m uk-width-1-1" *ngIf="sort" [entityType]="entityType" [(sortBy)]="searchUtils.sortBy" (sortByChange)="sortByChanged($event)"></search-sorting>
|
|
</div>
|
|
<search-paging [type]="type" [loadPaging]="loadPaging" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
|
|
</div>
|
|
<a *ngIf="properties.showLastIndexInformationLink && lastIndex" class="last_index_info uk-button-text"
|
|
[href]="properties.lastIndexInformationLink" target="_blank">
|
|
Last index information
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- <div [class]="(showRefine)? 'uk-width-3-5@m uk-width-3-5@l uk-width-1-1@s uk-align-center uk-margin-remove-bottom' : 'uk-width-1-1'">
|
|
<search-paging [loadPaging]="loadPaging" [type]="type" [oldTotalResults]="oldTotalResults" [(searchUtils)] = "searchUtils" [(results)] = "results" [(baseUrl)] = "baseUrl" [(parameterNames)] = "parameterNames" [(parameterValues)] = "parameterValues" ></search-paging>
|
|
</div> -->
|
|
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" [texts]="pageContents['bottom']" styleName="uk-width-1-1"></helper>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|