diff --git a/openlibrary/templates/my_books/dropper.html b/openlibrary/templates/my_books/dropper.html index ee3e4200997..2ffdb3aa69a 100644 --- a/openlibrary/templates/my_books/dropper.html +++ b/openlibrary/templates/my_books/dropper.html @@ -1,8 +1,7 @@ $def with(page, edition_key=None, async_load=False) -$if not edition_key: - $ edition = page if page.key.startswith("/books/") else None - $ edition_key = edition and edition.key +$ edition = page if page.key.startswith("/books/") else None +$ edition_key = edition and edition.key $ work = page if page.key.startswith('/works/') else page.works[0] if edition and page.works else None $ work_key = work and work.key diff --git a/openlibrary/templates/type/list/view_body.html b/openlibrary/templates/type/list/view_body.html index 527d0c3ba16..efce28b590f 100644 --- a/openlibrary/templates/type/list/view_body.html +++ b/openlibrary/templates/type/list/view_body.html @@ -120,8 +120,9 @@

$list.name

$ cover_url = default_image $if seed.type in ['edition', 'work']: + $ use_my_books_droppers = 'my_books_dropper' in ctx.features $ doc = solr_works.get(seed.key) or seed.document - $:macros.SearchResultsWork(doc, attrs=seed_attrs(seed), availability=availabilities.get(seed.key), decorations=remove_item_link(), extra=seed_meta_line(seed)) + $:macros.SearchResultsWork(doc, attrs=seed_attrs(seed), availability=availabilities.get(seed.key), decorations=remove_item_link(), extra=seed_meta_line(seed), include_dropper=use_my_books_droppers) $else: