From ef8e7104c76f60a44b9e76fac16760e9046000f1 Mon Sep 17 00:00:00 2001 From: Fred Chasen Date: Fri, 19 May 2023 16:43:52 -0700 Subject: [PATCH] Parse cover entry in manifest --- src/manifest/manifest.js | 2 ++ src/publication/publication.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/manifest/manifest.js b/src/manifest/manifest.js index 6100228..5f303dd 100644 --- a/src/manifest/manifest.js +++ b/src/manifest/manifest.js @@ -40,6 +40,8 @@ class Manifest extends Publication { case "locations": this.locations = value; break; + case "cover": + this.coverUrl = value; default: this.setMetadata(key, value); break; diff --git a/src/publication/publication.js b/src/publication/publication.js index 3cf9b85..a0cd687 100644 --- a/src/publication/publication.js +++ b/src/publication/publication.js @@ -552,7 +552,7 @@ class Publication { } /** - * Generates the Publication Key using the identifer in the data or other string provided + * Generates the Publication Key using the identifier in the data or other string provided * @param {string} [identifier] to use instead of metadata identifier * @return {string} key */