Added isbn field to books
This commit is contained in:
parent
4f09776036
commit
fe9f04126d
2 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ export class OpenLibraryAPI extends APIModel {
|
||||||
dataSource: this.apiName,
|
dataSource: this.apiName,
|
||||||
url: `https://openlibrary.org` + result.key,
|
url: `https://openlibrary.org` + result.key,
|
||||||
id: result.key,
|
id: result.key,
|
||||||
|
isbn: result.isbn[0] ?? 'unknown',
|
||||||
englishTitle: result.title_english ?? result.title,
|
englishTitle: result.title_english ?? result.title,
|
||||||
|
|
||||||
author: result.author_name ?? 'unknown',
|
author: result.author_name ?? 'unknown',
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export class BookModel extends MediaTypeModel {
|
||||||
image: string;
|
image: string;
|
||||||
onlineRating: number;
|
onlineRating: number;
|
||||||
english_title: string;
|
english_title: string;
|
||||||
|
isbn: number;
|
||||||
|
|
||||||
released: boolean;
|
released: boolean;
|
||||||
|
|
||||||
|
|
@ -25,6 +26,7 @@ export class BookModel extends MediaTypeModel {
|
||||||
this.pages = undefined;
|
this.pages = undefined;
|
||||||
this.image = undefined;
|
this.image = undefined;
|
||||||
this.onlineRating = undefined;
|
this.onlineRating = undefined;
|
||||||
|
this.isbn = undefined;
|
||||||
|
|
||||||
this.released = undefined;
|
this.released = undefined;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue