From 0674d61d13ebaafe3b36dd84b7ab90db7f99ceb4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 10 Jul 2025 08:28:41 -0300 Subject: data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc --- src/data/things/content.js | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) (limited to 'src/data/things/content.js') diff --git a/src/data/things/content.js b/src/data/things/content.js index ca41ccaa..d2cf32dc 100644 --- a/src/data/things/content.js +++ b/src/data/things/content.js @@ -109,6 +109,12 @@ export class ContentEntry extends Thing { // Expose only + isContentEntry: [ + exposeConstant({ + value: input.value(true), + }), + ], + annotationParts: [ withAnnotationParts({ mode: input.value('strings'), @@ -151,6 +157,12 @@ export class CommentaryEntry extends ContentEntry { static [Thing.getPropertyDescriptors] = () => ({ // Expose only + isCommentaryEntry: [ + exposeConstant({ + value: input.value(true), + }), + ], + isWikiEditorCommentary: hasAnnotationPart({ part: input.value('wiki editor'), }), @@ -165,6 +177,12 @@ export class LyricsEntry extends ContentEntry { // Expose only + isLyricsEntry: [ + exposeConstant({ + value: input.value(true), + }), + ], + isWikiLyrics: hasAnnotationPart({ part: input.value('wiki lyrics'), }), @@ -200,6 +218,26 @@ export class LyricsEntry extends ContentEntry { }); } -export class CreditingSourcesEntry extends ContentEntry {} +export class CreditingSourcesEntry extends ContentEntry { + static [Thing.getPropertyDescriptors] = () => ({ + // Expose only + + isCreditingSourcesEntry: [ + exposeConstant({ + value: input.value(true), + }), + ], + }); +} + +export class ReferencingSourcesEntry extends ContentEntry { + static [Thing.getPropertyDescriptors] = () => ({ + // Expose only -export class ReferencingSourcesEntry extends ContentEntry {} + isReferencingSourceEntry: [ + exposeConstant({ + value: input.value(true), + }), + ], + }); +} -- cgit 1.3.0-6-gf8a5