diff options
Diffstat (limited to 'src/data/composite/wiki-properties')
-rw-r--r-- | src/data/composite/wiki-properties/index.js | 1 | ||||
-rw-r--r-- | src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/index.js b/src/data/composite/wiki-properties/index.js index 62d476c6..e98c89fc 100644 --- a/src/data/composite/wiki-properties/index.js +++ b/src/data/composite/wiki-properties/index.js @@ -21,6 +21,7 @@ export {default as flag} from './flag.js'; export {default as name} from './name.js'; export {default as referenceList} from './referenceList.js'; export {default as referencedArtworkList} from './referencedArtworkList.js'; +export {default as reverseAnnotatedReferenceList} from './reverseAnnotatedReferenceList.js'; export {default as reverseContributionList} from './reverseContributionList.js'; export {default as reverseReferenceList} from './reverseReferenceList.js'; export {default as reverseSingleReferenceList} from './reverseSingleReferenceList.js'; diff --git a/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js new file mode 100644 index 00000000..d18e5357 --- /dev/null +++ b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js @@ -0,0 +1,25 @@ +import {input, templateCompositeFrom} from '#composite'; + +import {exposeDependency} from '#composite/control-flow'; +import {inputWikiData, withReverseAnnotatedReferenceList} + from '#composite/wiki-data'; + +export default templateCompositeFrom({ + annotation: `reverseAnnotatedReferenceList`, + + compose: false, + + inputs: { + data: inputWikiData({allowMixedTypes: false}), + list: input({type: 'string'}), + }, + + steps: () => [ + withReverseAnnotatedReferenceList({ + data: input('data'), + list: input('list'), + }), + + exposeDependency({dependency: '#reverseAnnotatedReferenceList'}), + ], +}); |