From 015989924eadd401ae5932d634109a2f6b801666 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 31 Mar 2025 17:40:35 -0300 Subject: data: soupyReverse.artworkContributionsBy --- src/data/composite/wiki-properties/soupyReverse.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/data/composite') diff --git a/src/data/composite/wiki-properties/soupyReverse.js b/src/data/composite/wiki-properties/soupyReverse.js index 269ccd6f..a3171738 100644 --- a/src/data/composite/wiki-properties/soupyReverse.js +++ b/src/data/composite/wiki-properties/soupyReverse.js @@ -19,4 +19,16 @@ soupyReverse.contributionsBy = referenced: contrib => [contrib.artist], }); +soupyReverse.artworkContributionsBy = + (bindTo, artworkProperty) => ({ + bindTo, + + referencing: thing => + (thing[artworkProperty] + ? thing[artworkProperty].artistContribs + : []), + + referenced: contrib => [contrib.artist], + }); + export default soupyReverse; -- cgit 1.3.0-6-gf8a5