« get me outta code hell

data: with{Resolved,Reverse}AnnotatedReferenceList: dates - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-03 08:11:15 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-03 08:11:15 -0400
commita2488d2f5f5d1b9ef096c2d9968c56e6439adcac (patch)
tree2bb65015f29e3c3b76a58e5c80ced9bed1ca3a68 /src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js
parentc6687d47da7d5e065b75b2ae22deb4671dd1671b (diff)
data: with{Resolved,Reverse}AnnotatedReferenceList: dates
Diffstat (limited to 'src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js')
-rw-r--r--src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js b/src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js
index debc68e4..feae9ccb 100644
--- a/src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js
+++ b/src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js
@@ -67,12 +67,20 @@ export default withReverseList_template({
       '#values': '#annotations',
     }),
 
+    withPropertyFromList({
+      list: '#references',
+      property: input.value('date'),
+    }).outputs({
+      '#references.date': '#dates',
+    }),
+
     {
       dependencies: [
         input('backward'),
         input('annotation'),
         '#things',
         '#annotations',
+        '#dates',
       ],
 
       compute: (continuation, {
@@ -80,11 +88,13 @@ export default withReverseList_template({
         [input('annotation')]: annotationProperty,
         ['#things']: things,
         ['#annotations']: annotations,
+        ['#dates']: dates,
       }) => continuation({
         '#referencingThings':
           stitchArrays({
             [thingProperty]: things,
             [annotationProperty]: annotations,
+            date: dates,
           }),
       }),
     },