Visual editor: use Zotero's citationKey field instead of generated keys

オープン
#1,231 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start by tracing how the visual editor reads local Zotero items and generates citation keys; the issue points to out/main.js where betterBibtexExport reports that it is unsupported. Check how Zotero's native citationKey field is exposed and used in the insertion and bibliography paths. Done means citations use that field when present and retain the generated key as a fallback; also assess the reported database-copy delay.

索引モデルが issue の本文から書いたものです。

説明

visual-editor zotero
Bug description

When citing from a local Zotero library in the visual editor, the extension generates its own author-year key (for example kropff2016) instead of using the citation key stored in Zotero. Recent Zotero versions keep the citation key in the native citationKey field (Better BibTeX 9 writes its keys there), but the extension does not read it, and Better BibTeX support is not available (betterBibtexExport throws "not supported" in out/main.js).

Teams that share a Zotero group library and agree on a common key format therefore can't use the visual editor: every inserted citation gets a key that doesn't exist in Zotero.

Steps to reproduce
  1. Zotero 10.0.8 with Better BibTeX 9.0.77, local library, a group library added in quarto.zotero.groupLibraries.
  2. Open a .qmd with bibliography: references.bib in Positron, switch to the visual editor.
  3. Type @, pick an item whose Zotero citation key is kropffContinuousGlucoseMonitoring2016, save.
Actual behavior

The document gets [@kropff2016] and references.bib gets @article{kropff2016, ...}.

Expected behavior

The extension uses the item's Zotero citationKey field when it is set, and falls back to its own key only when the field is empty.

A related performance note: the extension copies the whole zotero.sqlite (about 300 MB here) to its cache after every change to the database, for example after each sync, which makes the Zotero source unavailable for minutes.

Your environment
  • Positron with Quarto extension 1.139.0
  • Quarto 1.11.9
  • Windows 11 Pro 10.0.26300
  • Zotero 10.0.8, Better BibTeX 9.0.77
主要言語
TypeScript
スター
665
フォーク
69
平均マージ
1日 8時間
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto のほかの issue

quarto-dev/quarto の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。