From 6b5e7315466a334dd61d8134ee882a883dcc8dfd Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sat, 10 Oct 2026 11:21:00 +0300 Subject: [PATCH] Adds the web UI and localization for the path template and the artwork aggregation settings --- .../DTO/UsersManagement/UserSettingsDto.cs | 5 +++ .../Common/Enums/Common/ReleaseCountry.cs | 19 ++++++++-- .../Views/Library/Management/Index.ar-SA.resx | 3 ++ .../Views/Library/Management/Index.de-DE.resx | 3 ++ .../Views/Library/Management/Index.en-US.resx | 3 ++ .../Views/Library/Management/Index.es-ES.resx | 3 ++ .../Views/Library/Management/Index.fr-FR.resx | 3 ++ .../Views/Library/Management/Index.it-IT.resx | 3 ++ .../Views/Library/Management/Index.ja-JP.resx | 3 ++ .../Views/Library/Management/Index.resx | 3 ++ .../Views/Library/Management/Index.ro-RO.resx | 3 ++ .../Views/Library/Management/Index.uk-UA.resx | 3 ++ .../Views/Library/Management/Index.zh-CN.resx | 3 ++ .../Resources/Views/Tools/Settings.ar-SA.resx | 12 +++++++ .../Resources/Views/Tools/Settings.de-DE.resx | 12 +++++++ .../Resources/Views/Tools/Settings.en-US.resx | 12 +++++++ .../Resources/Views/Tools/Settings.es-ES.resx | 12 +++++++ .../Resources/Views/Tools/Settings.fr-FR.resx | 12 +++++++ .../Resources/Views/Tools/Settings.it-IT.resx | 12 +++++++ .../Resources/Views/Tools/Settings.ja-JP.resx | 12 +++++++ .../Core/Resources/Views/Tools/Settings.resx | 12 +++++++ .../Resources/Views/Tools/Settings.ro-RO.resx | 12 +++++++ .../Resources/Views/Tools/Settings.uk-UA.resx | 12 +++++++ .../Resources/Views/Tools/Settings.zh-CN.resx | 12 +++++++ .../Views/Library/Management/Index.cshtml | 1 + .../Core/Views/Tools/Settings.cshtml | 35 +++++++++++++++++-- 26 files changed, 220 insertions(+), 5 deletions(-) diff --git a/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs index 01e56548..4290cf87 100644 --- a/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs +++ b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs @@ -41,6 +41,11 @@ public class UserSettingsDto /// public bool ShouldAggregateMetadataWhenMissing { get; set; } + /// + /// Gets or sets whether the artwork of the media library items is aggregated from multiple providers, when it is missing, or not. + /// + public bool ShouldAggregateArtworkWhenMissing { get; set; } + /// /// Gets or sets whether PDF books are rendered as page images for the user, or not. Rendering PDFs as images preserves the /// original layout, but the pages are not selectable or searchable, unlike their text layer. diff --git a/src/Lumina.Presentation.Web/Common/Enums/Common/ReleaseCountry.cs b/src/Lumina.Presentation.Web/Common/Enums/Common/ReleaseCountry.cs index c989ec33..bce40470 100644 --- a/src/Lumina.Presentation.Web/Common/Enums/Common/ReleaseCountry.cs +++ b/src/Lumina.Presentation.Web/Common/Enums/Common/ReleaseCountry.cs @@ -2,7 +2,7 @@ namespace Lumina.Presentation.Web.Common.Enums.Common; /// -/// Enumeration for the country of a media release, using the ISO 3166-1 alpha-2 country codes. +/// Enumeration for the country of a media release, using the ISO 3166-1 alpha-2 country codes, together with the MusicBrainz special codes for releases issued across Europe or worldwide. /// public enum ReleaseCountry { @@ -984,5 +984,20 @@ public enum ReleaseCountry /// /// The ISO 3166-1 alpha-2 code of Zimbabwe. /// - ZW + ZW, + + /// + /// The ISO 3166-1 alpha-2 code of the Netherlands Antilles, withdrawn in 2010. + /// + AN, + + /// + /// The MusicBrainz code for a release issued across Europe. + /// + XE, + + /// + /// The MusicBrainz code for a release issued worldwide. + /// + XW } diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ar-SA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ar-SA.resx index 05110f11..4d546005 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ar-SA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ar-SA.resx @@ -189,6 +189,9 @@ إثراء البيانات الوصفية... + + استخراج البيانات الوصفية... + تجزئة محتويات الملفات... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx index ea60c1a2..93d2db81 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx @@ -189,6 +189,9 @@ Metadaten werden angereichert... + + Metadaten werden extrahiert... + Berechne die Datei-Hashes... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx index b772f4af..844849bc 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx @@ -189,6 +189,9 @@ Enriching metadata... + + Extracting metadata... + Hashing file contents... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx index b91da2a4..5059ef16 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx @@ -189,6 +189,9 @@ Enriqueciendo metadatos... + + Extrayendo metadatos... + Calculando los hashes de los archivos... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx index d8b63ab0..c3cf79e8 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx @@ -189,6 +189,9 @@ Enrichissement des métadonnées... + + Extraction des métadonnées... + Calcul des hachages des fichiers... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx index b8cdd83a..1e6c8f19 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx @@ -189,6 +189,9 @@ Arricchimento dei metadati... + + Estrazione dei metadati... + Calcolo degli hash dei file... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx index d9b01cb4..1ceebafa 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx @@ -189,6 +189,9 @@ メタデータを補完しています... + + メタデータを抽出しています... + ファイルのハッシュを計算中... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx index b772f4af..844849bc 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx @@ -189,6 +189,9 @@ Enriching metadata... + + Extracting metadata... + Hashing file contents... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx index dd574f10..c34fc20d 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx @@ -189,6 +189,9 @@ Se îmbogățesc metadatele... + + Se extrag metadatele... + Se calculează hash-urile fișierelor... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.uk-UA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.uk-UA.resx index 49cec819..16135874 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.uk-UA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.uk-UA.resx @@ -189,6 +189,9 @@ Збагачення метаданих... + + Видобування метаданих... + Обчислення хешів файлів... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx index 7fe4fc70..349cb9fc 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx @@ -189,6 +189,9 @@ 正在丰富元数据... + + 正在提取元数据... + 正在计算文件哈希... diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ar-SA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ar-SA.resx index abc108be..96b79082 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ar-SA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ar-SA.resx @@ -57,4 +57,16 @@ ما إذا كان يتم الحفاظ على التنسيق الأصلي لمحتوى الكتاب عند قراءته. يؤدي تفعيله إلى الاحتفاظ بمظهر الكتاب (الخطوط والألوان والمحاذاة)، لكن أنماط الكتب يمكنها تحميل موارد من خوادم خارجية، وقد تتمكن تلك الخوادم من مراقبة ذلك. عطّله لإزالة الأنماط. + + تجميع البيانات الوصفية عند فقدانها + + + عند التمكين، تُكمَّل البيانات الوصفية لعناصر المكتبة التي لا يوفّرها مزوّد البيانات الوصفية الأول من المزوّدين التاليين. + + + تجميع الأعمال الفنية عند فقدانها + + + عند التفعيل، تُستكمل الأعمال الفنية لعناصر المكتبة التي لا يوفرها مزود الأعمال الفنية الأول من المزودين التاليين. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx index deed41dc..e2d3bb19 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx @@ -57,4 +57,16 @@ Legt fest, ob die ursprüngliche Formatierung des Buchinhalts beibehalten wird, wenn Sie ein Buch lesen. Wenn die Option aktiviert ist, bleibt das Aussehen des Buches erhalten (Schriftarten, Farben, Ausrichtung). Buchstile können jedoch Ressourcen von externen Servern laden, die diese Server beobachten könnten. Deaktivieren Sie die Option, um die Stile zu entfernen. + + Metadaten bei Fehlen zusammenführen + + + Wenn aktiviert, werden die Metadaten von Bibliothekselementen, die der erste Metadatenanbieter nicht liefert, aus den nachfolgenden Anbietern ergänzt. + + + Artwork bei Fehlen zusammenführen + + + Wenn aktiviert, wird das Artwork von Bibliothekselementen, das der erste Artwork-Anbieter nicht liefert, aus den nachfolgenden Anbietern ergänzt. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx index 8dfc2097..2778bb63 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx @@ -57,4 +57,16 @@ Whether the original styling of book content is preserved when you read a book. Enabling it keeps the look of the book (fonts, colors, alignment), but book styles can load resources from external servers, which those servers could observe; disable it to strip the styles. + + Aggregate metadata when missing + + + When enabled, the metadata of library items that the first metadata provider does not supply is filled in from the following providers. + + + Aggregate artwork when missing + + + When enabled, the artwork of library items that the first artwork provider does not supply is filled in from the following providers. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx index 5ab824ba..fc36ab24 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx @@ -57,4 +57,16 @@ Indica si se conserva el estilo original del contenido de los libros al leer un libro. Activarlo mantiene el aspecto del libro (fuentes, colores, alineación), pero los estilos de los libros pueden cargar recursos de servidores externos, que esos servidores podrían observar. Desactívelo para eliminar los estilos. + + Agregar metadatos cuando faltan + + + Cuando está habilitado, los metadatos de los elementos de la biblioteca que el primer proveedor de metadatos no proporciona se completan con los proveedores siguientes. + + + Combinar ilustraciones cuando falten + + + Cuando está habilitado, las ilustraciones de los elementos de la biblioteca que el primer proveedor de ilustraciones no proporciona se completan desde los proveedores siguientes. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx index 23c50cd9..0366f7b8 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx @@ -57,4 +57,16 @@ Indique si le style d'origine du contenu des livres est conservé lorsque vous lisez un livre. L'activer préserve l'aspect du livre (polices, couleurs, alignement), mais les styles des livres peuvent charger des ressources depuis des serveurs externes, que ces serveurs pourraient observer. Désactivez-le pour supprimer les styles. + + Agréger les métadonnées manquantes + + + Lorsque cette option est activée, les métadonnées des éléments de bibliothèque que le premier fournisseur de métadonnées ne fournit pas sont complétées par les fournisseurs suivants. + + + Agréger les illustrations en cas d'absence + + + Lorsque cette option est activée, les illustrations des éléments de la bibliothèque que le premier fournisseur d'illustrations ne fournit pas sont complétées par les fournisseurs suivants. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx index 124a3da1..70ab422f 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx @@ -57,4 +57,16 @@ Indica se lo stile originale del contenuto dei libri viene conservato quando leggi un libro. Attivarlo mantiene l'aspetto del libro (font, colori, allineamento), ma gli stili dei libri possono caricare risorse da server esterni, che tali server potrebbero osservare. Disattivalo per rimuovere gli stili. + + Aggrega i metadati mancanti + + + Se abilitato, i metadati degli elementi della libreria che il primo provider di metadati non fornisce vengono completati con i provider successivi. + + + Aggrega le illustrazioni se mancanti + + + Se abilitato, le illustrazioni degli elementi della libreria che il primo provider di illustrazioni non fornisce vengono integrate dai provider successivi. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx index 60f5846d..6b24406d 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx @@ -57,4 +57,16 @@ 本を読むときに、本のコンテンツの元のスタイルを保持するかどうか。有効にすると本の見た目(フォント、色、配置)が維持されますが、本のスタイルは外部サーバーからリソースを読み込むことができ、そのサーバーがアクセスを監視できる可能性があります。無効にするとスタイルが削除されます。 + + 不足しているメタデータを集約する + + + 有効にすると、最初のメタデータプロバイダーが提供しないライブラリ項目のメタデータが、後続のプロバイダーから補完されます。 + + + 不足時にアートワークを統合 + + + 有効にすると、最初のアートワークプロバイダーが提供しないライブラリ項目のアートワークが、後続のプロバイダーから補完されます。 + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx index 8dfc2097..2778bb63 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx @@ -57,4 +57,16 @@ Whether the original styling of book content is preserved when you read a book. Enabling it keeps the look of the book (fonts, colors, alignment), but book styles can load resources from external servers, which those servers could observe; disable it to strip the styles. + + Aggregate metadata when missing + + + When enabled, the metadata of library items that the first metadata provider does not supply is filled in from the following providers. + + + Aggregate artwork when missing + + + When enabled, the artwork of library items that the first artwork provider does not supply is filled in from the following providers. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx index 09e79027..1a6e38b5 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx @@ -57,4 +57,16 @@ Dacă stilul original al conținutului cărții este păstrat atunci când citiți o carte. Activarea păstrează aspectul cărții (fonturi, culori, aliniere), dar stilurile cărților pot încărca resurse de pe servere externe, pe care acele servere le-ar putea observa. Dezactivați-l pentru a elimina stilurile. + + Agregați metadatele lipsă + + + Când este activat, metadatele elementelor din bibliotecă pe care primul furnizor de metadate nu le oferă sunt completate din furnizorii următori. + + + Agregă ilustrațiile când lipsesc + + + Când este activat, ilustrațiile elementelor din bibliotecă pe care primul furnizor de ilustrații nu le oferă sunt completate de la furnizorii următori. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.uk-UA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.uk-UA.resx index 7886c0d2..74bf06a6 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.uk-UA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.uk-UA.resx @@ -57,4 +57,16 @@ Визначає, чи зберігається оригінальне оформлення вмісту книги під час її читання. Увімкнення зберігає вигляд книги (шрифти, кольори, вирівнювання), але стилі книг можуть завантажувати ресурси із зовнішніх серверів, і ті сервери можуть це спостерігати. Вимкніть, щоб прибрати стилі. + + Об'єднувати відсутні метадані + + + Коли ввімкнено, метадані елементів бібліотеки, які не надає перший постачальник метаданих, доповнюються з наступних постачальників. + + + Об'єднувати ілюстрації за відсутності + + + Коли ввімкнено, ілюстрації елементів бібліотеки, які не надає перший постачальник ілюстрацій, доповнюються від наступних постачальників. + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx index 3800fb71..592699f7 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx @@ -57,4 +57,16 @@ 阅读书籍时是否保留书籍内容的原始样式。启用后保留书籍的外观(字体、颜色、对齐方式),但书籍样式可以从外部服务器加载资源,这些服务器可能观察到该行为。禁用可去除样式。 + + 缺失时聚合元数据 + + + 启用后,第一个元数据提供程序未提供的媒体库项目元数据将由后续提供程序补充。 + + + 缺失时聚合图片 + + + 启用后,首个图片提供程序未提供的媒体库项目图片将由后续提供程序补齐。 + diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml index 46f43407..346c629e 100644 --- a/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml +++ b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml @@ -174,6 +174,7 @@ DiscoveringFiles: '@_localizer["DiscoveringFiles"]', ComparingFileHashes: '@_localizer["ComparingFileHashes"]', HashingFileContents: '@_localizer["HashingFileContents"]', + ExtractingMetadata: '@_localizer["ExtractingMetadata"]', SavingScanData: '@_localizer["SavingScanData"]', InvalidatingStaleEnrichment: '@_localizer["InvalidatingStaleEnrichment"]', EnrichingMetadata: '@_localizer["EnrichingMetadata"]', diff --git a/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml b/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml index a4afdc8d..904b8a2d 100644 --- a/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml +++ b/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml @@ -104,6 +104,32 @@ @_localizer["DescriptionShouldPreserveBookStyles"] + +
+
+ : +
+
+ +
+ @_localizer["DescriptionShouldAggregateMetadataWhenMissing"] +
+ +
+
+ : +
+
+ +
+ @_localizer["DescriptionShouldAggregateArtworkWhenMissing"] +
@@ -126,7 +152,8 @@ const checkboxIsThemeCachingEnabled = document.getElementById('IsThemeCachingEnabled'); const checkboxShouldRenderPdfAsImages = document.getElementById('ShouldRenderPdfAsImages'); const checkboxShouldPreserveBookStyles = document.getElementById('ShouldPreserveBookStyles'); - let shouldAggregateMetadataWhenMissing = false; + const checkboxShouldAggregateMetadataWhenMissing = document.getElementById('ShouldAggregateMetadataWhenMissing'); + const checkboxShouldAggregateArtworkWhenMissing = document.getElementById('ShouldAggregateArtworkWhenMissing'); // Toggle the enabled state of the items per page input based on the pagination checkbox. function updateItemsPerPageEnabledState() { @@ -143,7 +170,8 @@ checkboxIsThemeCachingEnabled.checked = data.isThemeCachingEnabled === true; checkboxShouldRenderPdfAsImages.checked = data.shouldRenderPdfAsImages === true; checkboxShouldPreserveBookStyles.checked = data.shouldPreserveBookStyles === true; - shouldAggregateMetadataWhenMissing = data.shouldAggregateMetadataWhenMissing === true; + checkboxShouldAggregateMetadataWhenMissing.checked = data.shouldAggregateMetadataWhenMissing === true; + checkboxShouldAggregateArtworkWhenMissing.checked = data.shouldAggregateArtworkWhenMissing === true; updateItemsPerPageEnabledState(); } } @@ -155,7 +183,8 @@ ItemsPerPage: Number(inputItemsPerPage.value), ShouldIgnoreThePrefixForAlphaPicker: checkboxShouldIgnoreThePrefixForAlphaPicker.checked, IsThemeCachingEnabled: checkboxIsThemeCachingEnabled.checked, - ShouldAggregateMetadataWhenMissing: shouldAggregateMetadataWhenMissing, + ShouldAggregateMetadataWhenMissing: checkboxShouldAggregateMetadataWhenMissing.checked, + ShouldAggregateArtworkWhenMissing: checkboxShouldAggregateArtworkWhenMissing.checked, ShouldRenderPdfAsImages: checkboxShouldRenderPdfAsImages.checked, ShouldPreserveBookStyles: checkboxShouldPreserveBookStyles.checked };