diff options
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 |
commit | a2488d2f5f5d1b9ef096c2d9968c56e6439adcac (patch) | |
tree | 2bb65015f29e3c3b76a58e5c80ced9bed1ca3a68 /src/data/composite/wiki-properties/referencedArtworkList.js | |
parent | c6687d47da7d5e065b75b2ae22deb4671dd1671b (diff) |
data: with{Resolved,Reverse}AnnotatedReferenceList: dates
Diffstat (limited to 'src/data/composite/wiki-properties/referencedArtworkList.js')
-rw-r--r-- | src/data/composite/wiki-properties/referencedArtworkList.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/referencedArtworkList.js b/src/data/composite/wiki-properties/referencedArtworkList.js index a242af2c..819b2f43 100644 --- a/src/data/composite/wiki-properties/referencedArtworkList.js +++ b/src/data/composite/wiki-properties/referencedArtworkList.js @@ -1,5 +1,6 @@ import {input, templateCompositeFrom} from '#composite'; import find from '#find'; +import {isDate} from '#validators'; import {combineWikiDataArrays} from '#wiki-data'; import annotatedReferenceList from './annotatedReferenceList.js'; @@ -9,6 +10,13 @@ export default templateCompositeFrom({ compose: false, + inputs: { + date: input({ + validate: isDate, + acceptsNull: true, + }), + }, + steps: () => [ { dependencies: [ @@ -42,6 +50,7 @@ export default templateCompositeFrom({ referenceType: input.value(['album', 'track']), data: '#data', find: '#find', + date: input('date'), }), ], }); |