diff options
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': { |