[Trunk|Library]: Add at search page condition if total results in only an element change type to entityType
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55348 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
259dc565ff
commit
6af62973a8
|
@ -156,7 +156,8 @@
|
|||
<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-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>
|
||||
<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' && !tableView"
|
||||
|
|
|
@ -121,7 +121,7 @@ export class SearchPageComponent {
|
|||
|
||||
updateTitle(title:string) {
|
||||
let _title: string;
|
||||
if(this.hasPrefix == true) {
|
||||
if(this.hasPrefix) {
|
||||
let _prefix ="OpenAIRE | ";
|
||||
_title = _prefix + ((title.length > 50) ? title.substring(0, 50) : title);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue