From 37a4c5c7b4b978cdc9945493cd210f186704f83f Mon Sep 17 00:00:00 2001 From: Anuragp22 Date: Mon, 1 Jun 2026 20:10:04 +0530 Subject: [PATCH] Show Want to Read dropper on trending pages Pass include_dropper=True to the SearchResultsWork macro in trending.html so the reading-log dropper renders, matching work_search, author, and list pages. Trending feeds Solr work docs (with edition_key) via add_solr_works and the dropper loads async, so no server-side changes are needed. Closes #12810 --- openlibrary/templates/trending.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/templates/trending.html b/openlibrary/templates/trending.html index 67381b25bb9..9094ea2e450 100644 --- a/openlibrary/templates/trending.html +++ b/openlibrary/templates/trending.html @@ -28,7 +28,7 @@

$_('Trending Books'): $(pages[mode])

$else: $ extra = _('Logged %(count)i times %(time_unit)s', count=entry['cnt'], time_unit=pages[mode]) - $:macros.SearchResultsWork(entry['work'], extra=extra, availability=entry['work'].get('availability'), seq_index=loop.index0) + $:macros.SearchResultsWork(entry['work'], extra=extra, availability=entry['work'].get('availability'), include_dropper=True, seq_index=loop.index0) $:macros.OlPagination(page, total_pages=200 // 20)