简体中文内容尚未准备就绪,目前显示英文内容。

阅读英文版
ZotLit

Use the Zotero online library in Obsidian

Read your Zotero library in Obsidian on a phone, a tablet or a computer without Zotero, with a read-only API key from zotero.org.

Create a read-only key on zotero.org, keep it as a secret in Obsidian's keychain, and select it in 设置 > ZotLit > Zotero. ZotLit then downloads your library and keeps it up to date.

Use the online library on a phone or a tablet, where it is the only source, or on a computer without Zotero. ZotLit only reads the library, so nothing on zotero.org changes.

Before you start

  • Your Zotero library syncs to zotero.org with Zotero's own sync. ZotLit reads what zotero.org holds.
  • On a phone or a tablet, you have Android System WebView 133 or iOS 18.6 or newer, and Obsidian 1.15.1 or later.
  • On a phone or a tablet, the ZotLit Resource Pack plugin is installed in the vault. ZotLit needs it there to read the online library. See ZotLit Resource Pack for the install steps.

Set up the online library

Choose the online library on a computer

On a computer, open 设置 > ZotLit > Zotero and set 文库来源 to Zotero 在线文库. Then select 重新加载 Obsidian in the row 重新加载以应用.

Obsidian reloads with the online library. The choice applies to this device only, so your other computers keep their own source. On a phone or a tablet, skip this step: the online library is the only source there.

Create a Zotero API key

In the row Zotero API 密钥, select the link 在 zotero.org 上创建只读密钥. Sign in to zotero.org and give the key a name. Give it read access to your personal library. Add access to its notes if you want your Zotero notes in Obsidian too. Add read access to each group library you want. Write access is not needed.

zotero.org shows the new key once. Copy it.

Keep the key as a secret and select it

The row Zotero API 密钥 is a secret field of Obsidian. Create a new secret there, paste the key as its value, and select it. ZotLit keeps only the name of the secret, on this device.

The row 在线文库 changes from 选择保存您 Zotero API 密钥的机密以同步文库。 to the progress of the download.

Wait for the first sync

The first sync starts when you select the key. The status shows 正在下载条目和分类:400 / 2,000…, then 正在更新您的文库:400 / 2,000…. A large library takes a while the first time.

When the status reads 已是最新。上次同步:…。, your library is ready. Below it, ZotLit shows Zotero 已接受此密钥,账户为 …。

The copy of your library stays on this device, outside the vault, so vault sync does not carry it. Each device downloads its own copy, so select the key on each device.

What works with the online library

TaskOn a computer with the online libraryOn a phone or a tablet
Search your library and insert citationsYesYes
Query files and query blocksYesYes. A paper with no literature note shows 无笔记
Query CLI commands, such as zotlit:queryYesNo. It needs the desktop app.
Library ViewYesNo. ZotLit shows Zotero 文库仅在 Obsidian 桌面端可用。
Create and update literature notesYes. Images of image annotations are not available.No. ZotLit shows 创建文献笔记仅在 Obsidian 桌面端可用。
Open PDF and other attachment filesNo. ZotLit shows 此操作需要将“此电脑上的 Zotero”设为文库来源。请在“设置 → Zotero → 文库来源”中选择。No
Edit annotations from ObsidianNo. Edits happen in the PDF, and PDF files do not come with the online library.No
Actions and links that Zotero sends, such as ZotLit Companion menus and live updatesNo. ZotLit shows 此操作需要将“此电脑上的 Zotero”设为文库来源。请在“设置 → Zotero → 文库来源”中选择。 A link that shows an item in the Library View still works.—

Keep the library up to date

ZotLit syncs when Obsidian starts, then every 5 minutes while an Obsidian window has focus. A change you make in Zotero shows in Obsidian after Zotero syncs it to zotero.org and ZotLit syncs next.

To sync at once, select 立即同步 in the row 在线文库, or run ZotLit: 同步 Zotero 在线文库. A sync that runs longer than 2 seconds shows the notice 正在同步 Zotero 在线文库… with its progress and a 停止同步 button.

When a sync fails, your notes keep the data of the last good sync. The status then reads 您的笔记使用上次同步的数据:…。

Change the Zotero language

In 设置 > ZotLit > Zotero, set Zotero 语言 to the language of your Zotero app. ZotLit then reads a date such as 01/02/2020 in the same day and month order as Zotero does. The default is 自动(…).

When you change the Zotero language, ZotLit downloads the online library again.

Remove the online library data

In 设置 > ZotLit > Zotero, select 移除在线文库数据, then 移除 in the dialog. ZotLit deletes the copy of your library from this device and stops using the key. The key stays in Obsidian's keychain; remove it there if you no longer need it. Your library on zotero.org does not change.

Vaults that you removed from Obsidian can leave their copy of the library on this device. To free that disk space, open the group 在线文库数据 in 设置 > ZotLit > 高级 and look under 其他仓库的数据.

To go back to Zotero on a computer, set 文库来源 to 此电脑上的 Zotero and reload Obsidian.

Fix a problem

See also

最后更新于

本页目录