« get me outta code hell

data: all artwork contributions can be "edits for wiki" - 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:
author(quasar) nebula <qznebula@protonmail.com>2026-01-26 18:15:07 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-26 18:15:07 -0400
commit369dd12dc6be63128e296ead9d9149df3df99c00 (patch)
treea506bd2e3ee6941e6705b34b380114a7594d5895 /src/data/things/Artwork.js
parentdf244f21af6078f9456d8281da3a19e7c1e1a2f3 (diff)
data: all artwork contributions can be "edits for wiki"
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',