Add QR codes to cards, stop inventing call number parts

Cards now carry a QR code holding the book's own record (call number,
title, authors, ISBN, year), and the scanner reads it back to find or
add that book.

Call number selection no longer pads catalogue numbers with generated
cutters. A number is "exact" only when it comes verbatim from a record
for this edition; a bare class is a hint that steers the other-edition
and similar-books lookups; a record fetched by LCCN must list the
book's ISBN to count as this edition. "Look up again" bypasses every
cached result, and shelf order breaks ties by author then title.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-19 12:53:12 -07:00
1 parent 6cec404e21
commit ad2956e868
56 files changed
+4020 -156

No files matched your search

+4
View File
@@ -24,8 +24,12 @@ The header has **Scan**, **Library (N)** and a gear for settings.
1. Open the PDF and print at **Actual size / 100%** (never "Fit to page"), **single-sided**, through the **manual feed slot**.
2. When the cards came out correctly, answer **Yes, clear them** so they are not printed twice.
Each card also carries a QR code (about 1.25 inches square, above the ISBN line). It holds the book's record as plain text: call number, title, the first two authors, ISBN and year, so a card still means something if the database is lost, and a phone camera shows it as readable text. Hold a card up to the scanner: the book is found in your library, or added from the card (already resolved, and not queued for printing again). Cards for books with no barcode can be scanned this way too. Other QR codes, such as those on a back cover, are ignored.
**Library** shows every book in shelf order, grouped by main class, with search and a *Needs attention* filter. Click a book to edit it, print another card, look it up again, or delete it. A number marked `~` was borrowed from another edition or from similar books; check those.
**How a number is found.** A number is only ever printed without `~` when it came word for word from a catalogue record (Library of Congress, then Open Library) for this exact ISBN or LCCN, and has at least one cutter. Nothing is generated for those. A record that gives only a bare class (such as `GV199.42`, which in that class needs a place cutter next, not an author) is treated as a hint: the app then looks at other editions of the same book in that class, then at similar books in that class, and borrows from them with `~`. If it finds nothing better it prints the bare class and this edition's year with `~`. Books that share a number are shelved by the first author's surname, then title. **Look up again** ignores every saved answer and asks the catalogues afresh.
**Settings** (the gear) holds the camera picker and printer alignment. If the text sits off-centre on the cards, print the calibration page on plain paper, hold it against a real sheet up to the light, and enter the X and Y offsets in millimetres (limit 10). They are saved and applied to every later PDF.
## Where the data lives