mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Tolerate invalid locality reference dates
This commit is contained in:
@@ -259,7 +259,31 @@ export const getLocalityDetails = async (id: number, user: User | undefined) =>
|
||||
now_lr: {
|
||||
include: {
|
||||
ref_ref: {
|
||||
include: {
|
||||
select: {
|
||||
rid: true,
|
||||
ref_type_id: true,
|
||||
journal_id: true,
|
||||
title_primary: true,
|
||||
date_primary: true,
|
||||
volume: true,
|
||||
issue: true,
|
||||
start_page: true,
|
||||
end_page: true,
|
||||
publisher: true,
|
||||
pub_place: true,
|
||||
title_secondary: true,
|
||||
date_secondary: true,
|
||||
title_series: true,
|
||||
issn_isbn: true,
|
||||
ref_abstract: true,
|
||||
web_url: true,
|
||||
misc_1: true,
|
||||
misc_2: true,
|
||||
gen_notes: true,
|
||||
printed_language: true,
|
||||
used_morph: true,
|
||||
used_now: true,
|
||||
used_gene: true,
|
||||
ref_authors: true,
|
||||
ref_journal: true,
|
||||
},
|
||||
@@ -291,6 +315,13 @@ export const getLocalityDetails = async (id: number, user: User | undefined) =>
|
||||
...lau,
|
||||
lau_coordinator: getPersonDisplayName(coordinatorPerson, lau.lau_coordinator),
|
||||
lau_authorizer: getPersonDisplayName(authorizerPerson, lau.lau_authorizer),
|
||||
now_lr: lau.now_lr.map(lr => ({
|
||||
...lr,
|
||||
ref_ref: {
|
||||
...lr.ref_ref,
|
||||
exact_date: null,
|
||||
},
|
||||
})),
|
||||
updates,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user