@@ -61,9 +61,7 @@ export class SortService {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private readonly fieldExtractors: Record<string, (book: Book) => unknown> = {
|
private readonly fieldExtractors: Record<string, (book: Book) => unknown> = {
|
||||||
title: (book) => book.metadata?.seriesName?.toLowerCase()
|
title: (book) => book.metadata?.title?.toLowerCase() || null,
|
||||||
|| book.metadata?.title?.toLowerCase()
|
|
||||||
|| null,
|
|
||||||
author: (book) => book.metadata?.authors?.map(a => a.toLowerCase()).join(", ") || null,
|
author: (book) => book.metadata?.authors?.map(a => a.toLowerCase()).join(", ") || null,
|
||||||
authorSurnameVorname: (book) => book.metadata?.authors?.map(a => {
|
authorSurnameVorname: (book) => book.metadata?.authors?.map(a => {
|
||||||
const parts = a.trim().split(/\s+/);
|
const parts = a.trim().split(/\s+/);
|
||||||
|
|||||||
Reference in New Issue
Block a user