Skip to content

Adds various features to the books plugin#84

Open
ajrbyers wants to merge 14 commits into
masterfrom
issue-37-36-79-31
Open

Adds various features to the books plugin#84
ajrbyers wants to merge 14 commits into
masterfrom
issue-37-36-79-31

Conversation

@ajrbyers
Copy link
Copy Markdown
Member

@ajrbyers ajrbyers commented Mar 17, 2026

Closes #31
Closes #36
Closes #37
Closes #79
Closes #76

#37 — Language and notes

Two new fields on Book: language and notes. Language slots in under Publication Details, notes go below Linked Items. Both themes covered.

#36 — Contributor bios and headshots

Contributors can now have a bio and a headshot. On the public-facing book and chapter pages, clicking a contributor's name opens a modal with their details. Works in both OLH and material themes.

#31 — Corporate authors

Contributor now has an is_corporate flag and a corporate_name field. The edit form uses HTMX to swap out the name fields when you tick the checkbox, so you're not staring at first/middle/last fields that
don't apply.

#79 — Multiple categories and chapter formats

Categories: Switched Book.category from a FK to a M2M so books can belong to more than one category. Existing assignments are preserved via a data migration. Categories now display as comma-separated links on the front end.

Chapter formats: Replaced Chapter.filename with a proper ChapterFormat model so chapters can have multiple downloadable files. Again, existing filenames are migrated across automatically. Formats show up as individual download buttons on the chapter page.

Copy link
Copy Markdown
Member

@mauromsl mauromsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome additions! I've added a comment to avoid race conditions with the introduction of the cool HTMX interactions. We will need to be more careful with these now that we are making the client more interactive. Perhaps a generic approach to disable (or replace with spinner) any buttons that trigger a post would be good.

Comment thread logic.py Outdated
@mauromsl mauromsl assigned ajrbyers and unassigned mauromsl May 27, 2026
@ajrbyers ajrbyers assigned mauromsl and unassigned ajrbyers May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants