From ac5e149c7220a473068536cd15e52fa0fbfaf2fe Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 1 May 2025 14:49:30 -0300 Subject: data: ContentEntry.annotationParts Also fixes an error in splitting text around commas. --- src/data/things/content.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/data/things/content.js') diff --git a/src/data/things/content.js b/src/data/things/content.js index d68fd5be..660d7020 100644 --- a/src/data/things/content.js +++ b/src/data/things/content.js @@ -15,7 +15,8 @@ import { withResultOfAvailabilityCheck, } from '#composite/control-flow'; -import {withWebArchiveDate, withSourceText} from '#composite/things/content'; +import {withAnnotationParts, withSourceText, withWebArchiveDate} + from '#composite/things/content'; export class ContentEntry extends Thing { static [Thing.getPropertyDescriptors] = ({Artist}) => ({ @@ -100,6 +101,14 @@ export class ContentEntry extends Thing { // Expose only + annotationParts: [ + withAnnotationParts({ + mode: input.value('strings'), + }), + + exposeDependency({dependency: '#annotationParts'}), + ], + sourceText: [ withSourceText(), exposeDependency({dependency: '#sourceText'}), -- cgit 1.3.0-6-gf8a5