feat(zotero): mirror AMA coding/CPT publications into a collection #697

Merged
kert merged 2 commits from feat/zotero-ama-coding-collection into main 2026-09-09 20:24:57 +00:00
Owner

Adds dev/scripts/add_ama_coding_to_zotero.py, following the add_cf_history_to_zotero.py pattern (direct zot.db writes, storage copies chown'd to 100999).

  • One book item per OpenLibrary work from data/ama/ama_coding_titles.json (598 CPT / ICD-9-CM / ICD-10-CM/PCS / HCPCS / coding-card titles published by the AMA), under a top-level AMA Coding Publications collection.
  • Fields: title, publisher, date, ISBN(s), OpenLibrary URL (dedupe key), extra: OpenLibrary: <id>; tags source:ama, module:coding, year:YYYY.
  • Attaches whatever LazyLibrarian on the corwins side has landed under /srv/pool/media/books/American Medical Association/<Title>/; re-running only adds new attachments.

Already run once: 598 items created, 2 ebooks attached, Zotero restarted.

Adds `dev/scripts/add_ama_coding_to_zotero.py`, following the `add_cf_history_to_zotero.py` pattern (direct `zot.db` writes, storage copies chown'd to 100999). - One `book` item per OpenLibrary work from `data/ama/ama_coding_titles.json` (598 CPT / ICD-9-CM / ICD-10-CM/PCS / HCPCS / coding-card titles published by the AMA), under a top-level **AMA Coding Publications** collection. - Fields: title, publisher, date, ISBN(s), OpenLibrary URL (dedupe key), `extra: OpenLibrary: <id>`; tags `source:ama`, `module:coding`, `year:YYYY`. - Attaches whatever LazyLibrarian on the corwins side has landed under `/srv/pool/media/books/American Medical Association/<Title>/`; re-running only adds new attachments. Already run once: 598 items created, 2 ebooks attached, Zotero restarted.
kert added 2 commits 2026-09-09 15:35:03 +00:00
Claude-Session: https://claude.ai/code/session_01Aum3pEMAM3yQVdFSdVe6Gc
feat(zotero): mirror AMA coding/CPT publications into a collection
All checks were successful
CI / lint (pull_request) Successful in 29s
CI / notebooks-smoke (pull_request) Successful in 1m27s
Infra CI / notebooks (pull_request) Successful in 53s
Infra CI / zotero (pull_request) Successful in 16s
Infra CI / docs (pull_request) Successful in 13s
Infra CI / api (pull_request) Successful in 23s
Infra CI / llm (pull_request) Successful in 12s
Infra CI / mc (pull_request) Successful in 13s
CI / lint (push) Successful in 32s
CI / test (pull_request) Successful in 14m33s
CI / notebooks-smoke (push) Successful in 1m25s
CI / test (push) Successful in 12m40s
cb86bf5c67
One book item per OpenLibrary work from data/ama/ama_coding_titles.json
under 'AMA Coding Publications', with ISBNs, year tags, and the OL URL
as the dedupe key. Attaches ebooks LazyLibrarian has landed under the
books library; re-runs only add what is new.
kert added 1 commit 2026-09-09 17:58:06 +00:00
feat(zotero): attach landed AMA files whose folder is not an exact OpenLibrary title
Some checks failed
CI / lint (push) Successful in 34s
CI / notebooks-smoke (push) Successful in 1m29s
CI / lint (pull_request) Successful in 38s
CI / test (push) Successful in 17m37s
CI / notebooks-smoke (pull_request) Successful in 1m28s
CI / test (pull_request) Successful in 16m58s
Infra CI / zotero (pull_request) Successful in 14s
Infra CI / docs (pull_request) Successful in 15s
Infra CI / notebooks (pull_request) Failing after 1m12s
Infra CI / api (pull_request) Successful in 12s
Infra CI / llm (pull_request) Successful in 13s
Infra CI / mc (pull_request) Successful in 13s
2792c51322
Year-aware containment match (keeps ICD-10-CM apart from ICD-10-PCS and
a 4th edition from a 6th); a local item is minted when no title covers a
landed book, so every file on disk is filed.
kert merged commit f91f2c9c7e into main 2026-09-09 20:24:57 +00:00
Sign in to join this conversation.