Get description as well
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
||||
<p><strong>Publisher:</strong> {{ metadata.publisher }}</p>
|
||||
<p><strong>Published Date:</strong> {{ metadata.publishedDate }}</p>
|
||||
<p><strong>ISBN:</strong> {{ metadata.isbn10 }}</p>
|
||||
<p><strong>Description:</strong> {{ truncateDescription(metadata.description) }}</p>
|
||||
<p><strong>Description:</strong> {{ truncateDescription(metadata.description!) }}</p>
|
||||
<p><strong>Page Count:</strong> {{ metadata.pageCount }}</p>
|
||||
<p *ngIf="metadata.googleBookId">
|
||||
<strong>Google Book Id: </strong>
|
||||
|
||||
@@ -188,7 +188,11 @@ export class BookService {
|
||||
}
|
||||
|
||||
getBookByIdFromAPI(bookId: number, withDescription: boolean) {
|
||||
return this.http.get<Book>(`${this.url}/${bookId}`);
|
||||
return this.http.get<Book>(`${this.url}/${bookId}`, {
|
||||
params: {
|
||||
withDescription: withDescription.toString()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
fetchMetadataFromSource(bookId: number): Observable<FetchedMetadata> {
|
||||
|
||||
Reference in New Issue
Block a user