From 0dc4db58b90f46cc938b72d571d690e197c6c243 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 5 Aug 2024 12:19:58 -0300 Subject: data, test: Album.trackSections: use direct links --- src/data/things/album.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/data/things') diff --git a/src/data/things/album.js b/src/data/things/album.js index ee99c814..f1a7df3d 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -44,6 +44,7 @@ import { simpleString, singleReference, thing, + thingList, urls, wikiData, } from '#composite/wiki-properties'; @@ -136,10 +137,8 @@ export class Album extends Thing { creditSources: commentary(), additionalFiles: additionalFiles(), - trackSections: referenceList({ - referenceType: input.value('unqualified-track-section'), - data: 'ownTrackSectionData', - find: input.value(find.unqualifiedTrackSection), + trackSections: thingList({ + class: input.value(TrackSection), }), artistContribs: contributionList({ @@ -223,10 +222,6 @@ export class Album extends Thing { class: input.value(Group), }), - ownTrackSectionData: wikiData({ - class: input.value(TrackSection), - }), - wikiInfo: thing({ class: input.value(WikiInfo), }), @@ -476,13 +471,7 @@ export class Album extends Thing { albumData.push(album); - album.trackSections = - trackSections - .map(trackSection => - `unqualified-track-section:` + - trackSection.unqualifiedDirectory); - - album.ownTrackSectionData = trackSections; + album.trackSections = trackSections; } return {albumData, trackSectionData, trackData}; -- cgit 1.3.0-6-gf8a5