« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/album.js8
-rw-r--r--src/data/yaml.js2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index b6bd1313..af7f0239 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -244,6 +244,10 @@ export class Album extends Thing {
 
     // Update only
 
+    albumData: wikiData({
+      class: input.value(Album),
+    }),
+
     artistData: wikiData({
       class: input.value(Artist),
     }),
@@ -256,6 +260,10 @@ export class Album extends Thing {
       class: input.value(Group),
     }),
 
+    trackData: wikiData({
+      class: input.value(Track),
+    }),
+
     wikiInfo: thing({
       class: input.value(WikiInfo),
     }),
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 37d6daf0..f7c36b89 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1209,9 +1209,11 @@ export async function loadAndProcessDataDocuments(dataSteps, {dataPath}) {
 export function linkWikiDataArrays(wikiData) {
   const linkWikiDataSpec = new Map([
     [wikiData.albumData, [
+      'albumData',
       'artTagData',
       'artistData',
       'groupData',
+      'trackData',
       'wikiInfo',
     ]],