diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-16 12:08:32 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 13:39:53 -0400 |
commit | a618ec62bb07a0037e9431b2d7fda0ea55c29881 (patch) | |
tree | 2723ddeb9135257f0e216b3533563d2a9358df2c /src/data/things/group.js | |
parent | 226c316f21a8fb7eb5ca549221c3da0473ca5d9d (diff) |
data: Closely Linked Artists
Diffstat (limited to 'src/data/things/group.js')
-rw-r--r-- | src/data/things/group.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/data/things/group.js b/src/data/things/group.js index e000e407..06791ccc 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -19,7 +19,7 @@ import { export class Group extends Thing { static [Thing.referenceType] = 'group'; - static [Thing.getPropertyDescriptors] = ({Album}) => ({ + static [Thing.getPropertyDescriptors] = ({Album, Artist}) => ({ // Update & expose name: name('Unnamed Group'), @@ -29,6 +29,12 @@ export class Group extends Thing { urls: urls(), + closelyLinkedArtists: referenceList({ + class: input.value(Artist), + find: input.value(find.artist), + data: 'artistData', + }), + featuredAlbums: referenceList({ class: input.value(Album), find: input.value(find.album), @@ -45,6 +51,10 @@ export class Group extends Thing { class: input.value(Album), }), + artistData: wikiData({ + class: input.value(Artist), + }), + groupCategoryData: wikiData({ class: input.value(GroupCategory), }), @@ -110,6 +120,8 @@ export class Group extends Thing { 'Description': {property: 'description'}, 'URLs': {property: 'urls'}, + 'Closely Linked Artists': {property: 'closelyLinkedArtists'}, + 'Featured Albums': {property: 'featuredAlbums'}, 'Series': { |