Commit Graph
21 Commits
Author SHA1 Message Date
swaitsandClaude Fable 5.2 3208d4f19c Add property tests, an old-database test and a live lookup check
The queue test runs random sequences of enqueue, look up again, cancel,
failure, time and restart. It found a book left pending for ever when
Look up again landed on a book already queued for its weekly re-check;
that lookup now counts as a real one.

Also: the three-frame camera rule against an independent model, a
pre-looked_up_at database opening intact, a script that checks nine
books against the live catalogues, and the sisi contract naming them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 19:55:31 -07:00
swaitsandClaude Fable 5.2 a08fbff685 Find a number for books the catalogues have no LC number for
Google Books joins Open Library and the Library of Congress as a source
of title, authors, publisher and categories when no number is in hand.
The similar-books tier widens its search step by step (other word forms,
place and topic words from the subtitle and publisher, fewer words) when
the first search finds no class, and needs at least two agreeing books
before it accepts one. The result is marked approximate.

Books with no number or an approximate one are looked up again at startup
once the last lookup is a week old. An ISBN no catalogue knows that is
within three digits of a book already here says it may be a misread of
that book.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 12:03:43 -07:00
swaitsandClaude Fable 5.2 ddf6020731 Accept a camera read only when three frames agree
One frame was enough to accept an ISBN, on the theory that the check
digit makes a false read unlikely. About one multi-digit misread in ten
still passes the check, and a single book put two phantom ISBNs in the
queue. A read now has to repeat on three consecutive frames (two in a
capture burst), and a frame that yields two different ISBNs is ignored.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:58:46 -07:00
swaitsandClaude Fable 5.2 a210576661 Give needs-attention cards their text width back
Look up again and Fix sat in the actions column and squeezed the title
and reason to a character wide. They now sit on their own line under the
reason, in a smaller button, and only the remove button stays at the right.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:42:50 -07:00
swaitsandClaude Fable 5.2 e65b10c0fb Keep retrying lookups until the sources answer
A network error, timeout, 5xx or 429 no longer ends a lookup or sends a
book to Needs attention. Lookups back off exponentially with jitter (2 s
doubling to 5 min, honouring Retry-After) for as long as the book is
pending, keep each definitive answer so a retry only asks for what is
missing, and limit requests to two at a time per host. Once a call number
is in hand, a step that still fails after six tries is left for the
backfills. Books an earlier version failed for a temporary reason are
queued again at startup.

The cards show which source is not answering and when the next try is,
title search waits for Open Library with a Cancel button, and Look up
again sits next to Fix.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:35:37 -07:00
swaitsandClaude Fable 5.2 ee10e00ccd Ride out Open Library's dropped connections
Open Library resets or times out a share of connections. Retry a failed
connection quickly inside the Open Library client, name the real cause
(ECONNRESET and the like) in the error, and have title search retry and
then answer 503 with a plain message instead of an unhandled exception.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:20:01 -07:00
swaitsandClaude Fable 5.2 bb46d343a8 Show the edition statement on cards and in the library
The edition comes only from a record for this exact edition: the Library
of Congress record's edition statement first, then Open Library's edition
name when it is a well-formed statement. Existing books are filled in at
startup without changing anything else about them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 17:49:59 -07:00
swaitsandClaude Fable 5.2 e83774adbd Let the calibration fields take any decimal value
Apply readings can produce values such as -1.35 mm, which the fields'
quarter-millimetre step then refused.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 17:49:59 -07:00
swaitsandClaude Fable 5.2 e23b6ee6c4 Add rotation calibration and millimetre rulers on the calibration sheet
A new rotation setting turns the whole print about the sheet centre, in
steps of 0.01 degree, on card sheets and the calibration sheet. The
calibration sheet now has millimetre rulers at every card edge; the four
lettered ones (A to D) are typed into Settings, which converts them into
corrected offsets and rotation. A simulation test checks the conversion
against modelled printer errors.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 17:14:22 -07:00
swaitsandClaude Fable 5.2 5dfb50f1a8 Print crop marks around the cards on every sheet
Short ticks in the waste frame point at each card edge and move with the
calibration offsets, so alignment with the perforations can be checked by
eye. The settings help now says which way each offset moves the print.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 16:40:01 -07:00
swaitsandClaude Fable 5.2 e36e758c1c Shrink the call number tab, add a seat line, print at actual size
The two call number lines now take 0.56 in at the top of the card instead
of about 0.9 in, with a full-width line under them that marks where the top
edge of the book's pages sits. PDFs ask the viewer to print unscaled, and
the calibration page has a 6 inch line to check the print scale.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 16:26:29 -07:00
swaitsandClaude Fable 5.2 c1996d2b47 Fill the hierarchy's place words from other records with the same code
When a book's own Library of Congress record has no subject heading,
the place or topic words now come from a verified record of the same
work with the same class key, and failing that from the part that the
similar-search records with that key agree on. Books that previously
found nothing are re-checked once at startup.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 14:27:08 -07:00
swaitsandClaude Fable 5.2 60fa4ef6f7 Show author names in natural order everywhere
Names read from MARC personal-name fields are stored as "Steve Allen",
and names already stored as "Allen, Steve" are shown and printed in
natural order. Search matches both forms.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 14:09:09 -07:00
swaitsandClaude Fable 5.2 7ae1bcef0a Print the subject hierarchy as a tree on cards, remove the QR code
Each card now shows, under the call number, the Library of Congress
outline levels for its class (from the published outline, down to the
narrowest range) followed by the place or topic from the catalogue
record's subject heading, one level per line. Existing books get the
subject part filled in by a background job at startup that changes
nothing else about them.

The QR code and everything that read it are removed; the subjects line
on the card is replaced by the tree.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 14:06:50 -07:00
swaitsandClaude Fable 5.2 ad2956e868 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>
2026-11-19 12:53:12 -07:00
swaitsandClaude Fable 5.2 6cec404e21 Redesign the interface around Scan and Library, classify uncatalogued books from similar ones
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 11:01:50 -07:00
swaitsandClaude Fable 5.2 308c0e1ed3 Mirror and zoom the scan preview, strengthen barcode decoding, save failed captures
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 10:28:45 -07:00
swaitsandClaude Fable 5.2 b5defb4e4f Rework scan screen, make lookups non-blocking, fix review findings
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 10:19:32 -07:00
swaitsandClaude Fable 5.2 468cafc6db Integrate the app end to end, add class outline, browser check and README
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 10:02:55 -07:00
swaitsandClaude Fable 5.2 bdfdf581f3 Add resolver, server, PDF rendering and web app
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 09:46:46 -07:00
swaitsandClaude Fable 5.2 6a7fcdc4b8 Scaffold project and add ISBN, call number and cutter logic
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 09:41:43 -07:00