diff options
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r-- | src/data/things/album.js | 19 |
1 files changed, 4 insertions, 15 deletions
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}; |