2020-03-16 14:09:46 +01:00
|
|
|
import {Component, Input} from "@angular/core";
|
|
|
|
import {EnvProperties} from "../../../utils/properties/env-properties";
|
|
|
|
import {Author} from "../../../utils/result-preview/result-preview";
|
|
|
|
import {AlertModal} from "../../../utils/modal/alert";
|
|
|
|
|
|
|
|
@Component({
|
2023-01-25 10:53:32 +01:00
|
|
|
selector: 'landing-header',
|
|
|
|
template: `
|
|
|
|
<div class="title-section" [class.uk-margin-small-bottom]="!isSticky" [ngClass]="titleClass">
|
|
|
|
<div class="uk-margin-small-bottom">
|
2023-05-15 16:28:33 +02:00
|
|
|
<showTitle [isSticky]=isSticky [titleName]="title" classNames="uk-margin-remove-bottom"></showTitle>
|
|
|
|
<div *ngIf="subTitle && !isSticky">
|
2023-01-25 10:53:32 +01:00
|
|
|
<span class="uk-text-meta uk-text-small" [innerHTML]="subTitle"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-15 16:28:33 +02:00
|
|
|
<div *ngIf="!isSticky" class="uk-margin-bottom">
|
2023-02-17 18:40:05 +01:00
|
|
|
<entity-metadata [entityType]="entityType" [types]="types" [startDate]="startDate" [endDate]="endDate"
|
|
|
|
[currentDate]="currentDate" [status]="status" [openAccessMandatePublications]="openAccessMandatePublications"
|
|
|
|
[openAccessMandateDatasets]="openAccessMandateDatasets" [date]="date" [embargoEndDate]="embargoEndDate"
|
|
|
|
[underCuration]="underCuration" [publisher]="publisher" [journal]="journal"
|
|
|
|
[languages]="languages" [programmingLanguages]="programmingLanguages"
|
|
|
|
[compatibility]="compatibility" [aggregationStatus]="aggregationStatus"
|
2023-05-09 18:04:06 +02:00
|
|
|
[thematic]="thematic" [type]="type" [prevPath]="prevPath"
|
2023-07-19 11:20:49 +02:00
|
|
|
[countries]="countries" [projects]="projects"
|
2023-02-17 18:40:05 +01:00
|
|
|
></entity-metadata>
|
2022-12-20 14:27:18 +01:00
|
|
|
</div>
|
2023-01-25 10:53:32 +01:00
|
|
|
<div *ngIf="authors">
|
|
|
|
<showAuthors [authorsLimit]="authorLimit" [modal]="modal" [showAll]="showAllAuthors" [authors]="authors"
|
2023-02-22 22:13:46 +01:00
|
|
|
[isSticky]="isSticky" [isMobile]="isMobile"></showAuthors>
|
2023-01-25 10:53:32 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`
|
2020-03-16 14:09:46 +01:00
|
|
|
})
|
|
|
|
export class LandingHeaderComponent {
|
2023-02-22 22:13:46 +01:00
|
|
|
@Input() isMobile: boolean = false;
|
2023-01-25 10:53:32 +01:00
|
|
|
@Input() entityType: string;
|
|
|
|
@Input() properties: EnvProperties;
|
|
|
|
@Input() types: string[];
|
|
|
|
@Input() startDate: number; // project landing
|
|
|
|
@Input() endDate: number; // project landing
|
2023-01-23 15:19:00 +01:00
|
|
|
@Input() currentDate: number; // project landing
|
2023-01-25 10:53:32 +01:00
|
|
|
@Input() status: string; // project landing
|
2023-01-23 15:19:00 +01:00
|
|
|
@Input() openAccessMandatePublications: boolean // project landing
|
|
|
|
@Input() openAccessMandateDatasets: boolean // project landing
|
2023-01-25 10:53:32 +01:00
|
|
|
@Input() date: Date;
|
|
|
|
@Input() embargoEndDate: Date;
|
|
|
|
@Input() title: string;
|
|
|
|
@Input() subTitle: string;
|
|
|
|
@Input() authors: Author[];
|
|
|
|
@Input() authorLimit: number = 7;
|
|
|
|
@Input() showAllAuthors: boolean = true;
|
|
|
|
@Input() underCuration: boolean = false;
|
|
|
|
@Input() modal: AlertModal;
|
|
|
|
@Input() titleClass: string = null;
|
|
|
|
@Input() isSticky: boolean = false;
|
2023-01-09 17:35:28 +01:00
|
|
|
@Input() publisher; // showPublisher component
|
|
|
|
@Input() journal; // showPublisher component
|
|
|
|
@Input() languages;
|
|
|
|
@Input() programmingLanguages;
|
2023-01-23 15:19:00 +01:00
|
|
|
@Input() compatibility; // data provider landing
|
|
|
|
@Input() aggregationStatus; // data provider landing
|
|
|
|
@Input() thematic: boolean; // data provider landing
|
|
|
|
@Input() type; // data provider landing
|
2023-05-09 18:04:06 +02:00
|
|
|
@Input() prevPath: string = "";
|
2023-07-19 11:20:49 +02:00
|
|
|
@Input() countries;
|
|
|
|
@Input() projects;
|
2020-03-16 14:09:46 +01:00
|
|
|
}
|