- only individual bulma components, not everything

- styleing for search detail page
This commit is contained in:
Arno Kaimbacher 2021-12-16 14:14:58 +01:00
parent 3e73b91cf0
commit 57ba2af299
6 changed files with 151 additions and 75 deletions

View file

@ -156,6 +156,10 @@ export class DbDataset {
// return ($embargoDate->lessThan($now));
}
public get MainTitle(): Nullable<Title> {
return this.titles.find((e) => e.type === TitleType.Main);
}
public get MainAbstract(): Nullable<Abstract> {
return this.abstracts.find((e) => e.type === AbstractType.Abstract);
}
@ -198,6 +202,10 @@ export enum AbstractType {
Other = " Other",
}
export enum TitleType {
Main = "Main",
Translated = "Translated",
}
export interface Title {
id: number;
type: string;
@ -220,6 +228,7 @@ export interface Author {
first_name: string;
last_name: string;
name_type: string;
full_name: string;
}
export interface Person {