openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Epic: Browse the Stacks: a discovery/explore-centric homepage

Open mekarpeles opened this issue 4 months ago • 4 comments

Summary

Make the Open Library homepage a place to browse the stacks: a discovery-first entry point where a patron can walk into a genre, see what's on its shelves, and find something they can read right now.

This issue began as a proposal for a Genre Explorer, a sibling of the Library Explorer that swaps its Dewey/LC bookcases for genre bookcases and subgenre shelves. That prototype was worth building: it showed what genre browsing feels like, and what our genre data can and can't support yet. The goal has since widened from one new page to the homepage itself. The prototype is now one input among several, and its implementation notes live with its draft PR (#13610).

Status (2026-10-05)

Piece Where State
Genre Explorer spike (bookcase per genre, shelf per subgenre) #13208 (@mekarpeles), rebased as #13610 (@lokesh) Draft prototype. Notes for it are on #13610
Homepage "Browse the stacks" rail plus a remembered Readable only switch #13746 (@lokesh). It replaces #13747 and carries @BearSunny's preferences work from #11331 Draft. It is the homepage half of this epic
Genre and subgenre vocabulary, Tags on works, Solr indexing of genres #13755 (Tags project), #11610 (@Chisomnwa) In progress. See "Data reality" below
Subject pages as a "genre dashboard" #13135 (@lokesh); its draft #13062 is closed Open epic. Same data, different surface

Design direction

From @mekarpeles, after a mockup by Tinnei:

  1. Top navigation: a horizontal, alphabetical list of the genres from the tags vocabulary, with the selected genre shown as active. Clicking another genre jumps to its bookcase.
  2. The landing view: one shelf (carousel) per genre, in the same order as the top navigation.
  3. Inside a genre: its shelves become that genre's subgenres.
Mockup by Tinnei: a horizontal category nav above stacked shelves

#13746 takes this onto the homepage. Its "Browse the stacks" rail sits under the welcome carousel and shows the genres plus 12 everyday subjects. Opening a tile expands a shelf in place, with subgenre chips, a trending row and rows for the top subgenres. It replaces the old "Browse by Subject" icon strip near the bottom of the page.

Data reality: what the prototype taught us

Measured for the Tags project, #13755 §5, on 2026-10-04:

  • Shelves still run on subject strings, not Tags. Work.genres exists in the schema (#13151) and ~865K works carry it, but genres are not yet indexed in Solr (#13650/#13753). So the prototype and #13746 both query subject_key:<slug>*. When genres are indexed, #13746 has one place to swap (solr_query() in home_genres.py).
  • Subject-string shelves and Tag shelves count different things. Thriller via the Tag: 13,474 readable works. Via thriller*: 1,031. Some prefixes are mostly topics, not genres: cult* is 81% cultur*, and psychological* is 83% "psychological aspects". #13746 already curates the worst of these.
  • "Readable" must mean readable. The Genre Explorer's toggle uses has_fulltext:true, and about 15% of those matches are print-disabled only. #13746's switch uses ebook_access:[borrowable TO *], which is the right filter.
  • Subgenres are thin. With 20 readable books (one full carousel) as the floor, 20 of 21 genres can fill a shelf, but only 8 of 24 subgenres clear 100 readable works, and 11 fall below 20. The prototype needed ~139 extra "subgenres" to fill its shelves, and most of those turn out to be topics, not subgenres. Proposed vocabulary additions are in open-Book-Genome-Project/tags#60.
  • The hierarchy is many-to-many. 18 of 24 subgenres have more than one parent genre. Some children outnumber their parent under subject matching (Horror 13,602 vs Cult 85,121), and "Utopian" only works when intersected with its parent (504 → 6).
  • Subgenre → genre links exist on master (genre on /type/tag, #13201), but they have not been applied to production's type definitions or backfilled.

Homepage specifics worth keeping

  • The homepage "categories" carousel was demoted from the top of the page in cf5bda4 ("moves onboarding after classics, demotes subjects", 2021-08-05). Nothing in the code records why it underperformed; that context lives in the original PR discussion. Worth finding before promoting browsing above the fold again.
  • Its data source was the hardcoded 15-item FEATURED_SUBJECTS list in openlibrary/plugins/openlibrary/home.py. #13746 replaces it on the homepage; My Books and OPDS still use it.
  • i18n: Tag names and descriptions aren't localised yet. Don't block on it, but don't let caching assume English forever.

Open questions

  1. What does success look like? Nothing defines it yet: click-through from the rail, sessions reaching a book page, borrows started from a shelf? Without a measure, "shipped" only means "different".
  2. Subject strings now, or Tags later? (The original question 3.) #13746 ships on subject strings, with one place to swap to Tags. The Tags route gives better precision, but genres cover only ~2% of works, and Solr indexing is gated on #13753 and a schema deploy.
  3. Where does the Genre Explorer page itself end up? A standalone /explore/genres, folded into the homepage shelves, or retired once the homepage carries browsing?
  4. One genre taxonomy, two surfaces: this epic and #13135 should agree on genre and subgenre presentation rather than diverge.
  5. Vocabulary source of truth: the tags repo is the source. The open part is cadence: a generated snapshot (as home_genres.json and genre.json do today) or live sync.

Work breakdown

  • [ ] Homepage "Browse the stacks" rail and Readable only switch: #13746
  • [ ] Decide the fate of the Genre Explorer page (question 3), then either finish #13610 or close it
  • [ ] Find and record the reason the categories carousel was demoted in 2021
  • [ ] Define success measures (question 1)
  • [ ] Swap shelves from subject strings to Tags once genres are indexed (#13755 workstream A)
  • [ ] Fill thin subgenres via vocabulary work (#13755 workstream C, tags#60)

Related

  • #13755: Tags project (vocabulary, migration, Solr indexing, coverage data)
  • #11610: Genre, Subgenre and Audience Tags on works
  • #13135: Subject page "genre dashboard" epic
  • #10512: Facet carousels by tag
  • #13240: UI Modernization epic
  • #10760: patron-controlled readable filter (addressed by #13746)

mekarpeles avatar Jul 15 '26 20:07 mekarpeles

@Chisomnwa would you like me to assign you to this one?

mekarpeles avatar Jul 15 '26 20:07 mekarpeles

Hi, @mekarpeles! I appreciate the detailed breakdown you provided on this issue. I will also be brainstorming and sharing my findings on how we can actualize the value of genres and subgenres fields to patrons. But this has provided good context on how we can make that possible.

I'll love to be assigned this issue and will be glad to work on it.

Chisomnwa avatar Jul 16 '26 01:07 Chisomnwa

Here is an inspired screenshot from a mockup by Tinnei.

Some things to note:

  1. At the top, the main navigation is a horizontal listing of dewey 100-level categories. For us, presumably it would be an alphabetical listing of genres from https://github.com/open-Book-Genome-Project/tags. Presumably when we select a specific genre, that genre should appear as active or selected.
  2. On the home page of this Genre Explorer concept, each shelf corresponds to a single genre (in the order it is presented in the top navigation.
  3. When a specific genre is selected, we enter that genre's book case and each carousel should become the subgenres of that genre.
Image

mekarpeles avatar Jul 22 '26 04:07 mekarpeles

Thanks, @mekarpeles! This is noted and lines up well with everything we discussed during yesterday's 1:1. I appreciate you summarizing it here and sharing the screenshot.

Chisomnwa avatar Jul 22 '26 04:07 Chisomnwa