E-books: upload with its own permission, review, and viewers for PDF, EPUB, text and archive.org #67
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/ebooks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner request: a section ای بکس on each poet's page with uploaded books, served with a document viewer.
Who
ebooks), with the action create, for chosen poets or all poets.ebook) through L2 → L1 → admin.What
Viewing (
/ebook/<id>)archive.org/embed/<id>); they are not copied to our storage.Storage and indexing (owner direction)
DIVAN_FILES_DIR(default../divan-files) under their SHA-256,ab/cd/<sha>.<ext>. A file uploaded twice is kept once, and the folder spreads evenly.ebookstable with an index on poet (published only) and a trigram index on the normalised title plus the text of text books. Search shows matching e-books as their own group on the first page.divan/<poet>/ebooks/<id>.txt.Tested
npm test: 42 pass. The new e-books test covers:Local setup: apply
db/schema.sql; runnpm installin api and web for mammoth and epubjs.Later
🤖 Generated with Claude Code