mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-11-24 19:32:56 +00:00
bibclean: an ISBN-13's label is not part of the number
isbn::from_text read "ISBN-13 978-0-521-65706-8" as 1397805216: the label's 13 and the first eight digits. It now skips a -10/-13 label and returns the first announced number whose check digit agrees. isbn::fault names a stored ISBN that cannot be right, and problems() reports it: invalid_isbn, placeholder_isbn (000-0-000-00000-0) and isbn_with_label (ten digits beginning 13978 or 13979).
This commit is contained in:
3 files changed
+77
-10
No files matched your search
@@ -202,6 +202,9 @@ bibclean books.ndjson | jq -c 'select(.slug_proposal.tier | IN("placeholder-auth
|
||||
| `missing_apostrophe` | 2 | "Lossky s Argument" |
|
||||
| `possible_swap` | 2 | Title and author look to be the wrong way round |
|
||||
| `underscore_title` | 1 | Underscores standing in for spaces and colons |
|
||||
| `invalid_isbn` | 3 | A stored ISBN whose check digit disagrees |
|
||||
| `placeholder_isbn` | 3 | A run of one digit standing in for an ISBN: "000-0-000-00000-0" |
|
||||
| `isbn_with_label` | 3 | Ten digits beginning `13978`: the label of an ISBN-13 read as part of the number, cut short and given a fresh check digit |
|
||||
| `missing_isbn` | 0 | Reported, but not a reason to do anything |
|
||||
|
||||
Each test is deliberately conservative. A real book called "The Document" or
|
||||
|
||||
Reference in new issue
Block a user