internetarchive/openlibrary

RFC: Add `genres` field to Open Library Work records (system-wide support for Genre Tags)

Open

#11,610 创建于 2025年12月19日

在 GitHub 查看
 (16 评论) (0 反应) (1 负责人)Python (1,172 fork)batch import
Lead: @mekarpelesModule: Solr UpdaterNeeds: ResponseNeeds: Staff / InternalPriority: 2State: BlockedTeam: Front-endTheme: Book TagsTheme: CSSTheme: EditingTheme: SubjectsType: EpicType: Feature Requesthacktoberfest

仓库指标

Star
 (4,626 star)
PR 合并指标
 (平均合并 6天 2小时) (30 天内合并 126 个 PR)

描述

Feature Request

System-wide support for first-class genre tags on Works (books), including schema, admin/type registry, API changes, UI/UX, editing, autocomplete, search/index, data migration, and developer/user documentation.

Breakdown

  1. Update olclient/schemata/work.schema.json (and infogami type registry) to support genres: List of Tag (tag_type: genre)
  2. Ensure API/backend changes propagate to/from infogami + storage
  3. Add display of genres (as labeled chips) to templates/type/edition/view. html and work.html
  4. Update editing UI for genres: input, add/remove chip JS, autocomplete, CSS
  5. Canonicalize genre tag UX style & shape; document, get agreement
  6. Implement dedicated genres autocomplete using /tags.json?tag_type=genre
  7. Update Solr schemas, update Solr updater logic, ensure search/facet by genre
  8. Write tests (schema, UI, API, Solr), migration/backfill script
  9. Add developer and end-user documentation. Plan for upgrade/feature flag, Solr reindex.
  • See full checklist in ticket for complete file-by-file breakdown and gotchas.

贡献者指南