From a2488d2f5f5d1b9ef096c2d9968c56e6439adcac Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 3 Jan 2025 08:11:15 -0400 Subject: data: with{Resolved,Reverse}AnnotatedReferenceList: dates --- .../composite/wiki-data/withReverseAnnotatedReferenceList.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/data/composite/wiki-data/withReverseAnnotatedReferenceList.js') 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, }), }), }, -- cgit 1.3.0-6-gf8a5