Import ITAN Global Publishing catalog (102 titles)
Feature Request
Problem / Opportunity
ITAN Global Publishing is a digital marketplace for African literature that asked to have their catalog added to Open Library (#12091). That issue was closed once the itan_technologies identifier merged in #12947, but the import itself never happened, so the catalog is still not in Open Library.
The audience is readers and researchers looking for African-authored works, plus ITAN as a prospective trusted import source. Most of these titles have no ISBN, so they are unlikely to reach us through any other pipeline. That is 102 titles that would otherwise stay invisible to library and research systems.
ITAN sent a fresh dump (itan_catalog.zip) on the #12091 thread. Profiling it: 102 records (up from the 67 originally mentioned), all unique IDs, no duplicate titles, all eng, all ebook_access: borrowable.
They also answered our open URL question. Book pages use a full slug, not the bare ID:
https://itan.app/bookstore/category-title-authorName-bookId
Every record now ships a ready-to-use url field. I verified all 102 conform to that pattern and that each slug ends in its own record's ID, so we can trust the field and never construct the link.
Success: all 102 records import cleanly as editions with working ITAN identifier links, validated on a small test batch first.
Proposal
Add a mapping script that converts the ITAN JSONL into our import schema and submits it as a batch. It is structurally the same as scripts/import_bookdash.py, minus the scraping, since ITAN gave us the data directly. Then a test batch via /import/batch/new, and the full catalog once records look right. Covers as a follow-up.
One correction needed first: identifiers.yml has url: https://itan.app/bookstore/@@@, which builds the bare-ID link ITAN says doesn't resolve, so every rendered identifier would 404. Since the slug isn't derivable from the ID, a @@@ template can't express it. Proposal: drop the url line, keep website: https://itan.app, and carry the real per-book link in the edition's links.
Data issues the mapping handles:
isbn_13is unusable. 43 records are["0"], 12 are["978"], 47 omit it, so not one record carries a real ISBN. Dropping the field rather than importing placeholders.notesis a description plus a price tail, e.g.... | Available on Itan Technologies. Ebook: ₦6,800. | Edition: 0. Mapping the blurb todescription, stripping pricing, liftingEdition: Secondintoedition_namewhere it isn't the literal0.urlandebook_accessaren't import-schema fields. URL →links;ebook_accessisn't settable via import, so dropped.- Author names carry stray whitespace, e.g.
"Obinna Godswill Chinegwu ", which needs normalizing.
Reference implementation: scripts/import_bookdash.py (#10856).
Questions for @mekarpeles: does this match what you had in mind, and should this be a one-off script or a recurring provider job? Happy to be corrected on dropping ebook_access if there's a path I've missed.
And two for @Mopelolascribe, neither blocking the test batch:
- Should the
isbn_13placeholders (0/978) be treated as "no ISBN assigned"? publishershas near-duplicate imprints ("The Scribes Publishing House", "The Scribes Network Ltd", "The Scribes Media"). Are those distinct imprints, or should they normalize to one?
Breakdown
Implementation Details (for maintainers)
Related files
Refer to this map of common Endpoints:
scripts/import_itan.py(new): mapping + batch submissionscripts/tests/test_import_itan.py(new)openlibrary/plugins/openlibrary/config/edition/identifiers.yml: fix theitan_technologiesURL templateopenlibrary/schemata/import.schema.json: target schema (reference)scripts/import_bookdash.py: structural reference/import/batch/new: batch submission endpoint
Requirements Checklist
Checklist of requirements that need to be satisfied in order for this issue to be closed:
- [ ] Fix the
itan_technologiesidentifier URL template (dropurl, keepwebsite) - [ ] Add
scripts/import_itan.py:map_dataper record,create_batchunder anitan-YYYYMMname,--dry-run/--limitviaFnToCLI - [ ] Add unit tests covering the mapping and each data issue above
- [ ] Validate output against
import.schema.json(all 5 required fields present in every record) - [ ] Submit a small test batch via
/import/batch/newand review results - [ ] Submit the full 102-record catalog
- [ ] Covers: follow-up, reusing whatever
cover_urlpath lands for Bookdash
Stakeholders
- @mekarpeles: lead; checkoff required on the mapping approach, the identifier URL fix, and script vs. recurring provider job
- @Mopelolascribe (ITAN): source data owner; answers on the ISBN placeholders and imprint variants
Instructions for Contributors
- Before creating a new branch or pushing up changes to a PR, please first run these commands to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.
Thanks for the suggestion! A staff member will review this and follow up when they can.
- PR 1 is written but waiting on @mekarpeles to confirm the approach on the
urltemplate, since it touches the identifier from #12947. - PR 2 is up: #13413 . It adds
scripts/import_itan.pyplus tests, mapping the JSONL dump to our import schema. All 102 records validate againstimport.schema.jsonwith no errors, and the four data issues above are handled in the mapping. - PR 3 is blocked on data rather than review: the dump has no cover field, so there is nothing to map yet. It needs cover URLs from ITAN, and the Bookdash
cover_urlpath to land first.