diff --git a/src/Lumina.Presentation.Web/Common/Enums/MediaContributors/MediaContributorRole.cs b/src/Lumina.Presentation.Web/Common/Enums/MediaContributors/MediaContributorRole.cs index 85935017..e0c2c77d 100644 --- a/src/Lumina.Presentation.Web/Common/Enums/MediaContributors/MediaContributorRole.cs +++ b/src/Lumina.Presentation.Web/Common/Enums/MediaContributors/MediaContributorRole.cs @@ -171,5 +171,10 @@ public enum MediaContributorRole /// /// The contributor orchestrated the music of the media item. /// - Orchestrator + Orchestrator, + + /// + /// The contributor performed the media item, without a more specific role being known. + /// + Performer } diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ar-SA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ar-SA.resx index 61785310..4f656122 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ar-SA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ar-SA.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ الأنواع - أنواع الكتاب، مفصولة بفواصل. + الأنواع الموسيقية الخاصة بالكتاب. المعرّف الرقمي للكتاب على Goodreads. @@ -304,7 +304,7 @@ الوسوم - وسوم الكتاب، مفصولة بفواصل. + الوسوم الخاصة بالكتاب. العنوان @@ -1051,4 +1051,37 @@ منسق الأوركسترا + + مؤدٍ + + + معرّف المساهم + + + الدور + + + آخر + + + MusicBrainz + + + Discogs + + + Last.fm + + + النوع + + + إضافة نوع + + + وسم + + + إضافة وسم + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.de-DE.resx index 6d329eac..f1f7d6b3 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.de-DE.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.de-DE.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Genres - Die Genres des Buches, durch Kommas getrennt. + Die Genres des Buchs. Die numerische Kennung des Buches bei Goodreads. @@ -304,7 +304,7 @@ Schlagwörter - Die Schlagwörter des Buches, durch Kommas getrennt. + Die Tags des Buchs. Titel @@ -1051,4 +1051,37 @@ Orchestrator + + Interpret + + + Mitwirkenden-Id + + + Rolle + + + Sonstige + + + MusicBrainz + + + Discogs + + + Last.fm + + + Genre + + + Genre hinzufügen + + + Schlagwort + + + Schlagwort hinzufügen + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.en-US.resx index 1c2ea00e..74c6b4b1 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.en-US.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.en-US.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -253,10 +253,10 @@ The native name of the original language of the book. - The genres of the book, separated by commas. + The genres of the book. - The tags of the book, separated by commas. + The tags of the book. The Amazon Standard Identification Number of the book. @@ -1051,4 +1051,37 @@ Orchestrator + + Performer + + + Contributor Id + + + Role + + + Other + + + MusicBrainz + + + Discogs + + + Last.fm + + + Genre + + + Add genre + + + Tag + + + Add tag + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.es-ES.resx index 18483a5a..da9d9f76 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.es-ES.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.es-ES.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Géneros - Los géneros del libro, separados por comas. + Los géneros del libro. El identificador numérico del libro en Goodreads. @@ -304,7 +304,7 @@ Etiquetas - Las etiquetas del libro, separadas por comas. + Las etiquetas del libro. Título @@ -1051,4 +1051,37 @@ Orquestador + + Intérprete + + + Id de colaborador + + + Rol + + + Otro + + + MusicBrainz + + + Discogs + + + Last.fm + + + Género + + + Añadir género + + + Etiqueta + + + Añadir etiqueta + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.fr-FR.resx index 996ef9fa..dbd947a3 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.fr-FR.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.fr-FR.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Genres - Les genres du livre, séparés par des virgules. + Les genres du livre. L'identifiant numérique du livre sur Goodreads. @@ -304,7 +304,7 @@ Étiquettes - Les étiquettes du livre, séparées par des virgules. + Les étiquettes du livre. Titre @@ -1051,4 +1051,37 @@ Orchestrateur + + Interprète + + + Id du contributeur + + + Rôle + + + Autre + + + MusicBrainz + + + Discogs + + + Last.fm + + + Genre + + + Ajouter un genre + + + Étiquette + + + Ajouter une étiquette + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.it-IT.resx index 1e8fe8fe..49563b81 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.it-IT.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.it-IT.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Generi - I generi del libro, separati da virgole. + I generi del libro. L'identificatore numerico del libro su Goodreads. @@ -304,7 +304,7 @@ Etichette - Le etichette del libro, separate da virgole. + I tag del libro. Titolo @@ -1051,4 +1051,37 @@ Orchestratore + + Interprete + + + Id collaboratore + + + Ruolo + + + Altro + + + MusicBrainz + + + Discogs + + + Last.fm + + + Genere + + + Aggiungi genere + + + Etichetta + + + Aggiungi etichetta + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ja-JP.resx index 27d13c76..c4e14af4 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ja-JP.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ja-JP.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ ジャンル - 本のジャンル。カンマ区切り。 + 本のジャンル。 Goodreads上の本の数値ID。 @@ -304,7 +304,7 @@ タグ - 本のタグ。カンマ区切り。 + 本のタグ。 タイトル @@ -1051,4 +1051,37 @@ オーケストレーター + + パフォーマー + + + 貢献者 Id + + + 役割 + + + その他 + + + MusicBrainz + + + Discogs + + + Last.fm + + + ジャンル + + + ジャンルを追加 + + + タグ + + + タグを追加 + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.resx index 55db7171..32921a56 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -253,10 +253,10 @@ The native name of the original language of the book. - The genres of the book, separated by commas. + The genres of the book. - The tags of the book, separated by commas. + The tags of the book. The Amazon Standard Identification Number of the book. @@ -1050,4 +1050,37 @@ Orchestrator + + Performer + + + Contributor Id + + + Role + + + Other + + + MusicBrainz + + + Discogs + + + Last.fm + + + Genre + + + Add genre + + + Tag + + + Add tag + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ro-RO.resx index 557439a8..6308c039 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ro-RO.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.ro-RO.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Genuri - Genurile cărții, separate prin virgule. + Genurile cărții. Identificatorul numeric al cărții pe Goodreads. @@ -304,7 +304,7 @@ Etichete - Etichetele cărții, separate prin virgule. + Etichetele cărții. Titlu @@ -1051,4 +1051,37 @@ Orchestrator + + Interpret + + + Id contribuitor + + + Rol + + + Altele + + + MusicBrainz + + + Discogs + + + Last.fm + + + Gen + + + Adaugă gen + + + Etichetă + + + Adaugă etichetă + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.uk-UA.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.uk-UA.resx index 3b61a2ae..2ec59fb9 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.uk-UA.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.uk-UA.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ Жанри - Жанри книги, розділені комами. + Жанри книги. Числовий ідентифікатор книги на Goodreads. @@ -304,7 +304,7 @@ Теги - Теги книги, розділені комами. + Теги книги. Назва @@ -1051,4 +1051,37 @@ Оркестратор + + Виконавець + + + Ідентифікатор учасника + + + Роль + + + Інше + + + MusicBrainz + + + Discogs + + + Last.fm + + + Жанр + + + Додати жанр + + + Тег + + + Додати тег + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.zh-CN.resx index 81807621..9795406a 100644 --- a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.zh-CN.resx +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.zh-CN.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx @@ -94,7 +94,7 @@ 体裁 - 图书的体裁,以逗号分隔。 + 书籍的流派。 图书在 Goodreads 上的数字标识。 @@ -304,7 +304,7 @@ 标签 - 图书的标签,以逗号分隔。 + 书籍的标签。 标题 @@ -1051,4 +1051,37 @@ 配器师 + + 表演者 + + + 贡献者 Id + + + 角色 + + + 其他 + + + MusicBrainz + + + Discogs + + + Last.fm + + + 流派 + + + 添加流派 + + + 标签 + + + 添加标签 + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml index 37bf2d59..0a76120b 100644 --- a/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml +++ b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml @@ -305,19 +305,47 @@

