diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html index a1272783522..2314bc46839 100644 --- a/openlibrary/templates/type/edition/view.html +++ b/openlibrary/templates/type/edition/view.html @@ -87,7 +87,7 @@ $code: def has_any(*keys): - return any(page[k] for k in keys) + return any(edition[k] for k in keys) $code: def get_description(book): @@ -249,15 +249,16 @@

$_("by") $:authors_byline

$ edition_identifiers = edition.get_identifiers() - $ isbn = None + $ isbns = [] $if 'isbn_13' in edition_identifiers.keys(): - $ isbn = edition_identifiers['isbn_13']['value'] - $elif 'isbn_10' in edition_identifiers.keys(): - $ isbn = edition_identifiers['isbn_10']['value'] - $if isbn: + $ isbns.append(edition_identifiers['isbn_13']['value']) + $if 'isbn_10' in edition_identifiers.keys(): + $ isbns.append(edition_identifiers['isbn_10']['value']) + $if isbns:
-
ISBN
- $isbn +
ISBNs
+ $for isbn in isbns: + $isbn
@@ -342,7 +343,6 @@

$_("First Sentence")

"$(edition.first_sentence)"

- $if edition: $ component_times['TableOfContents'] = time() $:macros.TableOfContents(edition, ocaid) $ component_times['TableOfContents'] = time() - component_times['TableOfContents']