Skip to content

Commit

Permalink
Add collection_layout metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
bfalling authored and Rebecca Shoptaw committed Oct 3, 2024
1 parent 52502aa commit 7f9253c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internetarchive/metadata-service",
"version": "0.1.0",
"version": "0.0.0-bc6513-0",
"description": "A service for fetching metadata about items in the Internet Archive",
"license": "AGPL-3.0-only",
"main": "dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions src/models/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export class Metadata {
: undefined;
}

@Memoize() get collection_layout(): StringField | undefined {
return this.rawMetadata?.collection_layout
? new StringField(this.rawMetadata.collection_layout)
: undefined;
}

@Memoize() get date(): DateField | undefined {
return this.rawMetadata?.date
? new DateField(this.rawMetadata.date)
Expand Down

0 comments on commit 7f9253c

Please sign in to comment.