@_localizer["Genres"]

-
:
-
- genre.Name)))" /> -
+ + + + + + + + + @foreach (var genre in genres) + { + + + + + } + +
@_localizer["Genre"]
@_localizer[
+ @_localizer["GenresDescription"]

@_localizer["Tags"]

-
:
-
- tag.Name)))" /> -
+ + + + + + + + + @foreach (var tag in tags) + { + + + + + } + +
@_localizer["Tag"]
@_localizer[
+ @_localizer["TagsDescription"]
@@ -373,9 +401,9 @@ - - - + + + @@ -413,9 +441,9 @@
@_localizer["IsbnValue"]@_localizer["IsbnFormat"]@_localizer["IsbnValue"]@_localizer["IsbnFormat"]
- - - + + + @@ -454,11 +482,11 @@
@_localizer["ContributorName"]@_localizer["Role"]@_localizer["ContributorName"]@_localizer["Role"]
- - - - - + + + + + @@ -529,9 +557,13 @@ const isbnsBody = document.getElementById('isbns-body'); const contributorsBody = document.getElementById('contributors-body'); const ratingsBody = document.getElementById('ratings-body'); + const genresBody = document.getElementById('genres-body'); + const tagsBody = document.getElementById('tags-body'); const btnAddIsbn = document.getElementById('btn-add-isbn'); const btnAddContributor = document.getElementById('btn-add-contributor'); const btnAddRating = document.getElementById('btn-add-rating'); + const btnAddGenre = document.getElementById('btn-add-genre'); + const btnAddTag = document.getElementById('btn-add-tag'); const jsLocalizedStrings = { bookSaved: @Json.Serialize(_localizer["BookSaved"].Value), @@ -569,9 +601,12 @@ return Number.isNaN(parsed) ? null : parsed; } - // Splits a comma separated list into trimmed values. - function splitList(value) { - return value.split(',').map(item => item.trim()).filter(item => item !== ''); + // Builds a list of name valued entries from the rows of a table, skipping the rows whose name is empty. + function buildNameList(body, rowSelector, inputSelector) { + return Array.from(body.querySelectorAll(rowSelector)) + .map(row => row.querySelector(inputSelector).value.trim()) + .filter(name => name !== '') + .map(name => ({ Name: name })); } // Builds the payload of the edited book, matching the update request of the API. @@ -619,8 +654,8 @@ ReleaseCountry: readComboboxValue('release-country-combobox') || null, ReleaseVersion: readValue('release-version-input') || null }, - Genres: splitList(readValue('genres-input')).map(name => ({ Name: name })), - Tags: splitList(readValue('tags-input')).map(name => ({ Name: name })), + Genres: buildNameList(genresBody, '.genre-row', '.genre-name'), + Tags: buildNameList(tagsBody, '.tag-row', '.tag-name'), Language: buildLanguage('language-code-input', 'language-name-input', 'language-native-name-input'), OriginalLanguage: buildLanguage('original-language-code-input', 'original-language-name-input', 'original-language-native-name-input') } @@ -819,6 +854,24 @@ `); } + // Adds a blank genre row. + function addGenreRow() { + genresBody.insertAdjacentHTML('beforeend', ` + + + + `); + } + + // Adds a blank tag row. + function addTagRow() { + tagsBody.insertAdjacentHTML('beforeend', ` + + + + `); + } + // Removes the row of the clicked remove icon. function handleRowRemoval(event) { if (event.target.matches('.remove-form-table-row-icon')) @@ -833,9 +886,13 @@ btnAddIsbn.addEventListener('click', addIsbnRow); btnAddContributor.addEventListener('click', addContributorRow); btnAddRating.addEventListener('click', addRatingRow); + btnAddGenre.addEventListener('click', addGenreRow); + btnAddTag.addEventListener('click', addTagRow); isbnsBody.addEventListener('click', handleRowRemoval); contributorsBody.addEventListener('click', handleRowRemoval); ratingsBody.addEventListener('click', handleRowRemoval); + genresBody.addEventListener('click', handleRowRemoval); + tagsBody.addEventListener('click', handleRowRemoval); document.addEventListener('DOMContentLoaded', InitializeAsync); // Register cleanup for these listeners. @@ -847,9 +904,13 @@ btnAddIsbn.removeEventListener('click', addIsbnRow); btnAddContributor.removeEventListener('click', addContributorRow); btnAddRating.removeEventListener('click', addRatingRow); + btnAddGenre.removeEventListener('click', addGenreRow); + btnAddTag.removeEventListener('click', addTagRow); isbnsBody.removeEventListener('click', handleRowRemoval); contributorsBody.removeEventListener('click', handleRowRemoval); ratingsBody.removeEventListener('click', handleRowRemoval); + genresBody.removeEventListener('click', handleRowRemoval); + tagsBody.removeEventListener('click', handleRowRemoval); document.removeEventListener('DOMContentLoaded', InitializeAsync); });
@_localizer["RatingValue"]@_localizer["RatingMaxValue"]@_localizer["RatingSource"]@_localizer["RatingVoteCount"]@_localizer["RatingValue"]@_localizer["RatingMaxValue"]@_localizer["RatingSource"]@_localizer["RatingVoteCount"]
${jsLocalizedStrings.remove}
${jsLocalizedStrings.remove}