From 9d99dafca9dc4e16b867b707746314040a8d9ba5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 00:11:37 -0400 Subject: data: use soupyFind everywhere also notes where remaining directly-provided wikiData() props are used --- src/data/things/artist.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/data/things/artist.js') diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 8fdb8a12..64487dd0 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -25,6 +25,7 @@ import { reverseContributionList, reverseReferenceList, singleReference, + soupyFind, urls, wikiData, } from '#composite/wiki-properties'; @@ -57,28 +58,29 @@ export class Artist extends Thing { aliasedArtist: singleReference({ class: input.value(Artist), - find: input.value(find.artist), - data: 'artistData', + find: soupyFind.input('artist'), }), // Update only + find: soupyFind(), + + // used for reverse contribution lists albumData: wikiData({ class: input.value(Album), }), - artistData: wikiData({ - class: input.value(Artist), - }), - + // used for reverse contribution lists flashData: wikiData({ class: input.value(Flash), }), + // used for closelyLinkedGroups groupData: wikiData({ class: input.value(Group), }), + // used for reverse contribution lists trackData: wikiData({ class: input.value(Track), }), -- cgit 1.3.0-6-gf8a5