« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/Artwork.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/Artwork.js')
-rw-r--r--src/data/things/Artwork.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/data/things/Artwork.js b/src/data/things/Artwork.js
index c1aafa8f..7beb3567 100644
--- a/src/data/things/Artwork.js
+++ b/src/data/things/Artwork.js
@@ -73,7 +73,10 @@ export class Artwork extends Thing {
     // 'artistContribs', // from attached artwork or thing
   ];
 
-  static [Thing.getPropertyDescriptors] = ({ArtTag}) => ({
+  static [Thing.getPropertyDescriptors] = ({
+    ArtTag,
+    ArtworkArtistContribution,
+  }) => ({
     // Update & expose
 
     unqualifiedDirectory: directory({
@@ -128,6 +131,12 @@ export class Artwork extends Thing {
     artistContribs: [
       withResolvedContribs({
         from: input.updateValue({validate: isContributionList}),
+
+        // XXX: All artwork artist contributions, as resolved from update value
+        // (*not* those constituted from thing), are generic artwork contribs.
+        // The class should be specified by whatever the artwork is placed on!!
+        class: input.value(ArtworkArtistContribution),
+
         date: 'date',
         thingProperty: input.thisProperty(),
         artistProperty: 'artistContribsArtistProperty',