2021-11-12 09:13:22 +00:00
|
|
|
export interface Dataset {
|
|
|
|
abstract_additional: Array<string>;
|
|
|
|
abstract_output: string;
|
|
|
|
author: Array<string>;
|
|
|
|
author_sort: Array<string>;
|
|
|
|
belongs_to_bibliography: boolean;
|
|
|
|
creating_corporation: string;
|
|
|
|
doctype: string;
|
|
|
|
geo_location: string;
|
|
|
|
id: number;
|
|
|
|
identifier: Array<string>;
|
|
|
|
language: string;
|
|
|
|
licence: string;
|
|
|
|
publisher_name: string;
|
|
|
|
server_date_published: Array<number>;
|
|
|
|
subject: Array<string>;
|
|
|
|
title_output: string;
|
|
|
|
year: number;
|
|
|
|
year_inverted: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Suggestion {
|
|
|
|
constructor(public value: string, public type: SearchType) {}
|
|
|
|
// value!: string;
|
|
|
|
// type!: SearchType;
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum SearchType {
|
|
|
|
Title = "title",
|
|
|
|
Author = "author",
|
|
|
|
Subject = "subject",
|
|
|
|
}
|
2021-12-01 14:45:01 +00:00
|
|
|
|
|
|
|
export interface DbDataset {
|
|
|
|
id: number;
|
|
|
|
contributing_corporation: string;
|
|
|
|
creating_corporation: string;
|
|
|
|
publisher_name: string;
|
|
|
|
embargo_date: string;
|
|
|
|
publish_id: number;
|
|
|
|
project_id: number;
|
|
|
|
type: string;
|
|
|
|
language: string;
|
|
|
|
server_state: string;
|
|
|
|
belongs_to_bibliography: boolean;
|
|
|
|
created_at: string;
|
|
|
|
server_date_modified: string;
|
|
|
|
server_date_published: string;
|
|
|
|
account_id: number;
|
|
|
|
editor_id: number;
|
|
|
|
reviewer_id: number;
|
|
|
|
preferred_reviewer: number;
|
|
|
|
preferred_reviewer_email: string;
|
|
|
|
reject_editor_note: string;
|
|
|
|
reject_reviewer_note: string;
|
|
|
|
reviewer_note_visible: string;
|
2021-12-07 11:22:25 +00:00
|
|
|
titles: Array<Title>;
|
|
|
|
authors: Array<Author>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Title {
|
|
|
|
id: number;
|
|
|
|
type: string;
|
|
|
|
value: string;
|
|
|
|
language: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Author {
|
|
|
|
id: number;
|
|
|
|
academic_title: string;
|
|
|
|
date_of_birth: string;
|
|
|
|
email: string;
|
|
|
|
first_name: string;
|
|
|
|
last_name: string;
|
|
|
|
name_type: string;
|
2021-12-01 14:45:01 +00:00
|
|
|
}
|