Skip to content

Commit

Permalink
Add volume and issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mc2 committed Apr 19, 2022
1 parent 27ffa10 commit d35e5b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/models/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit d35e5b1

Please sign in to comment.