From d35e5b178dd2fc46f37658416cf3b2d822483d7a Mon Sep 17 00:00:00 2001 From: Mark Carranza Date: Tue, 19 Apr 2022 14:23:47 -0700 Subject: [PATCH] Add volume and issue --- src/models/metadata.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/models/metadata.ts b/src/models/metadata.ts index 9ccae17a..fc8d6f1c 100644 --- a/src/models/metadata.ts +++ b/src/models/metadata.ts @@ -192,6 +192,12 @@ export class Metadata { : undefined; } + @Memoize() get issue(): StringField | undefined { + return this.rawMetadata?.issue + ? new StringField(this.rawMetadata.issue) + : undefined; + } + /** * For collections, the number of items in the collection * @@ -420,6 +426,12 @@ export class Metadata { : undefined; } + @Memoize() get volume(): StringField | undefined { + return this.rawMetadata?.volume + ? new StringField(this.rawMetadata.volume) + : undefined; + } + /** * The number of downloads in the last week *