One function

format_item_metadata in 54yyyu/zotero-mcp

The author described this change as fix: render ISBN and ISSN in markdown metadata output (#236). It counts as a record because the check below fails on the code as it stood at cf3d23fdd and passes on 17c7f6c19, with nothing else changed between the two runs.

Fix saved2026-04-21
Sharing licenceMIT · LICENSE
Change size+5 1

What the code was meant to do, written into the code itself as a docstring

Format a Zotero item's metadata as markdown. Args: item: A Zotero item dictionary. include_abstract: Whether to include the abstract in the output. Returns: Markdown-formatted metadata.

The change

4545 book_info += f", {place}"
4646 lines.append(book_info)
4747
48- # DOI and URL
48+ # Identifiers and URL
4949 if doi := data.get("DOI"):
5050 lines.append(f"**DOI:** {doi}")
51+ if isbn := data.get("ISBN"):
52+ lines.append(f"**ISBN:** {isbn}")
53+ if issn := data.get("ISSN"):
54+ lines.append(f"**ISSN:** {issn}")
5155 if url := data.get("url"):
5256 lines.append(f"**URL:** {url}")
5357

The check that tells the two apart

failpass·tests/test_identifier_fields_markdown.py::TestIsbnInMarkdown::test_isbn_rendered

Check file tests/test_identifier_fields_markdown.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itcf3d23fdde56bc2ae375123bcd15eb269690cc09
Broken version dated2026-04-09
Modulezotero_mcp.client
Units changedformat_item_metadata
Fingerprint2c3a11bb03bbc34f
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.