« get me outta code hell

data, test: boldfaceArtist -> artistDisplayText - 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:
author(quasar) nebula <qznebula@protonmail.com>2023-11-14 23:36:37 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-14 23:36:37 -0400
commitf754a8d9187e435a761db31b5053aa2e7ba22e13 (patch)
tree0c221afa834b794aa3de92bceb093e80c087d4b2 /src/data
parent362dc0619b93d74ad34df1bfbfd9ebc632fa5156 (diff)
data, test: boldfaceArtist -> artistDisplayText
Diffstat (limited to 'src/data')
-rw-r--r--src/data/composite/wiki-data/withParsedCommentaryEntries.js21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/data/composite/wiki-data/withParsedCommentaryEntries.js b/src/data/composite/wiki-data/withParsedCommentaryEntries.js
index 9e33cdac..7b1c9484 100644
--- a/src/data/composite/wiki-data/withParsedCommentaryEntries.js
+++ b/src/data/composite/wiki-data/withParsedCommentaryEntries.js
@@ -87,7 +87,7 @@ export default templateCompositeFrom({
       prefix: input.value('#entries'),
       properties: input.value([
         'artistReference',
-        'boldfaceArtist',
+        'artistDisplayText',
         'annotation',
         'date',
       ]),
@@ -105,15 +105,10 @@ export default templateCompositeFrom({
       '#resolvedReferenceList': '#entries.artist',
     }),
 
-    {
-      dependencies: ['#entries.boldfaceArtist'],
-      compute: (continuation, {
-        ['#entries.boldfaceArtist']: boldfaceArtist,
-      }) => continuation({
-        ['#entries.boldfaceArtist']:
-          boldfaceArtist.map(boldface => boldface ? true : false),
-      }),
-    },
+    fillMissingListItems({
+      list: '#entries.artistDisplayText',
+      fill: input.value(null),
+    }),
 
     fillMissingListItems({
       list: '#entries.annotation',
@@ -133,7 +128,7 @@ export default templateCompositeFrom({
     {
       dependencies: [
         '#entries.artist',
-        '#entries.boldfaceArtist',
+        '#entries.artistDisplayText',
         '#entries.annotation',
         '#entries.date',
         '#entries.body',
@@ -141,7 +136,7 @@ export default templateCompositeFrom({
 
       compute: (continuation, {
         ['#entries.artist']: artist,
-        ['#entries.boldfaceArtist']: boldfaceArtist,
+        ['#entries.artistDisplayText']: artistDisplayText,
         ['#entries.annotation']: annotation,
         ['#entries.date']: date,
         ['#entries.body']: body,
@@ -149,7 +144,7 @@ export default templateCompositeFrom({
         ['#parsedCommentaryEntries']:
           stitchArrays({
             artist,
-            boldfaceArtist,
+            artistDisplayText,
             annotation,
             date,
             body,