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>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-22 12:03:43 -07:00
1 parent ddf6020731
commit a08fbff685
21 files changed
+750 -30

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ function book(id: number, over: Partial<Book>): Book {
id, isbn13: null, lccn: null, title: 'T' + id, subtitle: null, authors: [], publisher: null, year: null,
subjects: [], callNumber: null, sortKey: null, confidence: null, source: null, dewey: null,
status: 'pending', attentionReason: null, manualOverride: false, inQueue: true,
printedAt: null, hierarchyTail: null, edition: null, createdAt: `2026-01-01T00:00:0${id}Z`, updatedAt: '', ...over,
printedAt: null, hierarchyTail: null, edition: null, lookedUpAt: null, createdAt: `2026-01-01T00:00:0${id}Z`, updatedAt: '', ...over,
};
}
const ready = (id: number, over: Partial<Book> = {}) => book(id, { status: 'resolved', callNumber: 'QA76.73 .R87 K53 2018', sortKey: 'k' + id, ...over });
+1 -1
View File
@@ -8,7 +8,7 @@ function book(id: number, over: Partial<Book>): Book {
id, isbn13: null, lccn: null, title: 'T' + id, subtitle: null, authors: [], publisher: null, year: null,
subjects: [], callNumber: null, sortKey: null, confidence: null, source: null, dewey: null,
status: 'resolved', attentionReason: null, manualOverride: false, inQueue: false,
printedAt: null, hierarchyTail: null, edition: null, createdAt: '', updatedAt: '', ...over,
printedAt: null, hierarchyTail: null, edition: null, lookedUpAt: null, createdAt: '', updatedAt: '', ...over,
};
}
const qa = (id: number, key: string) => book(id, { callNumber: 'QA76.73 .R87', sortKey: key });
+1 -1
View File
@@ -8,7 +8,7 @@ function book(id: number, title: string, sortKey: string | null): Book {
id, isbn13: null, lccn: null, title, subtitle: null, authors: [], publisher: null, year: null,
subjects: [], callNumber: null, sortKey, confidence: null, source: null, dewey: null,
status: 'resolved', attentionReason: null, manualOverride: false, inQueue: true,
printedAt: null, hierarchyTail: null, edition: null, createdAt: '', updatedAt: '',
printedAt: null, hierarchyTail: null, edition: null, lookedUpAt: null, createdAt: '', updatedAt: '',
};
}