Date: 28 November 2026 (0.1.1 re-run: end-to-end 12/12 and 5/5 after restart). XPI tested: build/byline-finder-0.1.1.xpi (SHA-256 in build/byline-finder-0.1.1.xpi.sha256). Back to README.
| Platform | What was done | Result |
|---|---|---|
| Windows 11 Home (10.0.26300), x86_64, Zotero 10.0.8 | Real installation: XPI installed in a separate Zotero test profile; end-to-end tests, restart test, benchmark, OCR | Passed (details below) |
| macOS (any) incl. Safari Connector | Code-level only: portable Zotero APIs only (no OS calls except OCR); OCR path uses poppler + tesseract if installed | Not installed or run on a Mac |
| Linux | Code-level only: same as macOS | Not installed or run on Linux |
| iPhone / iPad / Android / zotero.org | Code path tested on Windows: items injected through Zotero’s own sync processing (Zotero.Sync.Data.Local.processObjectsFromJSON) + sync-finished notification |
No real device or Zotero account used; no on-device processing exists |
“Real installation” here means Zotero 10.0.8 started with its own test profile and data directory (your normal library and sync were never touched), the XPI placed in that profile, and results read back from Zotero’s database through a test-only bridge plugin.
node --test test/)25 of 25 pass. They cover date parsing and precision, personal/corporate/single/accented/particle names, byline vs reviewer vs publisher, related-article and comment exclusion, listing pages, GOV.UK “From:”, publication vs review/update/copyright dates, dates in prose, private/signed URLs, Wayback (byline and date from an archived copy, capture-date-only, reused URL), PDFs (username in Author property, file timestamps, meeting date on a cover, bibliography DOI, XMP check, ISBN checksum, thesis typing, image-only PDF, Crossref title check, OCR output) and real Zotero recognizer output from a GOV.UK report PDF.
test/e2e.mjs)Saves go through the same local endpoints the official Zotero Connector calls (/connector/saveItems, /connector/saveSnapshot, /connector/saveSingleFile); PDFs are imported the way drag-and-drop does (Zotero.Attachments.importFromFile + RecognizeDocument.autoRecognizeItems). Each result is read from the stored Zotero record.
| # | Check (required outcome in bold) | Result |
|---|---|---|
| 1 | Webpage missing only its author (GOV.UK Eatwell Guide, date “2016” pre-filled) gains corporate author Office for Health Improvement and Disparities; date stays “2016” | Pass |
| 2 | Publication vs review date: NHS Asthma page gets 2017-10-20, not the 2025 review/modified dates | Pass |
| 3a | Archived byline/date: removed NHS news page (live URL returns HTTP 410) gets author Bazian (“Analysis by Bazian”) and 2017-03-03 from the 2017 Wayback capture | Pass |
| 3b | Capture date alone: old NHS Choices asthma URL; Date stays empty, “known to exist by 2009-04-10” recorded; a 2011 “issued” date was rejected because the page was already archived in 2009 | Pass |
| 4 | Standalone report PDF without DOI (PHE From Plate to Guide, 2016): Zotero’s recognizer found nothing; Byline Finder created exactly one Report parent: author Public Health England, date 2016-11, report no. 2016451, collection kept, original file still attached. Document-properties author “Karen Watts” ignored (not in the text) | Pass |
| 4b | Second GOV.UK report PDF: parent Government Dietary Recommendations, 2016-08, author Nutrition Science Team, Public Health England | Pass |
| 5 | Mobile-origin item via sync (desktop receives it through sync processing): enriched with author and date, and marked unsynced so the corrections upload | Pass (code path only, see Platforms) |
| 6 | Repeated add/modify/sync notifications: still one creator | Pass |
| 7 | Date typed by the user right after saving is preserved; author still filled | Pass |
| 8 | Undo restores the empty fields | Pass |
| 9 | Image-only PDF (scan-style): Windows OCR → parent with title, both authors, 2019-04 | Pass |
| 10 | Older item is not auto-processed; Find Missing Author and Date on the selection fills it | Pass |
| R1–R5 | After restarting Zotero: values persisted, still exactly one PDF parent, no duplicate creators | Pass |
The item-pane section and context menu were checked through Zotero’s DOM (section text, buttons, menu labels resolved from the plugin’s strings); no screenshots were taken.
Not demonstrated end-to-end: a click on the Connector button in a real browser (the same endpoints were driven directly), a real phone/zotero.org account round trip, macOS/Linux installs.
Method. 19 held-out webpages not used during development (NHS ×4, GOV.UK ×3, universities ×3, Nature journal/news ×3, think-tank reports ×3, the Guardian ×3). Expected authors and dates were written to bench/ground-truth.json from the pages’ visible text (and the page’s own publication metadata where no date is shown) before any tool was run. Review/update dates never count as publication.
bench/run-zotero.mjs).bench/run-mybib.sh); its API is disallowed for robots, so it was not used.bench/score.mjs): correct / incorrect / missed (blank although the page states it) / justified blank / year only (right year, but the page gives month or day).Author (19 pages)
| Tool | Correct | Justified blank | Incorrect | Missed | Not run |
|---|---|---|---|---|---|
| Stock Zotero | 4 | 1 | 1 | 11 | 2 |
| Zotero + Byline Finder | 16 | 2 | 1 | 0 | 0 |
| MyBib | 13 | 1 | 1 | 4 | 0 |
Publication date (19 pages)
| Tool | Correct | Year only | Justified blank | Incorrect | Missed | Not run |
|---|---|---|---|---|---|---|
| Stock Zotero | 9 | 0 | 1 | 1 | 6 | 2 |
| Zotero + Byline Finder | 17 | 0 | 0 | 2 | 0 | 0 |
| MyBib | 3 | 7 | 0 | 7 | 2 | 0 |
On this sample Byline Finder (with Zotero) exceeded MyBib on authors (18 vs 14 right, counting justified blanks) and on dates (17 exact vs 3 exact + 7 year-only). The sample is small (19 pages, mostly UK health, government and news sites), so treat these numbers as indicative, not general.
Representative failures
datePublished; the ground truth (recorded before running) said “no date”. Arguably defensible, scored as incorrect.Raw data: bench/results-zotero.json, bench/results-mybib.tsv, bench/scores.json.
extensions.zotero.httpServer.port to 23120 and a separate data directory, and put build/byline-finder-0.1.1.xpi and build/byline-test-bridge.xpi in its extensions folder (file names = plugin IDs).powershell -File scripts/ztest-restart.ps1 -Profile <profile> starts it (it only ever stops the Zotero started with that profile).node test/e2e.mjs <folder with the test PDFs>, then restart and node test/e2e.mjs x verify.node bench/run-zotero.mjs, bash bench/run-mybib.sh (needs agent-browser), node bench/score.mjs.