@if (selectedFetchedMetadata$ | async; as selectedFetchedMetadata) {
} @else {
When an ISBN is provided, the search will use only the ISBN. If no ISBN is given, the search will fall back to Title and Author.
@if (loading) {

Fetching metadata from your selected sources.
This may take a few moments...

} @if (!loading) { @if (searchTriggered && allFetchedMetadata.length === 0) {

No metadata results found.
Try adjusting your search criteria.

} @if (!searchTriggered && allFetchedMetadata.length === 0) {

Start by searching for metadata using the search bar above.

} @if (allFetchedMetadata.length > 0) {
@for (metadata of allFetchedMetadata; track metadata) {
Image

{{ truncateText(metadata['title']!, 90) }}

@if (metadata['isbn10']) {

ISBN10: {{ metadata['isbn10']}}

} @if (metadata['isbn13']) {

ISBN13: {{ metadata['isbn13']}}

}

Published: {{ metadata['publishedDate'] }}

@if (metadata['authors'] && metadata['authors'].length > 0) {

by {{ truncateText(metadata['authors'].join(', '), 70) }}

}

Source:

{{ sanitizeHtml(metadata['description']) }}

}
} }
}