[Library | new-theme]: [NEW] landing-utils/: Added fos.component.ts and sdg.component.ts | Redesign updates on availableOn.component.ts & fundedBy.component.ts & relatedTo.component.ts & resultLanding.component.html | resultLanding.component.ts: [Bug Fix] Updated how "isLoggeIn" is calculated (userManagementService.getUserInfo() instead of Session).
This commit is contained in:
parent
bb6c1833a9
commit
4ddef450a8
|
@ -1,29 +1,43 @@
|
|||
import {Component, Input} from '@angular/core';
|
||||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
import {HostedByCollectedFrom} from "../../utils/result-preview/result-preview";
|
||||
import {properties} from "../../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'availableOn',
|
||||
template: `
|
||||
<div *ngIf="availableOn" class="download-from uk-height-max-large uk-overflow-auto uk-margin-small-bottom">
|
||||
<div *ngFor="let instance of availableOn.slice(0, showNum) let i=index"
|
||||
class="uk-flex uk-flex-top"
|
||||
<div class="uk-margin-small-bottom uk-flex uk-flex-between">
|
||||
<span *ngIf="viewAll && !lessBtn" class="clickable uk-h6 uk-flex uk-flex-middle" (click)="viewLessClick()">
|
||||
<icon class="uk-margin-small-right" name="arrow_back" flex="true" ratio="1.2"></icon>
|
||||
{{title}}
|
||||
</span>
|
||||
<span *ngIf="!viewAll || lessBtn" class="uk-margin-small-bottom uk-flex uk-flex-middle">
|
||||
<span class="uk-text-meta uk-margin-small-right">Download from</span>
|
||||
<icon name="download" flex="true" class="uk-text-secondary"></icon>
|
||||
</span>
|
||||
<a *ngIf="viewAll && lessBtn" (click)="viewAll = !viewAll; lessBtn=false;">View less</a>
|
||||
<a *ngIf="availableOn && availableOn.length > threshold && !viewAll"
|
||||
(click)="viewAllClick();">View all {{availableOn.length}} sources</a>
|
||||
</div>
|
||||
|
||||
<div *ngIf="availableOn" class="download-from uk-margin-small-bottom">
|
||||
<div *ngFor="let instance of availableOn.slice(0, viewAll?availableOn.length:threshold) let i=index"
|
||||
class="uk-flex uk-flex-top uk-padding-small"
|
||||
[title]="instance.accessRight ? instance.accessRight : 'Not available'">
|
||||
<span class="uk-margin-small-right">
|
||||
<img [src]="instance.accessRightIcon" loading="lazy" [alt]="instance.accessRight" style="width:20px; height:20px">
|
||||
</span>
|
||||
<div class="uk-width-expand uk-padding-small uk-padding-remove-left uk-padding-remove-vertical">
|
||||
<a *ngIf="instance.downloadUrl" [href]="instance.downloadUrl" target="_blank"
|
||||
class="title">
|
||||
class="title uk-link-text uk-text-emphasis uk-text-bold">
|
||||
{{instance.downloadNames.join("; ")}}
|
||||
<span class="custom-external custom-icon space"></span>
|
||||
</a>
|
||||
<div *ngIf="instance.types?.length > 0 || instance.years?.length > 0">
|
||||
<div *ngIf="instance.types?.length > 0 || instance.years?.length > 0" class="uk-text-meta">
|
||||
<span *ngIf="instance.types?.length > 0" class="uk-text-capitalize">{{instance.types.join(" . ")}}</span>
|
||||
<span *ngIf="instance.types?.length > 0 && instance.years?.length > 0"> . </span>
|
||||
<span *ngIf="instance.years?.length > 0">{{instance.years.join(" . ")}}</span>
|
||||
</div>
|
||||
<div *ngIf="instance.collectedNamesAndIds?.size > 0">
|
||||
<div *ngIf="instance.collectedNamesAndIds?.size > 0" class="uk-text-meta">
|
||||
<span>Providers: </span>
|
||||
<a *ngFor="let collectedName of getKeys(instance.collectedNamesAndIds); let i=index" [routerLink]="dataProviderUrl"
|
||||
[queryParams]="{datasourceId: instance.collectedNamesAndIds.get(collectedName)}">
|
||||
|
@ -33,34 +47,37 @@ import {properties} from "../../../../environments/environment";
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="showNum > threshold" class="uk-margin-bottom">
|
||||
<a (click)="showNum = threshold;" class="uk-flex uk-flex-middle uk-flex-center">
|
||||
<span>View less</span>
|
||||
<span class="space uk-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="chevron-up">
|
||||
<polyline fill="none" stroke="#000" stroke-width="1.03" points="4 13 10 7 16 13"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="showNum == threshold && availableOn && availableOn.length > 5" class="uk-margin-bottom">
|
||||
<a (click)="showNum = availableOn.length;" class="uk-flex uk-flex-middle uk-flex-center">
|
||||
<span>View more</span>
|
||||
<span class="space uk-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="chevron-down">
|
||||
<polyline fill="none" stroke="#000" stroke-width="1.03" points="16 7 10 13 4 7"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- <div *ngIf="showNum > threshold" class="uk-margin-bottom">-->
|
||||
<!-- <a (click)="showNum = threshold;" class="uk-flex uk-flex-middle uk-flex-center">-->
|
||||
<!-- <span>View less</span>-->
|
||||
<!-- <span class="space uk-icon">-->
|
||||
<!-- <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="chevron-up">-->
|
||||
<!-- <polyline fill="none" stroke="#000" stroke-width="1.03" points="4 13 10 7 16 13"></polyline>-->
|
||||
<!-- </svg>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="showNum == threshold && availableOn && availableOn.length > 5" class="uk-margin-bottom">-->
|
||||
<!-- <a (click)="showNum = availableOn.length;" class="uk-flex uk-flex-middle uk-flex-center">-->
|
||||
<!-- <span>View more</span>-->
|
||||
<!-- <span class="space uk-icon">-->
|
||||
<!-- <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="chevron-down">-->
|
||||
<!-- <polyline fill="none" stroke="#000" stroke-width="1.03" points="16 7 10 13 4 7"></polyline>-->
|
||||
<!-- </svg>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
`
|
||||
})
|
||||
|
||||
export class AvailableOnComponent {
|
||||
@Input() availableOn: HostedByCollectedFrom[];
|
||||
public threshold: number = 4;
|
||||
public showNum: number = 4;
|
||||
@Input() viewAll: boolean = false;
|
||||
@Output() viewAllClicked = new EventEmitter();
|
||||
public lessBtn: boolean = false;
|
||||
public threshold: number = 2;
|
||||
public dataProviderUrl = properties.searchLinkToDataProvider.split('?')[0];
|
||||
public title: string = "Download from";
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
@ -77,4 +94,19 @@ export class AvailableOnComponent {
|
|||
public getKeys( map) {
|
||||
return Array.from(map.keys());
|
||||
}
|
||||
|
||||
public viewAllClick() {
|
||||
if(this.availableOn.length <= this.threshold*2) {
|
||||
this.viewAll = true;
|
||||
this.lessBtn = true;
|
||||
} else {
|
||||
this.viewAll = true;
|
||||
this.viewAllClicked.emit('availableOn');
|
||||
}
|
||||
}
|
||||
|
||||
public viewLessClick() {
|
||||
this.viewAll = false;
|
||||
this.viewAllClicked.emit("");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
import {Component, EventEmitter, Input, Output} from "@angular/core";
|
||||
import {RouterHelper} from "../../utils/routerHelper.class";
|
||||
import {properties} from "../../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'fos',
|
||||
template: `
|
||||
<div class="uk-margin-small-bottom uk-flex uk-flex-between">
|
||||
<span *ngIf="viewAll && !lessBtn" class="clickable uk-h6 uk-flex uk-flex-middle" (click)="viewLessClick()">
|
||||
<icon class="uk-margin-small-right" name="arrow_back" flex="true" ratio="1.2"></icon>
|
||||
{{title}}
|
||||
</span>
|
||||
<span *ngIf="!viewAll || lessBtn" class="uk-text-meta">{{title}}</span>
|
||||
<a *ngIf="viewAll && lessBtn" (click)="viewAll = !viewAll; lessBtn=false;">View less</a>
|
||||
<a *ngIf="subjects && subjects.length > threshold && !viewAll"
|
||||
(click)="viewAllClick();">View more</a>
|
||||
</div>
|
||||
<div class="uk-margin-small-top">
|
||||
<div *ngFor="let subject of subjects.slice(0, viewAll?subjects.length:threshold); let i=index" class="uk-text-truncate">
|
||||
<a [routerLink]="properties.searchLinkToAdvancedResults"
|
||||
[queryParams]="routerHelper.createQueryParams(['f0', 'fv0', 'size'], ['fos', subject, '50'])">
|
||||
{{subject}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
||||
export class FosComponent {
|
||||
@Input() subjects: string[];
|
||||
@Input() viewAll: boolean = false;
|
||||
@Output() viewAllClicked = new EventEmitter();
|
||||
public lessBtn: boolean = false;
|
||||
public threshold: number = 2;
|
||||
public routerHelper: RouterHelper = new RouterHelper();
|
||||
public properties = properties;
|
||||
public title: string = "Fields of Science (FOS)";
|
||||
|
||||
public viewAllClick() {
|
||||
if(this.subjects.length <= this.threshold*2) {
|
||||
this.viewAll = true;
|
||||
this.lessBtn = true;
|
||||
} else {
|
||||
this.viewAll = true;
|
||||
this.viewAllClicked.emit('fos');
|
||||
}
|
||||
}
|
||||
|
||||
public viewLessClick() {
|
||||
this.viewAll = false;
|
||||
this.viewAllClicked.emit("");
|
||||
}
|
||||
}
|
|
@ -1,17 +1,23 @@
|
|||
import {Component, Input} from '@angular/core';
|
||||
import {HelperFunctions} from "../../utils/HelperFunctions.class";
|
||||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
import {Project} from "../../utils/result-preview/result-preview";
|
||||
import {properties} from "../../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'fundedBy',
|
||||
template: `
|
||||
<div class="sideInfoTitle">
|
||||
<span>Funded by</span>
|
||||
<div class="uk-margin-small-bottom uk-flex uk-flex-between">
|
||||
<span *ngIf="viewAll && !lessBtn" class="clickable uk-h6 uk-flex uk-flex-middle" (click)="viewLessClick()">
|
||||
<icon class="uk-margin-small-right" name="arrow_back" flex="true" ratio="1.2"></icon>
|
||||
{{title}}
|
||||
</span>
|
||||
<span *ngIf="!viewAll || lessBtn" class="uk-text-meta">{{title}}</span>
|
||||
<a *ngIf="viewAll && lessBtn" (click)="viewAll = !viewAll; lessBtn=false;">View less</a>
|
||||
<a *ngIf="fundedByProjects && fundedByProjects.length > threshold && !viewAll"
|
||||
(click)="viewAllClick();">View more</a>
|
||||
</div>
|
||||
<div class="uk-padding-small">
|
||||
<span *ngFor="let item of fundedByProjects.slice(0, showNum) let i=index">
|
||||
<a>
|
||||
<div>
|
||||
<span *ngFor="let item of fundedByProjects.slice(0, viewAll?fundedByProjects.length:threshold) let i=index">
|
||||
<a class="uk-link-text">
|
||||
<span>
|
||||
<span
|
||||
*ngIf="item['funderShortname'] || item['funderName']">{{item['funderShortname'] ? item['funderShortname'] : item['funderName']}}</span>
|
||||
|
@ -20,8 +26,9 @@ import {properties} from "../../../../environments/environment";
|
|||
*ngIf="item['acronym'] || item['title']">| {{ item['acronym'] ? item['acronym'] : item['title']}}</span>
|
||||
</span>
|
||||
</a>
|
||||
<div class="default-dropdown uk-margin-remove-top uk-padding-small uk-dropdown"
|
||||
<div class="default-dropdown uk-margin-remove-top uk-dropdown"
|
||||
uk-dropdown="pos: bottom-left; mode:click">
|
||||
<div class="uk-padding-small">
|
||||
<span>Project</span>
|
||||
<div class="uk-margin-bottom">
|
||||
<a *ngIf="item.id" class="uk-h6 uk-margin-remove portal-link"
|
||||
|
@ -31,56 +38,59 @@ import {properties} from "../../../../environments/environment";
|
|||
<span *ngIf="!item.id" class="uk-h6 uk-margin-remove">
|
||||
{{item['acronym'] ? item['acronym'] : item['title']}}
|
||||
</span>
|
||||
<div *ngIf="item.acronym && item.title">
|
||||
<div *ngIf="item.acronym && item.title" class="uk-text-meta">
|
||||
{{item.title}}
|
||||
</div>
|
||||
</div>
|
||||
<ul class="uk-list uk-padding-remove-left uk-margin-bottom">
|
||||
<li *ngIf="item.funderShortname || item.funderName">
|
||||
<span class="uk-text-muted">Funder: </span>
|
||||
<span class="uk-text-meta">Funder: </span>
|
||||
{{item.funderName ? item.funderName : item.funderShortname}}
|
||||
<span *ngIf="item.funderShortname && item.funderName">
|
||||
({{item.funderShortname}})
|
||||
</span>
|
||||
</li>
|
||||
<li *ngIf="item.code">
|
||||
<span class="uk-text-muted">Project Code: </span>{{item.code}}
|
||||
<span class="uk-text-meta">Project Code: </span>{{item.code}}
|
||||
</li>
|
||||
<li *ngIf="item.funding">
|
||||
<span class="uk-text-muted">Funding stream: </span>{{item.funding}}
|
||||
<span class="uk-text-meta">Funding stream: </span>{{item.funding}}
|
||||
</li>
|
||||
</ul>
|
||||
<div *ngIf="item.provenanceAction || item.validated" class="uk-text-muted">
|
||||
<div *ngIf="item.provenanceAction || item.validated" class="uk-text-meta">
|
||||
<span *ngIf="item.validated">Validated by funder</span>
|
||||
<span *ngIf="item.provenanceAction && item.validated"> | </span>
|
||||
<span *ngIf="item.provenanceAction">{{item.provenanceAction}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<span *ngIf="i < (fundedByProjects.slice(0, showNum).length - 1)">, </span>
|
||||
</div>
|
||||
<span *ngIf="i < (fundedByProjects.slice(0, viewAll?fundedByProjects.length:threshold).length - 1)">, </span>
|
||||
</span>
|
||||
<div *ngIf="showNum > threshold" class="uk-text-right uk-margin-bottom">
|
||||
<a (click)="showNum = threshold; scroll()">
|
||||
View less
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="showNum == threshold && fundedByProjects && fundedByProjects.length > threshold"
|
||||
class="uk-text-right uk-margin-bottom">
|
||||
<a (click)="showNum = fundedByProjects.length;">
|
||||
View more
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
||||
export class FundedByComponent {
|
||||
@Input() fundedByProjects: Project[];
|
||||
|
||||
public threshold: number = 5;
|
||||
public showNum: number = 5;
|
||||
@Input() viewAll: boolean = false;
|
||||
@Output() viewAllClicked = new EventEmitter();
|
||||
public lessBtn: boolean = false;
|
||||
public threshold: number = 4;
|
||||
public url = properties.searchLinkToProject.split('?')[0];
|
||||
public title: string = "Funded by";
|
||||
|
||||
public scroll() {
|
||||
HelperFunctions.scroll();
|
||||
public viewAllClick() {
|
||||
if(this.fundedByProjects.length <= this.threshold*2) {
|
||||
this.viewAll = true;
|
||||
this.lessBtn = true;
|
||||
} else {
|
||||
this.viewAll = true;
|
||||
this.viewAllClicked.emit('fundedBy');
|
||||
}
|
||||
}
|
||||
|
||||
public viewLessClick() {
|
||||
this.viewAll = false;
|
||||
this.viewAllClicked.emit("");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,45 +1,36 @@
|
|||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {Subscriber} from 'rxjs';
|
||||
|
||||
import {properties} from 'src/environments/environment';
|
||||
|
||||
import {CommunityService} from '../../connect/community/community.service';
|
||||
import {ConnectHelper} from '../../connect/connectHelper';
|
||||
import {UserManagementService} from '../../services/user-management.service';
|
||||
import {HelperFunctions} from "../../utils/HelperFunctions.class";
|
||||
import {Context} from "../../utils/entities/resultLandingInfo";
|
||||
import {OpenaireEntities} from "../../utils/properties/searchFields";
|
||||
|
||||
@Component({
|
||||
selector: 'relatedTo',
|
||||
selector: 'relatedTo, [relatedTo]',
|
||||
template: `
|
||||
<div *ngIf="(gateways && gateways.length > 0) || (otherCommunities && otherCommunities.length > 0)" class="sideInfoTitle">
|
||||
<span>Communities</span>
|
||||
<ng-container *ngIf="communities && communities.length > 0">
|
||||
<div class="uk-margin-small-bottom uk-flex uk-flex-between">
|
||||
<span *ngIf="viewAll && !lessBtn" class="clickable uk-h6 uk-flex uk-flex-middle" (click)="viewLessClick()">
|
||||
<icon class="uk-margin-small-right" name="arrow_back" flex="true" ratio="1.2"></icon>
|
||||
{{title}}
|
||||
</span>
|
||||
<span *ngIf="!viewAll || lessBtn" class="uk-text-meta">{{title}}</span>
|
||||
<a *ngIf="viewAll && lessBtn" (click)="viewAll = !viewAll; lessBtn=false;">View less</a>
|
||||
<a *ngIf="communities && communities.length > threshold && !viewAll"
|
||||
(click)="viewAllClick();">View more</a>
|
||||
</div>
|
||||
<div *ngFor="let community of communities.slice(0, viewAll?communities.length:threshold)" class="uk-text-truncate">
|
||||
<!-- If there are any communities with dashboard -->
|
||||
<ng-container *ngIf="gateways && gateways.length > 0">
|
||||
<div class="uk-padding-small uk-flex">
|
||||
<div class="uk-width-2-3">
|
||||
<div class="uk-text-muted">Communities with gateway</div>
|
||||
<ul class="custom-list">
|
||||
<li *ngFor="let gateway of gateways">
|
||||
<a href="{{gateway.link}}" target="_blank" [attr.uk-tooltip]="gateway.labelContext">
|
||||
{{ gateway.labelContext.length > 26 ? gateway.labelContext.substr(0,25) + '…' : gateway.labelContext }}
|
||||
<a *ngIf="community.link" href="{{community.link}}" target="_blank" [attr.uk-tooltip]="community.labelContext">
|
||||
{{community.labelContext}}
|
||||
<span class="custom-external custom-icon space"></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="uk-width-1-3 uk-position-relative">
|
||||
<img class="uk-position-bottom-right connect-image" src="assets/common-assets/connect_image_faded.png" alt="OpenAIRE Connect image">
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
<!-- Other communities (without dashboards) -->
|
||||
<ng-container *ngIf="otherCommunities && otherCommunities.length > 0">
|
||||
<div class="uk-padding-small border-top">
|
||||
<div>
|
||||
<div *ngIf="gateways && gateways.length > 0" class="uk-text-muted">Other Communities</div>
|
||||
<ul class="custom-list" [ngClass]="{'uk-padding-remove uk-margin-remove': !gateways || gateways.length == 0}">
|
||||
<li *ngFor="let community of otherCommunities.slice(0, showNum); let i = index">
|
||||
<ng-container *ngIf="!community.link">
|
||||
{{community.labelContext}}
|
||||
<span *ngIf="community.labelCategory && (currentCommunity == community.idContext)">
|
||||
<span uk-icon="icon: arrow-right"></span> {{community.labelCategory}}
|
||||
|
@ -47,29 +38,23 @@ import {HelperFunctions} from "../../utils/HelperFunctions.class";
|
|||
<span *ngIf="community.labelConcept && (currentCommunity == community.idContext)">
|
||||
: {{community.labelConcept}}
|
||||
</span>
|
||||
</li>
|
||||
<div *ngIf="showNum > threshold" class="uk-text-right">
|
||||
<a (click)="showNum = threshold;">View less</a>
|
||||
</div>
|
||||
<div *ngIf="otherCommunities.length > threshold && showNum == threshold" class="uk-text-right">
|
||||
<a (click)="showNum = otherCommunities.length;">View more</a>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
</ng-container>
|
||||
`
|
||||
})
|
||||
|
||||
export class RelatedToComponent implements OnInit {
|
||||
@Input() contexts: { "idContext": string, "labelContext": string, "labelCategory": string, "labelConcept": string, "link": string, "logo": string }[];
|
||||
|
||||
public threshold: number = 3;
|
||||
public showNum: number = 3;
|
||||
public gateways = [];
|
||||
public otherCommunities = [];
|
||||
@Input() contexts: Context[];
|
||||
@Input() viewAll: boolean = false;
|
||||
@Output() viewAllClicked = new EventEmitter();
|
||||
@Output() noCommunities = new EventEmitter();
|
||||
public lessBtn: boolean = false;
|
||||
public threshold: number = 4;
|
||||
public communities: Context[] = [];
|
||||
public currentCommunity = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
private subscriptions = [];
|
||||
public title: string = "Related to "+OpenaireEntities.COMMUNITIES;
|
||||
|
||||
constructor(private communityService: CommunityService,
|
||||
private userManagementService: UserManagementService) {
|
||||
|
@ -91,26 +76,25 @@ export class RelatedToComponent implements OnInit {
|
|||
} else {
|
||||
context.link = 'https://' + context.idContext + '.openaire.eu';
|
||||
}
|
||||
for(let gateway of this.gateways) {
|
||||
if(gateway.link == context.link) {
|
||||
}
|
||||
for(let community of this.communities) {
|
||||
if(community.link == context.link) {
|
||||
index++;
|
||||
if(index == this.contexts.length) {
|
||||
this.communitiesInitialized();
|
||||
}
|
||||
return; // skips so that we don't get duplicate gateways
|
||||
}
|
||||
}
|
||||
this.gateways.push(context);
|
||||
} else {
|
||||
if(this.currentCommunity != context.idContext) {
|
||||
for(let other of this.otherCommunities) {
|
||||
if(other.idContext == context.idContext) {
|
||||
return; // skips so that we don't get duplicate communities because of the multiple concepts
|
||||
}
|
||||
}
|
||||
}
|
||||
this.otherCommunities.push(context);
|
||||
}
|
||||
this.communities.push(context);
|
||||
index++;
|
||||
if(index == this.contexts.length) {
|
||||
this.gateways.sort(this.compare);
|
||||
this.otherCommunities.sort(this.compare);
|
||||
this.communitiesInitialized();
|
||||
}
|
||||
}, error => {
|
||||
index++;
|
||||
if(index == this.contexts.length) {
|
||||
this.communitiesInitialized();
|
||||
}
|
||||
})
|
||||
);
|
||||
|
@ -132,13 +116,40 @@ export class RelatedToComponent implements OnInit {
|
|||
HelperFunctions.scroll();
|
||||
}
|
||||
|
||||
public compare(a, b) {
|
||||
if(a.labelContext < b.labelContext) {
|
||||
return -1;
|
||||
public communitiesInitialized() {
|
||||
if(this.communities.length == 0) {
|
||||
this.noCommunities.emit(true);
|
||||
}
|
||||
if(a.labelContext > b.labelContext) {
|
||||
this.communities.sort(this.compare);
|
||||
}
|
||||
|
||||
public compare(a, b) {
|
||||
if (a.link && !b.link) {
|
||||
return -1;
|
||||
} else if(!a.link && b.link) {
|
||||
return 1;
|
||||
} else {
|
||||
if (a.labelContext < b.labelContext) {
|
||||
return -1;
|
||||
} else if (a.labelContext > b.labelContext) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public viewAllClick() {
|
||||
if(this.communities.length <= this.threshold*2) {
|
||||
this.viewAll = true;
|
||||
this.lessBtn = true;
|
||||
} else {
|
||||
this.viewAll = true;
|
||||
this.viewAllClicked.emit('relatedTo');
|
||||
}
|
||||
}
|
||||
|
||||
public viewLessClick() {
|
||||
this.viewAll = false;
|
||||
this.viewAllClicked.emit("");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,23 +12,26 @@ import {TabTableComponent} from './tabTable.component';
|
|||
import {ShowPublisherComponent} from "./showPublisher.component";
|
||||
import {ShowPublisherModule} from "./showPublisher.module";
|
||||
import {RelatedToComponent} from "./relatedTo.component";
|
||||
import {FosComponent} from "./fos.component";
|
||||
import {SdgComponent} from "./sdg.component";
|
||||
import {IconsModule} from "../../utils/icons/icons.module";
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, FormsModule, RouterModule, PagingModule, ShowPublisherModule
|
||||
CommonModule, FormsModule, RouterModule, PagingModule, ShowPublisherModule, IconsModule
|
||||
],
|
||||
declarations: [
|
||||
ShowIdentifiersComponent,ShowSubjectsComponent,
|
||||
FundedByComponent,AvailableOnComponent,TabTableComponent,
|
||||
RelatedToComponent
|
||||
RelatedToComponent, FosComponent, SdgComponent
|
||||
],
|
||||
providers:[
|
||||
],
|
||||
exports: [
|
||||
ShowIdentifiersComponent, ShowSubjectsComponent,
|
||||
FundedByComponent,AvailableOnComponent, TabTableComponent, ShowPublisherComponent,
|
||||
RelatedToComponent
|
||||
RelatedToComponent, FosComponent, SdgComponent
|
||||
]
|
||||
})
|
||||
export class ResultLandingUtilsModule { }
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
import {Component, EventEmitter, Input, Output} from "@angular/core";
|
||||
import {RouterHelper} from "../../utils/routerHelper.class";
|
||||
import {properties} from "../../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'sdg',
|
||||
template: `
|
||||
<div class="uk-margin-small-bottom uk-flex uk-flex-between">
|
||||
<span *ngIf="viewAll && !lessBtn" class="clickable uk-h6 uk-flex uk-flex-middle" (click)="viewLessClick()">
|
||||
<icon class="uk-margin-small-right" name="arrow_back" flex="true" ratio="1.2"></icon>
|
||||
{{title}}
|
||||
</span>
|
||||
<span *ngIf="!viewAll || lessBtn" class="uk-text-meta">{{title}}</span>
|
||||
<a *ngIf="viewAll && lessBtn" (click)="viewAll = !viewAll; lessBtn=false;">View less</a>
|
||||
<a *ngIf="subjects && subjects.length > threshold && !viewAll"
|
||||
(click)="viewAllClick();">View more</a>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin-small-bottom uk-flex">
|
||||
<img src="assets/common-assets/common/The_Global_Goals_Icon_Color.svg"
|
||||
loading="lazy" alt="sdg_colors" style="width:27px; height:27px">
|
||||
<div class="uk-margin-small-left">
|
||||
<div *ngFor="let subject of subjects.slice(0, viewAll?subjects.length:threshold); let i=index" class="uk-text-truncate">
|
||||
<a [routerLink]=" properties.searchLinkToAdvancedResults"
|
||||
[queryParams]="routerHelper.createQueryParams(['f0', 'fv0', 'size'], ['sdg', subject, '50'])">
|
||||
{{subject}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
||||
export class SdgComponent {
|
||||
@Input() subjects: string[];
|
||||
@Input() viewAll: boolean = false;
|
||||
@Output() viewAllClicked = new EventEmitter();
|
||||
public lessBtn: boolean = false;
|
||||
public threshold: number = 4;
|
||||
public routerHelper: RouterHelper = new RouterHelper();
|
||||
public properties = properties;
|
||||
public title: string = "Sustainable Development Goals (SDG)";
|
||||
|
||||
public viewAllClick() {
|
||||
if(this.subjects.length <= this.threshold*2) {
|
||||
this.viewAll = true;
|
||||
this.lessBtn = true;
|
||||
} else {
|
||||
this.viewAll = true;
|
||||
this.viewAllClicked.emit('sdg');
|
||||
}
|
||||
}
|
||||
|
||||
public viewLessClick() {
|
||||
this.viewAll = false;
|
||||
this.viewAllClicked.emit("");
|
||||
}
|
||||
}
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
<!-- left box - actions -->
|
||||
<div class="uk-width-small landing-background-light-color">
|
||||
<div class="uk-flex uk-flex-column uk-flex-between uk-flex-center landing-column-height uk-sticky"
|
||||
<div class="uk-flex uk-flex-column uk-flex-between uk-flex-center landing-column-height landing-left-column-border uk-sticky"
|
||||
uk-sticky="bottom: true" [attr.offset]="offset">
|
||||
<div [class.uk-hidden]="!hasAltMetrics && !metricsCalculated"
|
||||
class="uk-align-center uk-text-center uk-margin-medium-top">
|
||||
class="uk-align-center uk-text-center uk-margin-medium-top uk-flex uk-flex-column uk-flex-between">
|
||||
<ng-container *ngIf="resultLandingInfo && (hasAltMetrics || hasMetrics)">
|
||||
<metrics *ngIf="hasMetrics" class="uk-margin-bottom"
|
||||
[pageViews]="pageViews"
|
||||
|
@ -19,17 +19,21 @@
|
|||
<altmetrics *ngIf="hasAltMetrics" id="{{resultLandingInfo.identifiers?.get('doi')[0]}}" type="doi"></altmetrics>
|
||||
</ng-container>
|
||||
</div>
|
||||
<ul class="uk-list uk-margin-large-bottom uk-align-center">
|
||||
<div class="uk-margin-large-bottom uk-align-center">
|
||||
<div class="uk-text-meta">Actions</div>
|
||||
<ul class="uk-list">
|
||||
<!-- Share -->
|
||||
<li>
|
||||
social
|
||||
<!-- MOVE SOCIAL TO MODAL!!!! -->
|
||||
<!-- <addThis></addThis>-->
|
||||
</li>
|
||||
<!-- <li>-->
|
||||
<!-- social-->
|
||||
<!-- <!– TODO: MOVE SOCIAL TO MODAL OR DROP!!!! –>-->
|
||||
<!-- <!– <addThis></addThis>–>-->
|
||||
<!-- </li>-->
|
||||
<!-- Link to -->
|
||||
<li *ngIf="isRouteAvailable('participate/direct-claim')" [title]="'Link this '+getTypeName()+' to...'">
|
||||
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openLinkModal()">
|
||||
<span class="uk-icon-button portal-button uk-icon">
|
||||
<li *ngIf="isRouteAvailable('participate/direct-claim')" class="uk-text-center"
|
||||
[title]="'Link this '+getTypeName()+' to...'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-portal'">
|
||||
<a (click)="openLinkModal()">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="link"><path
|
||||
fill="none" stroke="#000" stroke-width="1.1"
|
||||
d="M10.625,12.375 L7.525,15.475 C6.825,16.175 5.925,16.175 5.225,15.475 L4.525,14.775 C3.825,14.074 3.825,13.175 4.525,12.475 L7.625,9.375"></path><path
|
||||
|
@ -42,9 +46,11 @@
|
|||
</a>
|
||||
</li>
|
||||
<!-- Cite this -->
|
||||
<li>
|
||||
<a class="uk-link-text uk-text-bold uk-text-uppercase" (click)="openCiteModal()" [title]="'Cite this '+getTypeName()">
|
||||
<span class="uk-icon-button uk-button-primary uk-icon">
|
||||
<li class="uk-text-center">
|
||||
<a (click)="openCiteModal()"
|
||||
[title]="'Cite this '+getTypeName()"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-portal'">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-portal">
|
||||
<svg width="20"
|
||||
height="20"
|
||||
viewBox="0 0 20 20"
|
||||
|
@ -57,21 +63,22 @@
|
|||
</a>
|
||||
</li>
|
||||
<!-- ORCID -->
|
||||
<li *ngIf="properties.adminToolsPortalType == 'explore' || properties.adminToolsPortalType == 'community'">
|
||||
<li *ngIf="properties.adminToolsPortalType == 'explore' || properties.adminToolsPortalType == 'community'"
|
||||
class="uk-text-center">
|
||||
<orcid-work [resultId]="id" [resultTitle]="resultLandingInfo.title" [resultLandingInfo]="resultLandingInfo"
|
||||
[pids]="pidsArrayString" [pageType]="'landing'">
|
||||
</orcid-work>
|
||||
</li>
|
||||
<li *ngIf="properties.b2noteAPIURL" title="add annotation">
|
||||
<a *ngIf="isLoggedIn && pid" class="uk-link-text uk-text-bold uk-text-uppercase" (click)="annotation.toggleAnnotation($event)">
|
||||
<span class="uk-icon-button uk-button-primary uk-icon">
|
||||
<li *ngIf="properties.b2noteAPIURL" class="uk-text-center" title="add annotation">
|
||||
<a *ngIf="isLoggedIn && pid" (click)="annotation.toggleAnnotation($event)">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-primary">
|
||||
<img src="assets/common-assets/b2note.png" loading="lazy" alt="b2note" style="width:34px; height:21px">
|
||||
</span>
|
||||
</a>
|
||||
<span *ngIf="!pid || !isLoggedIn" class="uk-link-text uk-text-bold uk-text-uppercase uk-text-muted half-opacity"
|
||||
[attr.uk-tooltip]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID':
|
||||
'Annotations are available only for logged in users'">
|
||||
<span class="uk-icon-button uk-button-primary uk-icon uk-disabled">
|
||||
<span *ngIf="!pid || !isLoggedIn" class="uk-text-muted half-opacity"
|
||||
[title]="!pid?'Annotations are available only for resources with a PID (persistent identifier) like DOI, handle, PMID':
|
||||
'Annotations are available only for logged in users'"
|
||||
[attr.uk-tooltip]="'pos: right; cls: uk-active landing-action-tooltip landing-action-tooltip-primary'">
|
||||
<span class="uk-icon-button uk-icon landing-action-button landing-action-button-primary uk-disabled">
|
||||
<img src="assets/common-assets/b2note.png" loading="lazy" alt="b2note" style="width:34px;
|
||||
height:21px">
|
||||
</span>
|
||||
|
@ -80,16 +87,23 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- center box-->
|
||||
<div *ngIf="resultLandingInfo" class="uk-width-expand landing-background-default-color">
|
||||
<div class="uk-margin-medium-top">
|
||||
<div *ngIf="resultLandingInfo" class="uk-width-expand uk-padding-remove landing-background-default-color">
|
||||
<div class="uk-padding-large uk-padding-remove-vertical uk-margin-medium-top">
|
||||
<!-- schema.org-->
|
||||
<schema2jsonld *ngIf="resultLandingInfo.record" [data]=resultLandingInfo.record
|
||||
[URL]="canonicalUrl"></schema2jsonld>
|
||||
<span *ngIf="resultLandingInfo.deletedByInferenceIds" class="uk-text-primary uk-flex uk-flex-middle">
|
||||
<icon flex="true" ratio="0.8" name="auto_awesome_motion"></icon>
|
||||
<a (click)="openDeletedByInference()" class="uk-text-primary uk-text-small uk-margin-small-left">
|
||||
View all {{resultLandingInfo.deletedByInferenceIds.length}} versions
|
||||
</a>
|
||||
</span>
|
||||
<landing-header [properties]="properties" [title]="resultLandingInfo.title"
|
||||
[subTitle]="resultLandingInfo.subtitle"
|
||||
[authors]="resultLandingInfo.authors" [authorLimit]="10"
|
||||
[authors]="resultLandingInfo.authors" [authorLimit]="3"
|
||||
[underCuration]="resultLandingInfo.underCurationMessage"
|
||||
[entityType]="getTypeName()" [types]="resultLandingInfo.types"
|
||||
[year]="resultLandingInfo.date" [embargoEndDate]="resultLandingInfo.embargoEndDate">
|
||||
|
@ -98,170 +112,297 @@
|
|||
<div class="uk-margin-bottom">
|
||||
<span *ngIf="resultLandingInfo.accessMode
|
||||
&& resultLandingInfo.accessMode.toLowerCase() !== 'not available'"
|
||||
[class]="'uk-label custom-label uk-text-truncate label-'+ accessClass(resultLandingInfo.accessMode)"
|
||||
[class]="'uk-label uk-text-truncate '+ (accessClass(resultLandingInfo.accessMode) == 'open' ? 'uk-label-success' : '')"
|
||||
title="Access Mode">{{resultLandingInfo.accessMode}}
|
||||
</span>{{" "}}
|
||||
</span> 
|
||||
<span *ngIf="resultLandingInfo.languages &&
|
||||
removeUnknown(resultLandingInfo.languages).length > 0">
|
||||
<ng-container *ngFor="let language of removeUnknown(resultLandingInfo.languages)">
|
||||
<span class="uk-label custom-label label-language" title="Language">{{language}}</span>
|
||||
{{' '}}
|
||||
 
|
||||
</ng-container>
|
||||
</span>
|
||||
<span *ngIf="resultLandingInfo.programmingLanguages && resultLandingInfo.programmingLanguages.length > 0">
|
||||
<ng-container *ngFor="let programmingLanguage of resultLandingInfo.programmingLanguages">
|
||||
<span class="uk-label custom-label label-language"
|
||||
title="Programming Language">{{programmingLanguage}}</span>
|
||||
{{' '}}
|
||||
 
|
||||
</ng-container>
|
||||
</span>
|
||||
</div>
|
||||
<div class="uk-text-small">
|
||||
<!-- Identifiers -->
|
||||
<div *ngIf="resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0"
|
||||
class="uk-margin-medium-bottom">
|
||||
<div *ngIf="resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0" class="uk-margin-small-top">
|
||||
<showIdentifiers [identifiers]="resultLandingInfo.identifiers" [showViewAll]="true"></showIdentifiers>
|
||||
</div>
|
||||
<ul class="uk-list basic-info">
|
||||
<!--Published Date, Journal and Publisher-->
|
||||
<showPublisher [publisher]="resultLandingInfo.publisher"
|
||||
<div showPublisher [publisher]="resultLandingInfo.publisher"
|
||||
[publishDate]="resultLandingInfo.dateofacceptance"
|
||||
[journal]="resultLandingInfo.journal" [properties]="properties"></showPublisher>
|
||||
[journal]="resultLandingInfo.journal" [properties]="properties" class="uk-margin-small-top"></div>
|
||||
<!-- Countries -->
|
||||
<li *ngIf="resultLandingInfo.countries && resultLandingInfo.countries.length > 0">
|
||||
<span class="uk-text-muted">
|
||||
<div *ngIf="resultLandingInfo.countries && resultLandingInfo.countries.length > 0" class="uk-margin-small-top">
|
||||
<span class="uk-text-meta">
|
||||
{{(resultLandingInfo.countries.length === 1) ? 'Country: ' : 'Countries: '}}
|
||||
</span>
|
||||
{{resultLandingInfo.countries.join(", ")}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<my-tabs (selectedActiveTab)="onSelectActiveTab($event)">
|
||||
<my-tab tabTitle="Summary"
|
||||
[tabId]="'summary'" class="uk-active">
|
||||
<ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<div id="main-tabs-div" class="uk-padding-large uk-padding-remove-vertical"
|
||||
uk-sticky="bottom: true; offset: 0"
|
||||
cls-active="landing-background-default-color">
|
||||
<div class="uk-padding uk-padding-remove-horizontal">
|
||||
<div [ngStyle]="{'padding-top': offset+'px'}">
|
||||
<showTitle *ngIf="stickyHeader" [titleName]="resultLandingInfo.title" classNames="uk-margin-remove-bottom"></showTitle>
|
||||
</div>
|
||||
<my-tabs (selectedActiveTab)="onSelectActiveTab($event)" [(isSticky)]="stickyHeader">
|
||||
<my-tab tabTitle="Summary" [tabId]="'summary'" [active]="true"></my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
|
||||
[tabTitle]="'References'" [tabId]="'references'"
|
||||
[tabNumber]="resultLandingInfo.references.length">
|
||||
<ng-container *ngTemplateOutlet="references_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.relatedResults?.length > 0"
|
||||
[tabTitle]="'Related research'" [tabId]="'all_related'"
|
||||
[tabNumber]="resultLandingInfo.relatedResults.length">
|
||||
<ng-container *ngTemplateOutlet="all_related_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
|
||||
[tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
|
||||
<ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="enermapsId && properties.enermapsURL"
|
||||
[tabTitle]="'Enermaps Tool'" [tabId]="'enermaps'"
|
||||
customClass="portalTab">
|
||||
<ng-container *ngTemplateOutlet="enermaps_tab;"></ng-container>
|
||||
</my-tab>
|
||||
</my-tabs>
|
||||
<my-small-tabs (selectedActiveTab)="onSelectActiveTab($event)">
|
||||
<my-tab tabTitle="Summary"
|
||||
[tabId]="'summary'" class="uk-active">
|
||||
<ng-container *ngTemplateOutlet="summary_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0"
|
||||
[tabTitle]="'references'" [tabId]="'references'"
|
||||
[tabNumber]="resultLandingInfo.references.length">
|
||||
<ng-container *ngTemplateOutlet="references_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.relatedResults?.length > 0"
|
||||
[tabTitle]="'Related research'" [tabId]="'all_related'"
|
||||
[tabNumber]="resultLandingInfo.relatedResults.length">
|
||||
<ng-container *ngTemplateOutlet="all_related_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0"
|
||||
[tabTitle]="'External Databases'" [tabId]="'bioentities'" [tabNumber]="bioentitiesNum">
|
||||
<ng-container *ngTemplateOutlet="bioentities_tab;"></ng-container>
|
||||
</my-tab>
|
||||
<my-tab *ngIf="enermapsId && properties.enermapsURL"
|
||||
[tabTitle]="'Enermaps Tool'" [tabId]="'enermaps'"
|
||||
customClass="portalTab">
|
||||
<ng-container *ngTemplateOutlet="enermaps_tab;"></ng-container>
|
||||
</my-tab>
|
||||
</my-small-tabs>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="landing-sections" class="uk-padding-large uk-padding-remove-vertical">
|
||||
<ng-container>
|
||||
<div id="summary" class="landing-section uk-padding uk-padding-remove-horizontal">
|
||||
<div *ngIf="!hasPrimaryInfo" class="uk-height-small uk-flex uk-flex-center uk-flex-middle">
|
||||
<div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
|
||||
No summary information available
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="hasPrimaryInfo">
|
||||
<!-- Description -->
|
||||
<div *ngIf="resultLandingInfo.description && resultLandingInfo.description.length > 0"
|
||||
class="uk-margin-medium-bottom">
|
||||
<div class="uk-text-justify ">
|
||||
<div class="uk-text-meta">Abstract</div>
|
||||
<div class=" uk-height-max-medium uk-overflow-auto">
|
||||
<div *ngFor="let description of resultLandingInfo.description" class="uk-margin-small-bottom ">
|
||||
{{description}}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||
|
||||
resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">
|
||||
<showSubjects [subjects]="resultLandingInfo.subjects"
|
||||
[otherSubjects]="resultLandingInfo.otherSubjects"
|
||||
[classifiedSubjects]="resultLandingInfo.classifiedSubjects">
|
||||
</showSubjects>
|
||||
</div>
|
||||
<!-- Related Organizations-->
|
||||
<div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"
|
||||
class="uk-margin-medium-bottom uk-width-2-3@m">
|
||||
<div class="uk-text-meta">Related {{openaireEntities.ORGANIZATIONS}}</div>
|
||||
<ul class="uk-list organizations uk-margin-remove-top">
|
||||
<li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
|
||||
<a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
|
||||
{{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}
|
||||
<span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>
|
||||
</a>
|
||||
<div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
|
||||
<a (click)="showAll = !showAll;">
|
||||
View more
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
|
||||
<a (click)="showAll = !showAll;">View less</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">
|
||||
<div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||
|
||||
resultLandingInfo.contexts && resultLandingInfo.contexts.length >0">
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
|
||||
class="uk-width-expand uk-padding">
|
||||
<div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
|
||||
No summary information available
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="resultLandingInfo.references && resultLandingInfo.references.length > 0">
|
||||
<div id="references" class="landing-section uk-padding uk-padding-remove-horizontal">
|
||||
<no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
|
||||
(pageChange)="updateReferencesPage($event)"
|
||||
[page]="referencesPage" [pageSize]="1.5*pageSize"
|
||||
[totalResults]="resultLandingInfo.references.length">
|
||||
</no-load-paging>
|
||||
<div
|
||||
*ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">
|
||||
<p *ngIf="item">
|
||||
{{item.name}}
|
||||
<ng-container *ngIf="item.ids && item.ids.length > 0">
|
||||
<span *ngFor="let id of item.ids">
|
||||
[<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"
|
||||
target="_blank">{{getReferenceIdName(id)}}</a>
|
||||
<a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"
|
||||
[queryParams]="{id: id.value}"
|
||||
target="_blank">OpenAIRE</a>]
|
||||
</span>
|
||||
</ng-container>
|
||||
</p>
|
||||
</div>
|
||||
<no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
|
||||
(pageChange)="updateReferencesPage($event)"
|
||||
[page]="referencesPage" [pageSize]="1.5*pageSize"
|
||||
[totalResults]="resultLandingInfo.references.length">
|
||||
</no-load-paging>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="resultLandingInfo.relatedResults?.length > 0">
|
||||
<div id="all_related" class="landing-section uk-padding uk-padding-remove-horizontal">
|
||||
<ng-container *ngTemplateOutlet="relation_in_tab; context: { researchResults: filteredRelatedResults, header: '', relatedClassFilters: resultLandingInfo.relatedClassFilters}"></ng-container>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="resultLandingInfo.bioentities && bioentitiesNum> 0">
|
||||
<div id="bioentities" class="landing-section uk-padding uk-padding-remove-horizontal">
|
||||
<no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
|
||||
(pageChange)="updateBioentitiesPage($event)"
|
||||
[page]="bioentitiesPage" [pageSize]="2*pageSize"
|
||||
[totalResults]="bioentitiesNum">
|
||||
</no-load-paging>
|
||||
<div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>
|
||||
<ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">
|
||||
<ng-container
|
||||
*ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">
|
||||
<div>
|
||||
<div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">
|
||||
{{keyIn}}
|
||||
</div>
|
||||
<a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"
|
||||
[title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">
|
||||
{{keyIn}}
|
||||
<span class="custom-external custom-icon space"></span>
|
||||
</a>
|
||||
</div>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</div>
|
||||
<no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
|
||||
(pageChange)="updateBioentitiesPage($event)"
|
||||
[page]="bioentitiesPage" [pageSize]="2*pageSize"
|
||||
[totalResults]="bioentitiesNum">
|
||||
</no-load-paging>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="enermapsId && properties.enermapsURL">
|
||||
<div id="enermaps" class="landing-section uk-padding uk-padding-remove-horizontal">
|
||||
<div class=" uk-inline uk-text-center ">
|
||||
<img class="uk-width-auto" [src]="properties.enermapsURL +'/images/datasets/' + enermapsId +
|
||||
'.png'"
|
||||
alt="Enermaps tool preview" loading="lazy">
|
||||
<div class="uk-overlay uk-overlay-default uk-position-bottom">
|
||||
<p>Visit <a
|
||||
class=" uk-margin-right uk-margin-small-top"
|
||||
[href]="properties.enermapsURL + '/?shared_id=' + enermapsId" target="_blank" >
|
||||
Enermaps tool <span class="custom-external custom-icon space"></span>
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<ul *ngIf="enermapsDetails?.length > 0" class="uk-list uk-animation-fade">
|
||||
<ng-container *ngFor="let detail of enermapsDetails">
|
||||
<li *ngIf="detail[0] && detail[1]">
|
||||
<span class="uk-text-meta">{{detail[0]}}: </span>
|
||||
<span>
|
||||
<ng-container *ngFor="let word of detail[1].split(' ')">
|
||||
<ng-container *ngIf="!word.startsWith('http://') && !word.startsWith('https://')">{{word}} </ng-container>
|
||||
<a *ngIf="word.startsWith('http://') || word.startsWith('https://')"
|
||||
target="_blank" [href]="word">{{word}} </a>
|
||||
</ng-container>
|
||||
</span>
|
||||
</li>
|
||||
</ng-container>
|
||||
</ul>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin-small-top uk-flex" uk-sticky="bottom: true" [attr.offset]="offset">
|
||||
<!-- Last Index Info-->
|
||||
<div class="uk-width-2-3@m uk-width-1-2">
|
||||
<img src="assets/common-assets/graph.svg" style="opacity: 0.4; width:20px; height:22px" loading="lazy"
|
||||
alt="graph">
|
||||
<span class="uk-margin-small-left uk-text-baseline uk-text-muted">Powered by <a href="https://graph.openaire.eu" class="graph-color">OpenAIRE Research Graph</a></span>
|
||||
<span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-muted">
|
||||
<img src="assets/common-assets/graph.svg" style="opacity: 0.4; width:18px; height:20px" loading="lazy" alt="graph">
|
||||
<span class="uk-margin-small-left uk-text-baseline uk-text-meta uk-text-xsmall">
|
||||
Powered by <a href="https://graph.openaire.eu" target="_blank" class="graph">OpenAIRE Research Graph</a>
|
||||
</span>
|
||||
<span *ngIf="indexUpdateDate" class="uk-text-baseline uk-text-meta uk-text-xsmall">
|
||||
. Last update of records in OpenAIRE: {{indexUpdateDate | date: 'MMM dd, yyyy'}}
|
||||
</span>
|
||||
</div>
|
||||
<!--Feedback-->
|
||||
<div class="uk-width-expand uk-text-right">
|
||||
<span class="uk-text-muted">Any information missing or wrong?</span>
|
||||
<a (click)="showFeedback = true; scroll()" class="portal-link space">Report an Issue</a>
|
||||
<span class="uk-text-meta uk-text-xsmall">Anything wrong?</span>
|
||||
<a (click)="showFeedback = true; scroll()" class="uk-text-xsmall"> Report an Issue</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- right box-->
|
||||
<div *ngIf="resultLandingInfo" class="uk-width-medium uk-background-muted">
|
||||
<div *ngIf="resultLandingInfo"
|
||||
class="uk-width-1-3 uk-width-1-4@l uk-padding-remove uk-background-muted uk-text-small" [class.uk-animation-right]="viewAll">
|
||||
<div class="uk-sticky uk-overflow-auto landing-column-height" uk-sticky="bottom: true" [attr.offset]="offset">
|
||||
<div class="uk-margin-medium-top">
|
||||
<div class="uk-margin-medium-top uk-list uk-list-large uk-padding-small uk-padding-remove-vertical" [class.uk-list-divider]="!viewAll">
|
||||
<!-- EGI Notebook-->
|
||||
<div *ngIf="resultLandingInfo.showEgiNotebookButton && properties.adminToolsPortalType == 'explore'
|
||||
&& (properties.environment == 'beta' || properties.environment == 'development')">
|
||||
&& (properties.environment == 'beta' || properties.environment == 'development') && (!viewAll || viewAll=='egiNotebook')">
|
||||
<a class="uk-link-text uk-text-bold uk-text-uppercase"
|
||||
target="_blank" [href]="properties.egiNotebookLink">
|
||||
<span class="uk-icon-button uk-icon">
|
||||
<!-- <span class="uk-icon-button uk-icon">-->
|
||||
<img src="assets/common-assets/eosc-logo.png"
|
||||
loading="lazy" alt="eosc_logo" style="width:28px; height:28px">
|
||||
</span>
|
||||
<span class="uk-margin-small-left"><u>EOSC SERVICE: EGI NOTEBOOK</u></span>
|
||||
<span class="custom-external custom-icon space"></span>
|
||||
loading="lazy" alt="eosc_logo" style="width:27px; height:27px">
|
||||
<!-- </span>-->
|
||||
<span class="uk-margin-small-left custom-external"><u>EOSC SERVICE: EGI NOTEBOOK</u></span>
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="resultLandingInfo.fos" class="uk-margin-medium-bottom">
|
||||
<div class="uk-text-muted">
|
||||
Fields of Science and Technology classification (FOS)
|
||||
</div>
|
||||
<div class="uk-margin-small-top">
|
||||
<div *ngIf="resultLandingInfo.fos && resultLandingInfo.fos.length > 0">
|
||||
{{resultLandingInfo.fos.join(', ')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="resultLandingInfo.sdg" class="uk-margin-medium-bottom">
|
||||
<div class="uk-text-muted">
|
||||
Sustainable Development Goals (SDG)
|
||||
</div>
|
||||
<div class="uk-margin-small-top">
|
||||
<div *ngIf="resultLandingInfo.sdg && resultLandingInfo.sdg.length > 0">
|
||||
{{resultLandingInfo.sdg.join(', ')}}
|
||||
</div>
|
||||
<!-- <hr *ngIf="resultLandingInfo.showEgiNotebookButton && properties.adminToolsPortalType == 'explore'-->
|
||||
<!-- && (properties.environment == 'beta' || properties.environment == 'development')">-->
|
||||
<div *ngIf="resultLandingInfo.sdg && resultLandingInfo.sdg.length > 0 && (!viewAll || viewAll=='sdg')">
|
||||
<sdg [subjects]="resultLandingInfo.sdg" (viewAllClicked)="viewAll=$event"></sdg>
|
||||
</div>
|
||||
<div *ngIf="resultLandingInfo.fos && resultLandingInfo.fos.length > 0 && (!viewAll || viewAll=='fos')">
|
||||
<fos [subjects]="resultLandingInfo.fos" (viewAllClicked)="viewAll=$event"></fos>
|
||||
</div>
|
||||
<!-- Funded By -->
|
||||
<div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0">
|
||||
<fundedBy [fundedByProjects]="resultLandingInfo.fundedByProjects"></fundedBy>
|
||||
<div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 && (!viewAll || viewAll=='fundedBy')">
|
||||
<fundedBy [fundedByProjects]="resultLandingInfo.fundedByProjects" (viewAllClicked)="viewAll=$event"></fundedBy>
|
||||
</div>
|
||||
<!-- <hr *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0">-->
|
||||
<!-- Communities -->
|
||||
<div *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length > 0">
|
||||
<relatedTo [contexts]="resultLandingInfo.contexts"></relatedTo>
|
||||
<div *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length > 0 && !noCommunities && (!viewAll || viewAll=='relatedTo')">
|
||||
<relatedTo [contexts]="resultLandingInfo.contexts" [viewAll]="viewAll=='relatedTo'"
|
||||
(viewAllClicked)="viewAll=$event" (noCommunities)="noCommunities = true"></relatedTo>
|
||||
</div>
|
||||
<!-- <hr *ngIf="resultLandingInfo.contexts && resultLandingInfo.contexts.length > 0"-->
|
||||
<!-- Download From -->
|
||||
<div
|
||||
*ngIf="resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.length > 0"
|
||||
class="uk-margin-medium-bottom">
|
||||
<div class="sideInfoTitle uk-margin-small-bottom uk-flex">
|
||||
<span class="uk-width-1-2">Download from</span>
|
||||
<span *ngIf="resultLandingInfo.deletedByInferenceIds"
|
||||
class="uk-width-1-2 uk-text-right">
|
||||
<a (click)="openDeletedByInference()">View all {{resultLandingInfo.deletedByInferenceIds.length}}
|
||||
versions</a>
|
||||
</span>
|
||||
</div>
|
||||
<availableOn [availableOn]="resultLandingInfo.hostedBy_collectedFrom"></availableOn>
|
||||
<div *ngIf="resultLandingInfo.hostedBy_collectedFrom && resultLandingInfo.hostedBy_collectedFrom.length > 0 && (!viewAll || viewAll=='availableOn')">
|
||||
<!-- <div class="uk-inline">-->
|
||||
<!-- <button class="uk-button uk-button-default" type="button">Click</button>-->
|
||||
<!-- <div uk-dropdown="mode: click">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.</div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="uk-button uk-button-default button-drop uk-width-1-1">Select a source...</div>-->
|
||||
<availableOn [availableOn]="resultLandingInfo.hostedBy_collectedFrom" (viewAllClicked)="viewAll=$event"></availableOn>
|
||||
</div>
|
||||
<!-- style="border: 1px solid red">-->
|
||||
<!-- <div *ngFor="let item of fakeArray.slice(0, 50); let i=index">test3.{{i}}</div>-->
|
||||
|
@ -293,216 +434,6 @@
|
|||
</div>
|
||||
<!-- *ngIf="numberOfTabs > 0"-->
|
||||
<div class="uk-padding-remove-left uk-width-1-1 uk-margin-medium-top">
|
||||
<div class="main-tabs-div">
|
||||
<!-- <ng-template #summary_tab>-->
|
||||
<!-- <div class="uk-grid uk-margin-remove">-->
|
||||
<!-- <div *ngIf="!hasPrimaryInfo && hasSecondaryInfo" class="uk-width-expand uk-padding">-->
|
||||
<!-- <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">-->
|
||||
<!-- No summary information available-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="hasPrimaryInfo" class="uk-width-expand uk-padding">-->
|
||||
<!-- <!– Description –>-->
|
||||
<!-- <div *ngIf="resultLandingInfo.description && resultLandingInfo.description.length > 0"-->
|
||||
<!-- class="uk-margin-medium-bottom">-->
|
||||
<!-- <div class="uk-text-justify ">-->
|
||||
<!-- <div class="uk-text-muted">Abstract</div>-->
|
||||
<!-- <div class=" uk-height-max-medium uk-overflow-auto">-->
|
||||
<!-- <div *ngFor="let description of resultLandingInfo.description" class="uk-margin-small-bottom ">-->
|
||||
<!-- {{description}}</div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||-->
|
||||
<!-- resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">-->
|
||||
<!-- <showSubjects [subjects]="resultLandingInfo.subjects"-->
|
||||
<!-- [otherSubjects]="resultLandingInfo.otherSubjects"-->
|
||||
<!-- [classifiedSubjects]="resultLandingInfo.classifiedSubjects">-->
|
||||
<!-- </showSubjects>-->
|
||||
<!-- </div>-->
|
||||
<!-- <!– Related Organizations–>-->
|
||||
<!-- <div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"-->
|
||||
<!-- class="uk-margin-medium-bottom uk-width-2-3@m">-->
|
||||
<!-- <div class="uk-text-muted">Related Organizations</div>-->
|
||||
<!-- <ul class="uk-list organizations uk-margin-remove-top">-->
|
||||
<!-- <li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">-->
|
||||
<!-- <a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">-->
|
||||
<!-- {{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}-->
|
||||
<!-- <span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>-->
|
||||
<!-- </a>-->
|
||||
<!-- <div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">-->
|
||||
<!-- <a (click)="showAll = !showAll;">-->
|
||||
<!-- View more-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">-->
|
||||
<!-- <a (click)="showAll = !showAll;">View less</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">-->
|
||||
<!-- <div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||-->
|
||||
<!-- resultLandingInfo.contexts && resultLandingInfo.contexts.length >0">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"-->
|
||||
<!-- class="uk-width-expand uk-padding">-->
|
||||
<!-- <div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">-->
|
||||
<!-- No summary information available-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-template>-->
|
||||
<!-- <ng-template #references_tab>-->
|
||||
<!-- <div class="uk-grid uk-margin-remove">-->
|
||||
<!-- <div class="uk-width-expand uk-padding">-->
|
||||
<!-- <div>-->
|
||||
<!-- <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"-->
|
||||
<!-- (pageChange)="updateReferencesPage($event)"-->
|
||||
<!-- [page]="referencesPage" [pageSize]="1.5*pageSize"-->
|
||||
<!-- [totalResults]="resultLandingInfo.references.length">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- <div-->
|
||||
<!-- *ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">-->
|
||||
<!-- <p *ngIf="item">-->
|
||||
<!-- {{item.name}}-->
|
||||
<!-- <ng-container *ngIf="item.ids && item.ids.length > 0">-->
|
||||
<!-- <span *ngFor="let id of item.ids">-->
|
||||
<!-- [<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"-->
|
||||
<!-- target="_blank">{{getReferenceIdName(id)}}</a>-->
|
||||
<!-- <a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"-->
|
||||
<!-- [queryParams]="{id: id.value}"-->
|
||||
<!-- target="_blank">OpenAIRE</a>]-->
|
||||
<!-- </span>-->
|
||||
<!-- </ng-container>-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"-->
|
||||
<!-- (pageChange)="updateReferencesPage($event)"-->
|
||||
<!-- [page]="referencesPage" [pageSize]="1.5*pageSize"-->
|
||||
<!-- [totalResults]="resultLandingInfo.references.length">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-template>-->
|
||||
|
||||
<!-- <ng-template #relation_in_tab let-researchResults="researchResults" let-header="header" let-relatedClassFilters="relatedClassFilters">-->
|
||||
<!-- <div-->
|
||||
<!-- *ngIf="researchResults && researchResults.length > 0"-->
|
||||
<!-- class="uk-margin-bottom">-->
|
||||
<!-- <h6 *ngIf="header">{{header}}</h6>-->
|
||||
<!-- <mat-form-field *ngIf="relatedClassFilters?.size > 1" class="matSelectionFormField">-->
|
||||
<!-- <mat-label>Filter by relation:</mat-label>-->
|
||||
<!-- <mat-select [(ngModel)]="relatedClassSelected" (ngModelChange)="relatedClassChanged()"-->
|
||||
<!-- [disableOptionCentering]="true"-->
|
||||
<!-- panelClass="matSelectionPanel"-->
|
||||
<!-- class="uk-text-bold matSelection">-->
|
||||
<!-- <mat-option [value]="">All relations</mat-option>-->
|
||||
<!-- <mat-option *ngFor="let relatedClass of relatedClassFilters" [value]="relatedClass">{{relatedClass}}</mat-option>-->
|
||||
<!-- </mat-select>-->
|
||||
<!-- </mat-form-field>-->
|
||||
<!-- <no-load-paging-->
|
||||
<!-- [type]="'research outcomes'"-->
|
||||
<!-- (pageChange)="updateRelatedPage($event)"-->
|
||||
<!-- [page]="relatedPage" [pageSize]="pageSize"-->
|
||||
<!-- [totalResults]="researchResults.length">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- <ul class="uk-list uk-list-divider uk-margin">-->
|
||||
<!-- <li *ngFor="let item of researchResults.slice((relatedPage-1)*pageSize, relatedPage*pageSize)">-->
|
||||
<!-- <result-preview [modal]="relationModal" [properties]="properties"-->
|
||||
<!-- [result]="getResultPreview(item)"-->
|
||||
<!-- [isCard]="false"></result-preview>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <no-load-paging *ngIf="researchResults.length > pageSize"-->
|
||||
<!-- [type]="'research outcomes'"-->
|
||||
<!-- (pageChange)="updateRelatedPage($event)"-->
|
||||
<!-- [page]="relatedPage" [pageSize]="pageSize"-->
|
||||
<!-- [totalResults]="researchResults.length">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-template>-->
|
||||
|
||||
<!-- <ng-template #all_related_tab>-->
|
||||
<!-- <div class="uk-grid uk-margin-remove">-->
|
||||
<!-- <div class="uk-width-expand uk-padding">-->
|
||||
<!-- <ng-container *ngTemplateOutlet="relation_in_tab; context: { researchResults: filteredRelatedResults, header: '', relatedClassFilters: resultLandingInfo.relatedClassFilters}"></ng-container>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-template>-->
|
||||
<!-- <ng-template #bioentities_tab>-->
|
||||
<!-- <div class="uk-grid uk-margin-remove">-->
|
||||
<!-- <div class="uk-width-expand uk-padding">-->
|
||||
<!-- <div>-->
|
||||
<!-- <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"-->
|
||||
<!-- (pageChange)="updateBioentitiesPage($event)"-->
|
||||
<!-- [page]="bioentitiesPage" [pageSize]="2*pageSize"-->
|
||||
<!-- [totalResults]="bioentitiesNum">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- <div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>-->
|
||||
<!-- <ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">-->
|
||||
<!-- <ng-container-->
|
||||
<!-- *ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">-->
|
||||
<!-- <div>-->
|
||||
<!-- <div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">-->
|
||||
<!-- {{keyIn}}-->
|
||||
<!-- </div>-->
|
||||
<!-- <a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"-->
|
||||
<!-- [title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">-->
|
||||
<!-- {{keyIn}}-->
|
||||
<!-- <span class="custom-external custom-icon space"></span>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-container>-->
|
||||
<!-- </ng-container>-->
|
||||
<!-- </div>-->
|
||||
<!-- <no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"-->
|
||||
<!-- (pageChange)="updateBioentitiesPage($event)"-->
|
||||
<!-- [page]="bioentitiesPage" [pageSize]="2*pageSize"-->
|
||||
<!-- [totalResults]="bioentitiesNum">-->
|
||||
<!-- </no-load-paging>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </ng-template>-->
|
||||
<!-- <ng-template #enermaps_tab>-->
|
||||
<!-- <div class="uk-padding">-->
|
||||
<!-- <div class=" uk-inline uk-width-expand uk-text-center ">-->
|
||||
<!-- <img class="uk-width-auto" [src]="properties.enermapsURL +'/images/datasets/' + enermapsId +-->
|
||||
<!-- '.png'"-->
|
||||
<!-- alt="Enermaps tool preview" loading="lazy">-->
|
||||
<!-- <div class="uk-overlay uk-overlay-default uk-position-bottom">-->
|
||||
<!-- <p>Visit <a-->
|
||||
<!-- class=" uk-margin-right uk-margin-small-top"-->
|
||||
<!-- [href]="properties.enermapsURL + '/?shared_id=' + enermapsId" target="_blank" >-->
|
||||
<!-- Enermaps tool <span class="custom-external custom-icon space"></span>-->
|
||||
<!-- </a></p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ul *ngIf="enermapsDetails?.length > 0" class="uk-list uk-animation-fade">-->
|
||||
<!-- <ng-container *ngFor="let detail of enermapsDetails">-->
|
||||
<!-- <li *ngIf="detail[0] && detail[1]">-->
|
||||
<!-- <span class="uk-text-muted">{{detail[0]}}: </span>-->
|
||||
<!-- <span>-->
|
||||
<!-- <ng-container *ngFor="let word of detail[1].split(' ')">-->
|
||||
<!-- <ng-container *ngIf="!word.startsWith('http://') && !word.startsWith('https://')">{{word}} </ng-container>-->
|
||||
<!-- <a *ngIf="word.startsWith('http://') || word.startsWith('https://')"-->
|
||||
<!-- target="_blank" [href]="word">{{word}} </a>-->
|
||||
<!-- </ng-container>-->
|
||||
<!-- </span>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ng-container>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </ng-template>-->
|
||||
</div>
|
||||
<!-- B2 Note-->
|
||||
<div *ngIf="properties.b2noteAPIURL && resultLandingInfo" class="uk-margin-medium-top">
|
||||
<b2note #annotation [id]="id" [landingInfo]="resultLandingInfo" (pidEmitter)="pidInit($event)"></b2note>
|
||||
|
@ -521,15 +452,16 @@
|
|||
</div>
|
||||
<!-- Other versions -->
|
||||
<modal-alert *ngIf="resultLandingInfo && resultLandingInfo.deletedByInferenceIds"
|
||||
#AlertModalDeletedByInference classBody="uk-width-xxlarge uk-padding-remove-right">
|
||||
<landing-header [properties]="properties" [title]="resultLandingInfo.title" [modal]="AlertModalDeletedByInference"
|
||||
[subTitle]="resultLandingInfo.subtitle" [authorLimit]="10" [showAllAuthors]="false"
|
||||
titleClass="title-grey-background"
|
||||
[entityType]="getTypeName()" [authors]="resultLandingInfo.authors" [types]="resultLandingInfo.types"
|
||||
[year]="resultLandingInfo.date" [embargoEndDate]="resultLandingInfo.embargoEndDate"
|
||||
[isTitleH1]="false">
|
||||
</landing-header>
|
||||
<div class="uk-margin-medium-top uk-margin-medium-right">
|
||||
#AlertModalDeletedByInference classBody="uk-width-xxlarge uk-padding-remove"
|
||||
classTitle="landing-modal-header">
|
||||
<!-- <landing-header [properties]="properties" [title]="resultLandingInfo.title" [modal]="AlertModalDeletedByInference"-->
|
||||
<!-- [subTitle]="resultLandingInfo.subtitle" [authorLimit]="10" [showAllAuthors]="false"-->
|
||||
<!-- titleClass="title-grey-background"-->
|
||||
<!-- [entityType]="getTypeName()" [authors]="resultLandingInfo.authors" [types]="resultLandingInfo.types"-->
|
||||
<!-- [year]="resultLandingInfo.date" [embargoEndDate]="resultLandingInfo.embargoEndDate"-->
|
||||
<!-- [isTitleH1]="false">-->
|
||||
<!-- </landing-header>-->
|
||||
<div class="uk-margin-medium-top uk-margin-medium-right uk-padding">
|
||||
<deletedByInference *ngIf="type == 'publication' && deleteByInferenceOpened"
|
||||
[id]="resultLandingInfo.record['result']['header']['dri:objIdentifier']"
|
||||
[ids]="resultLandingInfo.deletedByInferenceIds"
|
||||
|
@ -610,103 +542,6 @@
|
|||
[type]="title.toLowerCase()" [piwikSiteId]="piwikSiteId"></citeThis>
|
||||
</modal-alert>
|
||||
|
||||
<ng-template #summary_tab>
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div *ngIf="!hasPrimaryInfo && hasSecondaryInfo" class="uk-width-expand uk-padding">
|
||||
<div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
|
||||
No summary information available
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="hasPrimaryInfo" class="uk-width-expand uk-padding">
|
||||
<!-- Description -->
|
||||
<div *ngIf="resultLandingInfo.description && resultLandingInfo.description.length > 0"
|
||||
class="uk-margin-medium-bottom">
|
||||
<div class="uk-text-justify ">
|
||||
<div class="uk-text-muted">Abstract</div>
|
||||
<div class=" uk-height-max-medium uk-overflow-auto">
|
||||
<div *ngFor="let description of resultLandingInfo.description" class="uk-margin-small-bottom ">
|
||||
{{description}}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="resultLandingInfo.subjects || resultLandingInfo.otherSubjects ||
|
||||
resultLandingInfo.classifiedSubjects" class="uk-margin-medium-bottom">
|
||||
<showSubjects [subjects]="resultLandingInfo.subjects"
|
||||
[otherSubjects]="resultLandingInfo.otherSubjects"
|
||||
[classifiedSubjects]="resultLandingInfo.classifiedSubjects">
|
||||
</showSubjects>
|
||||
</div>
|
||||
<!-- Related Organizations-->
|
||||
<div *ngIf="resultLandingInfo.organizations && resultLandingInfo.organizations.length > 0"
|
||||
class="uk-margin-medium-bottom uk-width-2-3@m">
|
||||
<div class="uk-text-muted">Related Organizations</div>
|
||||
<ul class="uk-list organizations uk-margin-remove-top">
|
||||
<li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
|
||||
<a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
|
||||
{{(organization.name ? organization.name : (organization.shortname?organization.shortname:'[No title available]'))}}
|
||||
<span *ngIf="!organization.name && organization.shortname">({{organization.shortname}})</span>
|
||||
</a>
|
||||
<div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
|
||||
<a (click)="showAll = !showAll;">
|
||||
View more
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
|
||||
<a (click)="showAll = !showAll;">View less</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div *ngIf="hasSecondaryInfo" class="uk-width-1-3@m uk-width-1-1 right-column uk-padding-remove">
|
||||
<div *ngIf="resultLandingInfo.fundedByProjects && resultLandingInfo.fundedByProjects.length > 0 ||
|
||||
resultLandingInfo.contexts && resultLandingInfo.contexts.length >0">
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="!hasPrimaryInfo && !hasSecondaryInfo"
|
||||
class="uk-width-expand uk-padding">
|
||||
<div class="uk-animation-fade uk-alert uk-alert-primary" role="alert">
|
||||
No summary information available
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #references_tab>
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding">
|
||||
<div>
|
||||
<no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
|
||||
(pageChange)="updateReferencesPage($event)"
|
||||
[page]="referencesPage" [pageSize]="1.5*pageSize"
|
||||
[totalResults]="resultLandingInfo.references.length">
|
||||
</no-load-paging>
|
||||
<div
|
||||
*ngFor="let item of resultLandingInfo.references.slice((referencesPage-1)*1.5*pageSize, referencesPage*1.5*pageSize)">
|
||||
<p *ngIf="item">
|
||||
{{item.name}}
|
||||
<ng-container *ngIf="item.ids && item.ids.length > 0">
|
||||
<span *ngFor="let id of item.ids">
|
||||
[<a *ngIf="id.type !== 'openaire'" href="{{getReferenceUrl(id)}}"
|
||||
target="_blank">{{getReferenceIdName(id)}}</a>
|
||||
<a *ngIf="id.type === 'openaire'" [routerLink]="properties.searchLinkToResult.split('?')[0]"
|
||||
[queryParams]="{id: id.value}"
|
||||
target="_blank">OpenAIRE</a>]
|
||||
</span>
|
||||
</ng-container>
|
||||
</p>
|
||||
</div>
|
||||
<no-load-paging *ngIf="resultLandingInfo.references.length > 1.5*pageSize" [type]="'references'"
|
||||
(pageChange)="updateReferencesPage($event)"
|
||||
[page]="referencesPage" [pageSize]="1.5*pageSize"
|
||||
[totalResults]="resultLandingInfo.references.length">
|
||||
</no-load-paging>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #relation_in_tab let-researchResults="researchResults" let-header="header" let-relatedClassFilters="relatedClassFilters">
|
||||
<div
|
||||
|
@ -744,77 +579,3 @@
|
|||
</no-load-paging>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #all_related_tab>
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding">
|
||||
<ng-container *ngTemplateOutlet="relation_in_tab; context: { researchResults: filteredRelatedResults, header: '', relatedClassFilters: resultLandingInfo.relatedClassFilters}"></ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #bioentities_tab>
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding">
|
||||
<div>
|
||||
<no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
|
||||
(pageChange)="updateBioentitiesPage($event)"
|
||||
[page]="bioentitiesPage" [pageSize]="2*pageSize"
|
||||
[totalResults]="bioentitiesNum">
|
||||
</no-load-paging>
|
||||
<div class="uk-child-width-1-4@s uk-child-width-1-2 bioentities-buttons" uk-grid>
|
||||
<ng-container *ngFor="let key of getKeys(resultLandingInfo.bioentities) let i=index">
|
||||
<ng-container
|
||||
*ngFor="let keyIn of keysToArray(resultLandingInfo.bioentities.get(key)).slice((bioentitiesPage-1)*2*pageSize, bioentitiesPage*2*pageSize)">
|
||||
<div>
|
||||
<div [title]="key" *ngIf="keyIn && !resultLandingInfo.bioentities.get(key).get(keyIn)">
|
||||
{{keyIn}}
|
||||
</div>
|
||||
<a [href]="resultLandingInfo.bioentities.get(key).get(keyIn)" target="_blank"
|
||||
[title]="key" *ngIf="keyIn && resultLandingInfo.bioentities.get(key).get(keyIn)">
|
||||
{{keyIn}}
|
||||
<span class="custom-external custom-icon space"></span>
|
||||
</a>
|
||||
</div>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</div>
|
||||
<no-load-paging *ngIf="bioentitiesNum > 2*pageSize" [type]="'bioentities'"
|
||||
(pageChange)="updateBioentitiesPage($event)"
|
||||
[page]="bioentitiesPage" [pageSize]="2*pageSize"
|
||||
[totalResults]="bioentitiesNum">
|
||||
</no-load-paging>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #enermaps_tab>
|
||||
<div class="uk-padding">
|
||||
<div class=" uk-inline uk-width-expand uk-text-center ">
|
||||
<img class="uk-width-auto" [src]="properties.enermapsURL +'/images/datasets/' + enermapsId +
|
||||
'.png'"
|
||||
alt="Enermaps tool preview" loading="lazy">
|
||||
<div class="uk-overlay uk-overlay-default uk-position-bottom">
|
||||
<p>Visit <a
|
||||
class=" uk-margin-right uk-margin-small-top"
|
||||
[href]="properties.enermapsURL + '/?shared_id=' + enermapsId" target="_blank" >
|
||||
Enermaps tool <span class="custom-external custom-icon space"></span>
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<ul *ngIf="enermapsDetails?.length > 0" class="uk-list uk-animation-fade">
|
||||
<ng-container *ngFor="let detail of enermapsDetails">
|
||||
<li *ngIf="detail[0] && detail[1]">
|
||||
<span class="uk-text-muted">{{detail[0]}}: </span>
|
||||
<span>
|
||||
<ng-container *ngFor="let word of detail[1].split(' ')">
|
||||
<ng-container *ngIf="!word.startsWith('http://') && !word.startsWith('https://')">{{word}} </ng-container>
|
||||
<a *ngIf="word.startsWith('http://') || word.startsWith('https://')"
|
||||
target="_blank" [href]="word">{{word}} </a>
|
||||
</ng-container>
|
||||
</span>
|
||||
</li>
|
||||
</ng-container>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</ng-template>
|
||||
|
|
|
@ -18,11 +18,12 @@ import {IndexInfoService} from "../../utils/indexInfo.service";
|
|||
import {Identifier, StringUtils} from "../../utils/string-utils.class";
|
||||
import {properties} from "../../../../environments/environment";
|
||||
import {ISVocabulariesService} from "../../utils/staticAutoComplete/ISVocabularies.service";
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
import {Session} from "../../login/utils/helper.class";
|
||||
import {Subscription} from "rxjs";
|
||||
import {AnnotationComponent} from "../annotation/annotation.component";
|
||||
import {ParsingFunctions} from "../landing-utils/parsingFunctions.class";
|
||||
import {ConnectHelper} from "../../connect/connectHelper";
|
||||
import {UserManagementService} from "../../services/user-management.service";
|
||||
import {OpenaireEntities} from "../../utils/properties/searchFields";
|
||||
|
||||
declare var UIkit;
|
||||
|
||||
|
@ -95,6 +96,8 @@ export class ResultLandingComponent {
|
|||
private doi: string;
|
||||
subscriptions = [];
|
||||
properties: EnvProperties = properties;
|
||||
public openaireEntities = OpenaireEntities;
|
||||
|
||||
public indexUpdateDate: Date;
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
|
@ -108,7 +111,7 @@ export class ResultLandingComponent {
|
|||
public pidsArrayString: string = "";
|
||||
public identifier: Identifier;
|
||||
|
||||
public isLoggedIn: boolean = Session.isLoggedIn();
|
||||
public isLoggedIn: boolean = false;
|
||||
public pid: string;
|
||||
@ViewChild("annotation") annotation: AnnotationComponent;
|
||||
public contextsWithLink: any;
|
||||
|
@ -117,7 +120,11 @@ export class ResultLandingComponent {
|
|||
public filteredRelatedResults: RelationResult[];
|
||||
|
||||
public offset: number;
|
||||
fakeArray = new Array(100);
|
||||
|
||||
public viewAll: string = "";
|
||||
public noCommunities: boolean = false;
|
||||
|
||||
public stickyHeader: boolean = false;
|
||||
|
||||
constructor(private _resultLandingService: ResultLandingService,
|
||||
private _vocabulariesService: ISVocabulariesService,
|
||||
|
@ -132,10 +139,14 @@ export class ResultLandingComponent {
|
|||
private metricsService: MetricsService,
|
||||
private cdr: ChangeDetectorRef,
|
||||
private _location: Location,
|
||||
private indexInfoService: IndexInfoService) {
|
||||
private indexInfoService: IndexInfoService,
|
||||
private userManagementService: UserManagementService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.isLoggedIn = !!user;
|
||||
}, error => { this.isLoggedIn = false} ));
|
||||
if (typeof document !== 'undefined') {
|
||||
this.subscriptions.push(this.indexInfoService.getLastIndexDate(this.properties).subscribe(lastIndexUpdate => {
|
||||
if (lastIndexUpdate) {
|
||||
|
|
|
@ -31,6 +31,7 @@ import {LoadingModule} from "../../utils/loading/loading.module";
|
|||
import {OrcidModule} from "../../orcid/orcid.module";
|
||||
import {MatFormFieldModule} from "@angular/material/form-field";
|
||||
import {MatSelectModule} from "@angular/material/select";
|
||||
import {IconsModule} from "../../utils/icons/icons.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -39,7 +40,7 @@ import {MatSelectModule} from "@angular/material/select";
|
|||
MetricsModule, AltMetricsModule, Schema2jsonldModule, SEOServiceModule,
|
||||
DeletedByInferenceModule, ShowAuthorsModule, HelperModule, ResultLandingUtilsModule, AlertModalModule,
|
||||
AnnotationModule, LandingHeaderModule, NoLoadPaging, ResultPreviewModule, FeedbackModule, TabsModule, LoadingModule,
|
||||
OrcidModule, MatFormFieldModule, MatSelectModule
|
||||
OrcidModule, MatFormFieldModule, MatSelectModule, IconsModule
|
||||
],
|
||||
declarations: [
|
||||
ResultLandingComponent
|
||||
|
|
Loading…
Reference in New Issue